|
1 | 1 | module.exports = function (grunt) { |
2 | 2 | let { flatten } = require('lodash'); |
3 | 3 |
|
4 | | - grunt.registerTask('build', flatten([ |
5 | | - '_build:getProps', |
6 | | - 'clean:build', |
7 | | - 'clean:target', |
8 | | - '_build:downloadNodeBuilds:start', |
9 | | - 'copy:devSource', |
10 | | - 'babel:build', |
11 | | - '_build:babelOptions', |
12 | | - '_build:installedPlugins', |
13 | | - '_build:packageJson', |
14 | | - '_build:readme', |
15 | | - '_build:installNpmDeps', |
16 | | - '_build:removePkgJsonDeps', |
17 | | - 'clean:testsFromModules', |
18 | | - 'clean:deepModuleBins', |
19 | | - 'clean:deepModules', |
20 | | - 'run:optimizeBuild', |
21 | | - 'stop:optimizeBuild', |
22 | | - '_build:downloadNodeBuilds:finish', |
23 | | - '_build:versionedLinks', |
24 | | - '_build:archives', |
25 | | - !grunt.option('os-packages') ? [] : [ |
26 | | - '_build:pleaseRun', |
27 | | - '_build:osPackages', |
28 | | - ], |
29 | | - '_build:shasums' |
30 | | - ])); |
| 4 | + grunt.registerTask('build', 'Build packages', function (arg) { |
| 5 | + grunt.task.run(flatten([ |
| 6 | + '_build:getProps', |
| 7 | + 'clean:build', |
| 8 | + 'clean:target', |
| 9 | + '_build:downloadNodeBuilds:start', |
| 10 | + 'copy:devSource', |
| 11 | + 'babel:build', |
| 12 | + '_build:babelOptions', |
| 13 | + '_build:installedPlugins', |
| 14 | + '_build:packageJson', |
| 15 | + '_build:readme', |
| 16 | + '_build:installNpmDeps', |
| 17 | + '_build:removePkgJsonDeps', |
| 18 | + 'clean:testsFromModules', |
| 19 | + 'clean:deepModuleBins', |
| 20 | + 'clean:deepModules', |
| 21 | + 'run:optimizeBuild', |
| 22 | + 'stop:optimizeBuild', |
| 23 | + '_build:downloadNodeBuilds:finish', |
| 24 | + '_build:versionedLinks', |
| 25 | + '_build:archives', |
| 26 | + (grunt.option('os-packages') || arg === 'ospackages') ? [ |
| 27 | + '_build:pleaseRun', |
| 28 | + '_build:osPackages', |
| 29 | + ] : [], |
| 30 | + '_build:shasums' |
| 31 | + ])); |
| 32 | + }); |
31 | 33 | }; |
0 commit comments