Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2014 14:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nmccready/f60390e5bf6290915779 to your computer and use it in GitHub Desktop.
Make sure clean happens first and is finished, then execute other tasks with max parallelism . This is important as clean can be in the middle of deleting otherwise and then one,two or three could be creating files or dirs. If this happens or collides then you will get rmdir or rmfile errors inconsistently.
gulp.task "clean", ->
gulp.src('dist', read: false)
.pipe clean()
gulp.task "one", ->
gulp.task "two", ->
gulp.task "three", ->
gulp.task "default", ["clean"], ->
gulp.start ["one","two","three"]
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment