broccoli-livescript

2.0.0-0 • Public • Published

broccoli-livescript

npm version Build Status Coverage Status

A Broccoli plugin to compile LiveScript

Installation

Use npm.

npm install --save-dev broccoli-livescript

API

const liveScript = require('broccoli-livescript');

liveScript(tree [, options])

tree: string or Object (broccoli tree)
options: Object (directly passed to LiveScript options)
Return: Function

options.bare

Type: boolean
Default: false

Compile without the top-level function wrapper.

options.header

Type: boolean
Default: true

false removes "Generated by" header.

//Brocfile.js
const liveScript = require('broccoli-livescript');
 
module.exports = liveScript('scripts', {
  bare: true,
  header: false
});

License

Copyright (c) 2014 - 2018 Shinnosuke Watanabe

Licensed under the MIT LIcense.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0-0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0-0
    1
  • 1.0.0
    0
  • 0.2.0
    0
  • 0.1.1
    0

Package Sidebar

Install

npm i broccoli-livescript

Weekly Downloads

1

Version

2.0.0-0

License

MIT

Unpacked Size

4.55 kB

Total Files

4

Last publish

Collaborators

  • shinnn