Skip to content

Commit

Permalink
clean theme files before generating
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthatguy committed Apr 23, 2015
1 parent a9580fd commit 64ce6cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var gulp = require("gulp"),
gutil = require("gulp-util"),
glob = require("glob"),
del = require("del"),
async = require('async'),
fs = require("fs"),
_ = require("lodash"),
Expand Down Expand Up @@ -105,7 +106,10 @@ var compiler = {
}
};

gulp.task('compile', compiler.exec);
gulp.task('compile', ['clean'], compiler.exec);
gulp.task('clean', function(done) {
del(path.join(config.mustache.dest, '*.sublime-theme'), done)
});
gulp.task('default', ['compile']);

module.exports = compiler;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"devDependencies": {
"async": "^0.9.0",
"chai": "^2.2.0",
"del": "^1.1.1",
"glob": "^5.0.5",
"gulp": "^3.8.11",
"gulp-util": "^3.0.4",
Expand Down

0 comments on commit 64ce6cb

Please sign in to comment.