chore(gulpfile): add build/clean.docs task

This commit is contained in:
Edouard Coissy 2015-01-16 14:21:55 +01:00 committed by Rado Kirov
parent 766267a65a
commit a8bc7aa48f
1 changed files with 7 additions and 2 deletions

View File

@ -72,7 +72,8 @@ var CONFIG = {
all: 'dist/cjs', all: 'dist/cjs',
tools: 'dist/cjs/tools', tools: 'dist/cjs/tools',
e2eTest: 'dist/cjs/e2e_test' e2eTest: 'dist/cjs/e2e_test'
} },
docs: 'dist/docs'
}, },
srcFolderMapping: { srcFolderMapping: {
'default': 'lib', 'default': 'lib',
@ -181,6 +182,10 @@ gulp.task('build/clean.cjs', clean(gulp, gulpPlugins, {
path: CONFIG.dest.cjs.all path: CONFIG.dest.cjs.all
})); }));
gulp.task('build/clean.docs', clean(gulp, gulpPlugins, {
path: CONFIG.dest.docs
}));
// ------------ // ------------
// deps // deps
@ -422,6 +427,6 @@ gulp.task('build.cjs', function() {
gulp.task('build.js', ['build.js.dev', 'build.js.prod']); gulp.task('build.js', ['build.js.dev', 'build.js.prod']);
gulp.task('clean', ['build/clean.js', 'build/clean.dart', 'build/clean.cjs']); gulp.task('clean', ['build/clean.js', 'build/clean.dart', 'build/clean.cjs', 'build/clean.docs']);
gulp.task('build', ['build.js', 'build.dart', 'build.cjs']); gulp.task('build', ['build.js', 'build.dart', 'build.cjs']);