elm-wrap logo elm-wrap

Downloads missing dependencies, removes metadata for local dev packages and calls the elm compiler, passing all options.

wrap make src/Main.elm --optimize --output=out/main.js

When developing a package using local dev, it is necessary to build with wrap make and not call the compiler's make directly.

The command itself has no command line options, but one can configure the compiler being called through an environment variable:

WRAP_ELM_COMPILER_PATH=/full/path/to/compiler-binary wrap make src/Main.elm

By default, wrap will locate the compiler by searching the PATH for elm, just as if the compiler name was typed in the shell.