2015-08-14 06:16:54 +02:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
let { flatten } = require('lodash');
|
|
|
|
|
2016-02-04 03:41:47 +01:00
|
|
|
grunt.registerTask('build', 'Build packages', function () {
|
2016-01-20 19:04:15 +01:00
|
|
|
grunt.task.run(flatten([
|
|
|
|
'clean:build',
|
|
|
|
'clean:target',
|
|
|
|
'_build:downloadNodeBuilds:start',
|
|
|
|
'copy:devSource',
|
|
|
|
'babel:build',
|
|
|
|
'_build:babelOptions',
|
2016-06-28 16:39:15 +02:00
|
|
|
'_build:plugins',
|
2016-01-20 19:04:15 +01:00
|
|
|
'_build:packageJson',
|
|
|
|
'_build:readme',
|
2016-06-14 23:48:41 +02:00
|
|
|
'_build:babelCache',
|
2016-01-20 19:04:15 +01:00
|
|
|
'_build:installNpmDeps',
|
|
|
|
'_build:removePkgJsonDeps',
|
|
|
|
'clean:testsFromModules',
|
|
|
|
'clean:deepModuleBins',
|
|
|
|
'clean:deepModules',
|
|
|
|
'run:optimizeBuild',
|
|
|
|
'stop:optimizeBuild',
|
|
|
|
'_build:downloadNodeBuilds:finish',
|
|
|
|
'_build:versionedLinks',
|
2016-03-18 01:05:15 +01:00
|
|
|
'_build:osShellScripts',
|
2016-05-27 22:40:57 +02:00
|
|
|
grunt.option('skip-archives') ? [] : ['_build:archives'],
|
|
|
|
grunt.option('skip-os-packages') ? [] : [
|
2016-01-20 19:04:15 +01:00
|
|
|
'_build:pleaseRun',
|
|
|
|
'_build:osPackages',
|
2016-05-27 22:40:57 +02:00
|
|
|
],
|
2016-01-20 19:04:15 +01:00
|
|
|
'_build:shasums'
|
|
|
|
]));
|
|
|
|
});
|
2015-08-14 06:16:54 +02:00
|
|
|
};
|