placeatut

1.1.1 • Public • Published

liveify Build Status

browserify transform for livescript

mix and match .ls and .js files in the same project

important: when using require('path/to/file.ls') remember to use .ls extension

example

given some files written in a mix of js and ls:

foo.ls:

console.log require './bar.js'

bar.js:

module.exports = require('./baz.ls')(5)

baz.ls:

module.exports = (* 111)

install liveify into your app:

$ npm install liveify

when you compile your app, just pass -t liveify to browserify:

$ browserify -t liveify foo.ls > bundle.js
$ node bundle.js
555

install

With npm do:

npm install liveify

options

By default livescript is compiled with the constant flag set to false. This can be set to true by setting the environment variable LSC_CONST:

LSC_CONST=true browserify -t liveify -e my-app.ls > my-app.js

license

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    4
  • 1.1.0
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i placeatut

Weekly Downloads

4

Version

1.1.1

License

MIT

Unpacked Size

4.29 kB

Total Files

11

Last publish

Collaborators

  • curtismurphy