Gulp plugin to compile Elm files using the Elm compiler. Version 0.8.2 supports Elm 0.19 only; earlier versions (0.7.x) support Elm 0.18. The plugin wraps Vinyl streams, providing `elm.make()` for single files and `elm.bundle()` for multiple entry files. Key options include `optimize`, `debug`, `cwd`, and custom `elm` binary path. Differentiators: simple integration with Gulp, bundle mode, and support for `--optimize` and `--debug` flags. Release cadence is sporadic, last updated in 2019.
npm install gulp-elmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of elm.make() and elm.bundle() with Gulp, including optimize option.
For Elm 0.18, install gulp-elm@0.7.3.
Set cwd to the project root, e.g., { cwd: './src' } if elm.json is there.Use elm-make's native warning output; warnings appear on stderr.
Always call elm.make() or elm.bundle() directly.
Do not rely on exact error string formatting; check for error existence.
Run `elm make` manually to see full error output, or check elm.json and source files.
Use elm.make(options) or elm.bundle(output, options) directly.
Run `npm install gulp-elm --save-dev`.
Pass a string as the first argument: elm.bundle('output.js', options).