Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

gulpfile has clean now #12

Merged
merged 1 commit into from
Mar 22, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ livereload = require 'gulp-livereload'
concat = require 'gulp-concat'
minifyCSS = require 'gulp-minify-css'
karma = require 'gulp-karma'
clean = require 'gulp-clean'
fs = require 'fs'
http = require 'http'
coffee = require 'coffee-script'
Expand Down Expand Up @@ -43,6 +44,12 @@ useUglify = !!argv.uglify
useMinify = !!(argv.minify ? yes)
karmaAction = 'watch'

gulp.task 'clean', ->

gulp.src "build"
.pipe clean()
gulp.src "playground/{js,css}"
.pipe clean()

# Build Tasks

Expand Down Expand Up @@ -175,7 +182,7 @@ gulp.task 'watch-playground', ->

# Aggregate Tasks

gulp.task 'compile', ['styles', 'libs', 'coffee']
gulp.task 'compile', ['clean', 'styles', 'libs', 'coffee']

defaultTasks = [
'live', 'compile', 'play',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"gulp-karma": "0.0.4",
"gulp-buffer": "0.0.2",
"browserify": "^3.33.0",
"karma-sauce-launcher": "^0.2.3"
"karma-sauce-launcher": "^0.2.3",
"gulp-clean": "^0.2.4"
}
}