Skip to content

Commit

Permalink
[build] Clear the node version used to optimize (#15264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored Dec 5, 2017
1 parent e169dd3 commit 999911b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tasks/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions tasks/config/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
};

0 comments on commit 999911b

Please sign in to comment.