mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 17:04:01 -04:00
* [babel] create babel-preset and babel-register modules
* [babel-preset] add comments to babel-preset-env.target choices
* [babel-preset] use more normal BUILT_WITH_BABEL signal
* [babel-register] extended comment about filtering ./src in dist
* [babel-preset] stage of class properties has changed, sorta
(cherry picked from commit 48d35f81fd
)
34 lines
967 B
JavaScript
34 lines
967 B
JavaScript
import { flatten } from 'lodash';
|
|
module.exports = function (grunt) {
|
|
grunt.registerTask('build', 'Build packages', function () {
|
|
grunt.task.run(flatten([
|
|
'clean:build',
|
|
'clean:target',
|
|
'_build:downloadNodeBuilds',
|
|
'_build:extractNodeBuilds',
|
|
'copy:devSource',
|
|
'clean:devSourceForTestbed',
|
|
'babel:build',
|
|
'_build:plugins',
|
|
'_build:data',
|
|
'_build:verifyTranslations',
|
|
'_build:packageJson',
|
|
'_build:readme',
|
|
'_build:babelCache',
|
|
'_build:installNpmDeps',
|
|
'_build:notice',
|
|
'_build:removePkgJsonDeps',
|
|
'clean:testsFromModules',
|
|
'run:optimizeBuild',
|
|
'stop:optimizeBuild',
|
|
'_build:versionedLinks',
|
|
'_build:osShellScripts',
|
|
grunt.option('skip-archives') ? [] : ['_build:archives'],
|
|
grunt.option('skip-os-packages') ? [] : [
|
|
'_build:pleaseRun',
|
|
'_build:osPackages',
|
|
],
|
|
'_build:shasums'
|
|
]));
|
|
});
|
|
};
|