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([
|
|
|
|
'_build:getProps',
|
|
|
|
'clean:build',
|
|
|
|
'clean:target',
|
|
|
|
'_build:downloadNodeBuilds:start',
|
|
|
|
'copy:devSource',
|
|
|
|
'babel:build',
|
|
|
|
'_build:babelOptions',
|
|
|
|
'_build:installedPlugins',
|
|
|
|
'_build:packageJson',
|
|
|
|
'_build:readme',
|
|
|
|
'_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-01-20 19:04:15 +01:00
|
|
|
'_build:archives',
|
2016-02-04 03:41:47 +01:00
|
|
|
grunt.option('os-packages') ? [
|
2016-01-20 19:04:15 +01:00
|
|
|
'_build:pleaseRun',
|
|
|
|
'_build:osPackages',
|
|
|
|
] : [],
|
|
|
|
'_build:shasums'
|
|
|
|
]));
|
|
|
|
});
|
2015-08-14 06:16:54 +02:00
|
|
|
};
|