[build] Clear the node version used to optimize (#15264)

This commit is contained in:
Jonathan Budzenski 2017-12-05 13:33:35 -06:00 committed by GitHub
parent e169dd3a2c
commit 999911b9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -20,9 +20,10 @@ module.exports = function (grunt) {
'_build:removePkgJsonDeps',
'clean:testsFromModules',
'clean:examplesFromModules',
'_build:copyNode',
'_build:copyNodeForOptimize',
'run:optimizeBuild',
'stop:optimizeBuild',
'clean:nodeForOptimize',
'_build:versionedLinks',
'_build:osShellScripts',
grunt.option('skip-archives') ? [] : ['_build:archives'],

View file

@ -4,7 +4,7 @@ import { platform as getPlatform } from 'os';
module.exports = function (grunt) {
const exec = require('../utils/exec').silent;
grunt.registerTask('_build:copyNode', function () {
grunt.registerTask('_build:copyNodeForOptimize', function () {
const rootPath = grunt.config.get('root');
const nodeDestination = join(rootPath, 'build/kibana/node');
const currentPlatform = getPlatform();

View file

@ -5,5 +5,6 @@ module.exports = function () {
testsFromModules: 'build/kibana/node_modules/**/{test,tests}/**',
examplesFromModules: 'build/kibana/node_modules/**/{example,examples}/**',
devSourceForTestbed: 'build/kibana/src/core_plugins/testbed/',
nodeForOptimize: 'build/kibana/node'
};
};