1.0.5 • Published 10 years ago

broccoli-msx v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

broccoli-msx

Broccoli plugin for precompiling Mithril msx views into js

Install

npm install --save-dev broccoli-msx

Example

var msx = require('broccoli-msx')
  , pickFiles = require('broccoli-static-compiler')
  , mergeTrees = require('broccoli-merge-trees')
  ;

var js = pickFiles('src/js', {
  srcDir: '/',
  destDir: 'js'
})
js = msx(js, {precompiled: false})

module.exports = mergeTrees([js])

.msx files are automatically renamed to .js

API

msx(tree, [options: {}])

Options

options - options accepted by msx.transform().

{ harmony: true|false } - enables/disables ES6 transforms supported by JSX Transformer. Default: false

{ precompile: true|false } - enables/disable default precompilation and always output m() calls. Default: true

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago