* [build] don't copy unwanted files * [build] condense mkdir/touch tasks * [i18n] verifyTranslations task has nothing to do with the build, just run in tests
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import { flatten } from 'lodash';
|
|
module.exports = function (grunt) {
|
|
grunt.registerTask('build', 'Build packages', function () {
|
|
grunt.task.run(flatten([
|
|
// We specifically bootstrap Kibana to make sure all dependencies are
|
|
// up-to-date before kicking of the rest of the build process
|
|
'bootstrapKibana',
|
|
'clean:build',
|
|
'clean:target',
|
|
'_build:downloadNodeBuilds',
|
|
'_build:extractNodeBuilds',
|
|
'copy:devSource',
|
|
'babel:build',
|
|
'_build:createEmptyDirsAndFiles',
|
|
'_build:packageJson',
|
|
'_build:readme',
|
|
'_build:packages',
|
|
'_build:installDependencies',
|
|
'clean:packages',
|
|
'_build:notice',
|
|
'_build:removePkgJsonDeps',
|
|
'clean:testsFromModules',
|
|
'clean:examplesFromModules',
|
|
'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'
|
|
]));
|
|
});
|
|
};
|