mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
During build we transpile the server source to prevent runtime transpilation with babel/register. In order to support untranspiled plugin code, we still use babel/register with special ignore options, which used to be included in cli/index.js and now is moved to src/optimize/babelOptions.js so other code that wants to initialize a server (without the cli) can also configure babel/register.
31 lines
811 B
JavaScript
31 lines
811 B
JavaScript
module.exports = function (grunt) {
|
|
let { flatten } = require('lodash');
|
|
|
|
grunt.registerTask('build', flatten([
|
|
'_build:shrinkwrap:ensureExists:true',
|
|
'_build:getProps',
|
|
'clean:build',
|
|
'clean:target',
|
|
'_build:downloadNodeBuilds:start',
|
|
'copy:devSource',
|
|
'babel:build',
|
|
'_build:babelOptions',
|
|
'_build:installedPlugins',
|
|
'_build:packageJson',
|
|
'_build:readme',
|
|
'_build:shrinkwrap:copyToBuild',
|
|
'_build:shrinkwrap:cleanup',
|
|
'_build:installNpmDeps',
|
|
'clean:testsFromModules',
|
|
'run:optimizeBuild',
|
|
'stop:optimizeBuild',
|
|
'_build:downloadNodeBuilds:finish',
|
|
'_build:versionedLinks',
|
|
'_build:archives',
|
|
!grunt.option('os-packages') ? [] : [
|
|
'_build:pleaseRun',
|
|
'_build:osPackages',
|
|
],
|
|
'_build:shasums'
|
|
]));
|
|
};
|