nodulator
Version:
Complete NodeJS Framework for Restfull APIs
31 lines (23 loc) • 1.01 kB
Markdown
browserify-livescript is an npm module that allows
[](https://github.com/gkz/LiveScript) files to be seemlessly
integrated into a project through
[](https://github.com/substack/node-browserify.git). If you are not
familiar with [browserify](https://github.com/substack/node-browserify.git), I
strongly encourage you to read up.
To use browserify-livescript in a project, include it as a dev-dependency in
your package.json file. Then pass it as a transform to
[](https://github.com/substack/node-browserify.git). at the command
line (or in a makefile or through [grunt](https://github.com/gruntjs/grunt.git),
etc.).
```
browserify -t browserify-livescript file.ls > output.js
```
browserify-livescript supports sourcemaps "out of the box" the only thing the
user needs to do is to instruct browserify to use the source maps by including
the '-d' flag.
```
browserify -d -t browserify-livescript file.ls > output.js
```