Skip to content

Commit bb71f68

Browse files
lamstutzjvandemo
authored andcommitted
fix mkdir error (#269)
1 parent eed37f0 commit bb71f68

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

generators/app/templates/gulpfile.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ gulp.task('inline-resources', function () {
5151
* As of Angular 5, ngc accepts an array and no longer returns a promise.
5252
*/
5353
gulp.task('ngc', function () {
54-
ngc([ '--project', `${tmpFolder}/tsconfig.es5.json` ]);
54+
ngc(['--project', `${tmpFolder}/tsconfig.es5.json`]);
5555
return Promise.resolve()
5656
});
5757

@@ -61,7 +61,7 @@ gulp.task('ngc', function () {
6161
*/
6262
gulp.task('rollup:fesm', function () {
6363
return gulp.src(`${buildFolder}/**/*.js`)
64-
// transform the files here.
64+
// transform the files here.
6565
.pipe(rollup({
6666

6767
// Bundle's entry point
@@ -94,7 +94,7 @@ gulp.task('rollup:fesm', function () {
9494
*/
9595
gulp.task('rollup:umd', function () {
9696
return gulp.src(`${buildFolder}/**/*.js`)
97-
// transform the files here.
97+
// transform the files here.
9898
.pipe(rollup({
9999

100100
// Bundle's entry point
@@ -209,10 +209,18 @@ gulp.task('watch', function () {
209209
gulp.watch(`${srcFolder}/**/*`, ['compile']);
210210
});
211211

212-
gulp.task('clean', ['clean:dist', 'clean:tmp', 'clean:build']);
212+
gulp.task('clean', function (callback) {
213+
runSequence('clean:dist', 'clean:tmp', 'clean:build', callback);
214+
});
215+
216+
gulp.task('build', function (callback) {
217+
runSequence('clean', 'compile', callback);
218+
});
219+
220+
gulp.task('build:watch', function (callback) {
221+
runSequence('build', 'watch', callback);
222+
});
213223

214-
gulp.task('build', ['clean', 'compile']);
215-
gulp.task('build:watch', ['build', 'watch']);
216224
gulp.task('default', ['build:watch']);
217225

218226
/**

0 commit comments

Comments
 (0)