here is gulp file and i am using bulid task to build all files and folder directory.... so my gulp build task not working properly....
I created three task for build final build directory - bulid:cleanfolder - build:copy - build:remove
gulp build task
/******************************************
bulid task
*******************************************/
// Clear out all files and folder from bulid folder
gulp.task('build:cleanfolder', function(cb){
del([
'build/**'
], cb);
});
// task to create build Directory for all files
gulp.task('build:copy', ['build:cleanfolder'], function(){
return gulp.src('../atoz-website/*')
.pipe(gulp.dest('build'));
});
// task to remove unwanted file into build Directory
gulp.task('build:remove', ['build:copy'], function(cb){
del([
'build/assets',
'build/gulpfile.js',
'build/package.json',
'build/readme.md',
'build/.gitignore'
], cb);
});
gulp.task('build', ['build:copy', 'build:remove']);
problem is only bulid:cleanfolder ruining but not others tasks!
xxxxxxxxxxx/xxxxxxxxxxx/atoz-website (new)
$ gulp build
[13:08:41] Using gulpfile D:\VE Work\Website\atoz-website\gulpfile.js
[13:08:41] Starting 'build:cleanfolder'...