tomchentw/gulp-livescript — pull request #8 by zbryikt (2014-09-22 14:05:26+00:00)
Title: add support for outputing json

while gulp-livescript pass options to livescript such as "bare", LiveScript.compile doesn't support "json" option for json generation. The json generation feature is wrapped in command.js:CompileScript function inside LiveScript package as a command line option.

Yet sometimes we might need to compile livescript into json, so I adopt the code in command.js and patch gulp-livescript so that one can add an option "json" to generate json file from livescript, for example:

gulp.task 'json', ->
gulp.src 'json/*.ls'
.pipe gulp-plumber!
.pipe gulp-livescript({+json,+bare}).on 'error', gutil.log
.pipe gulp.dest "json/"