Wraps Elm and exposes a Node API to compile Elm sources.
Supports Elm version 0.17
$ npm install
$ cd examples
$ node compileHelloWorld.js
findAllDependencies
now supports port module
files.
Use utf-8 encoding for compileToString
Support checking dependencies for modules with no module declaration.
Fix bug in dependency searches beginning with a non-root Main
module.
Log elm-make output in verbose mode.
Fix missing temp
dependency.
Use an Error
object for result errors instead of a string.
Passing the warn
option now passes --warn
to elm-make
, and emitWarning
now controls warning logging.
Fix bug where nonzero exit codes were not rejecting promises.
Fix bug related to converting module dots to directories in nested dependency resolution.
Move temp
dependency out of devDependencies
Added #compileToString
Added cwd
to options
and fixed a bug where Windows couldn't find elm-make
.
Added #findAllDependencies
No longer searches node_modules/.bin
for elm-make
- now if you don't specify
a pathToMake
option, only the one on PATH will be used as a fallback.
Initial release.