broccoli-elm-make
v0.3.0
Published
broccoli-elm-make
Downloads
7
Readme
broccoli-elm-make
Compile Elm to Javascript via elm-make.
Installation
yarn add -D broccoli-elm-make
Usage
The plugin accepts a node to watch for changes and options.
Example
// Brocfile.js
const ElmMake = require('broccoli-elm-make');
const funnel = require('broccoli-funnel');
// Maybe you don't want your elm-css code to trigger a full make?
const appCode = funnel('elm', { exclude: [ /Styles.elm/ ] });
const js = new ElmMake(appCode, {
make: 'node_modules/.bin/elm-make', // location of elm-make (default: "elm-make" -- assumes global install)
main: 'elm/Main.elm', // relative to your Brocfile.js (default: "Main.elm")
output: 'app.js', // filename to write (default: "elm.js")
debug: true, // run elm-make with --debug (default: false)
});
License
MIT