Skip to content

Instantly share code, notes, and snippets.

@schleumer
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schleumer/9e07d040d1a773511405 to your computer and use it in GitHub Desktop.
Save schleumer/9e07d040d1a773511405 to your computer and use it in GitHub Desktop.
gulp.task 'clean:scripts', (cb) -> del ['dist/js'], cb
gulp.task 'ls', ['clean:scripts'], ->
b = browserify("./src/livescript/index.ls", {debug: true})
b.transform('liveify')
b.bundle()
.pipe(source('app.js'))
.pipe(gulp.dest('./dist/js'))
gulp.task 'ls-watch', ->
watch('src/livescript/**/*.ls', ['ls'], ->
gulp.start('ls'))
gulp.task 'default', [
'ls'
'ls-watch'
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment