1 | # node-elm-compiler [![Version](https://img.shields.io/npm/v/node-elm-compiler.svg)](https://www.npmjs.com/package/node-elm-compiler) [![Travis build Status](https://travis-ci.org/rtfeldman/node-elm-compiler.svg?branch=master)](http://travis-ci.org/rtfeldman/node-elm-compiler) [![AppVeyor build status](https://ci.appveyor.com/api/projects/status/xv83jcomgb81i1iu/branch/master?svg=true)](https://ci.appveyor.com/project/rtfeldman/node-elm-compiler/branch/master)
|
2 |
|
3 | Wraps [Elm](https://elm-lang.org) and exposes a [Node](https://nodejs.org) API to compile Elm 0.19 sources.
|
4 |
|
5 | # Example
|
6 |
|
7 | ```bash
|
8 | $ npm install
|
9 | $ cd examples
|
10 | $ node compileHelloWorld.js
|
11 | ```
|
12 |
|
13 | # Releases
|
14 |
|
15 | ## 5.0.5
|
16 |
|
17 | Upgrade find-elm-dependencies and lodash dependencies to fix CVE-2020-8203 vulnerability.
|
18 |
|
19 | ## 5.0.2
|
20 |
|
21 | Upgrade lodash dependency to fix security audit warning. ([#93](https://github.com/rtfeldman/node-elm-compiler/pull/93))
|
22 |
|
23 | ## 5.0.1
|
24 |
|
25 | Add helpful errors if you use the obsolete `warn` and `pathToMake` flags. ([#75](https://github.com/rtfeldman/node-elm-compiler/pull/75))
|
26 |
|
27 | ## 5.0.0
|
28 |
|
29 | Add 0.19 support. Remove `yes` option. Add `optimize` option. Throw exceptions instead of emitting warnings or using process.exit.
|
30 |
|
31 | ## 4.5.0
|
32 |
|
33 | Add `runtimeOptions`
|
34 |
|
35 | ## 4.4.0
|
36 |
|
37 | Add `compileToStringSync`
|
38 |
|
39 | ## 4.3.1
|
40 |
|
41 | Upgrade `findAllDependencies` dependency to correctly report all dependencies within a multi-source-directory project.
|
42 |
|
43 | ## 4.3.0
|
44 |
|
45 | Add `compileSync` via @yormi
|
46 |
|
47 | ## 4.2.1
|
48 |
|
49 | Epic perf improvements from @eeue56
|
50 |
|
51 | ## 4.2.0
|
52 |
|
53 | Add support for `--debug` flag.
|
54 |
|
55 | ## 4.1.5
|
56 |
|
57 | Clean up temporary directories more safely.
|
58 |
|
59 | ## 4.1.4
|
60 |
|
61 | `findAllDependencies` now supports `port module` files.
|
62 |
|
63 | ## 4.1.3
|
64 |
|
65 | Use utf-8 encoding for `compileToString`
|
66 |
|
67 | ## 4.1.2
|
68 |
|
69 | Support checking dependencies for modules with no module declaration.
|
70 |
|
71 | ## 4.1.1
|
72 |
|
73 | Fix bug in dependency searches beginning with a non-root `Main` module.
|
74 |
|
75 | ## 4.1.0
|
76 |
|
77 | Log elm-make output in verbose mode.
|
78 |
|
79 | ## 4.0.1
|
80 |
|
81 | Fix missing `temp` dependency.
|
82 |
|
83 | ## 4.0.0
|
84 |
|
85 | Use an `Error` object for result errors instead of a string.
|
86 |
|
87 | ## 3.0.0
|
88 |
|
89 | Passing the `warn` option now passes `--warn` to `elm-make`, and `emitWarning` now controls warning logging.
|
90 |
|
91 | ## 2.3.3
|
92 |
|
93 | Fix bug where nonzero exit codes were not rejecting promises.
|
94 |
|
95 | ## 2.3.2
|
96 |
|
97 | Fix bug related to converting module dots to directories in nested dependency
|
98 | resolution.
|
99 |
|
100 | ## 2.3.1
|
101 |
|
102 | Move `temp` dependency out of `devDependencies`
|
103 |
|
104 | ## 2.3.0
|
105 |
|
106 | Added #compileToString
|
107 |
|
108 | ## 2.2.0
|
109 |
|
110 | Added `cwd` to `options` and fixed a bug where Windows couldn't find `elm-make`.
|
111 |
|
112 | ## 2.1.0
|
113 |
|
114 | Added #findAllDependencies
|
115 |
|
116 | ## 2.0.0
|
117 |
|
118 | No longer searches `node_modules/.bin` for `elm-make` - now if you don't specify
|
119 | a `pathToMake` option, only the one on PATH will be used as a fallback.
|
120 |
|
121 | ## 1.0.0
|
122 |
|
123 | Initial release.
|