parent
8a63f6e245
commit
6740d0de74
|
@ -32,8 +32,6 @@ gulp.task('format', loadTask('format', 'format'));
|
||||||
gulp.task('format:untracked', loadTask('format', 'format-untracked'));
|
gulp.task('format:untracked', loadTask('format', 'format-untracked'));
|
||||||
gulp.task('format:diff', loadTask('format', 'format-diff'));
|
gulp.task('format:diff', loadTask('format', 'format-diff'));
|
||||||
gulp.task('format:changed', ['format:untracked', 'format:diff']);
|
gulp.task('format:changed', ['format:untracked', 'format:diff']);
|
||||||
gulp.task('build.sh', loadTask('build', 'all'));
|
|
||||||
gulp.task('build.sh:no-bundle', loadTask('build', 'no-bundle'));
|
|
||||||
gulp.task('lint', ['format:enforce', 'validate-commit-messages', 'tslint']);
|
gulp.task('lint', ['format:enforce', 'validate-commit-messages', 'tslint']);
|
||||||
gulp.task('tslint', ['tools:build'], loadTask('lint'));
|
gulp.task('tslint', ['tools:build'], loadTask('lint'));
|
||||||
gulp.task('validate-commit-messages', loadTask('validate-commit-message'));
|
gulp.task('validate-commit-messages', loadTask('validate-commit-message'));
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
/**
|
|
||||||
* @license
|
|
||||||
* Copyright Google Inc. All Rights Reserved.
|
|
||||||
*
|
|
||||||
* Use of this source code is governed by an MIT-style license that can be
|
|
||||||
* found in the LICENSE file at https://angular.io/license
|
|
||||||
*/
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
// build everything and generate bundles
|
|
||||||
'all': (gulp) => (done) => execBuild(done),
|
|
||||||
// same as all without the bundling part - faster / lower memory usage
|
|
||||||
'no-bundle': (gulp) => (done) => execBuild(done, '--bundle=false'),
|
|
||||||
};
|
|
||||||
|
|
||||||
function execBuild(done, args = '') {
|
|
||||||
const path = require('path');
|
|
||||||
const childProcess = require('child_process');
|
|
||||||
// increase maxbuffer to address out of memory exception when running certain tasks
|
|
||||||
childProcess.exec(path.join(__dirname, `../../build.sh ${args}`), {maxBuffer: 300 * 1024}, done);
|
|
||||||
}
|
|
Loading…
Reference in New Issue