Skip to content

Commit

Permalink
Add task to clean test files
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Pleiss <gpleiss@pivotal.io>
  • Loading branch information
stubbornella authored and Geoff Pleiss committed Oct 14, 2014
1 parent a4f8d8d commit 90d554a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ gulp.task('clean', function(done) {
del(['dist'], {force: true}, done);
});

gulp.task('_cleanTest', function(done) {
del(['test/components'], {force: true}, function() {
fs.mkdir('test/components', done);
});
});

gulp.task('assets', [
'_styles',
'_scripts',
Expand Down Expand Up @@ -122,7 +128,7 @@ gulp.task('_copyRandomAssets', ['clean'], function() {
.pipe(gulp.dest('./dist/'));
});

gulp.task('_hologramBuild', ['clean'], function() {
gulp.task('_hologramBuild', ['clean', '_cleanTest'], function() {
return gulp.src('hologram_config.yml')
.pipe(hologram({
bundler: true
Expand All @@ -135,7 +141,7 @@ gulp.task('_copyTestAssets', ['assets'], function() {
]).pipe(gulp.dest('./test/dist/'));
});

gulp.task('_createTestFileList', function(cb) {
gulp.task('_createTestFileList', ['assets'], function(cb) {
fs.readdir('./test/components/', function(err, files) {
if (err) {
console.error(err);
Expand Down

0 comments on commit 90d554a

Please sign in to comment.