• Stars
    star
    170
  • Rank 216,344 (Top 5 %)
  • Language
    TypeScript
  • License
    BSD 3-Clause "New...
  • Created about 9 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Node.js interface to the Elm compiler binaries.

node-elm-compiler Version Travis build Status AppVeyor build status

Wraps Elm and exposes a Node API to compile Elm 0.19 sources.

Example

$ npm install
$ cd examples
$ node compileHelloWorld.js

Releases

5.0.5

Upgrade find-elm-dependencies and lodash dependencies to fix CVE-2020-8203 vulnerability.

5.0.2

Upgrade lodash dependency to fix security audit warning. (#93)

5.0.1

Add helpful errors if you use the obsolete warn and pathToMake flags. (#75)

5.0.0

Add 0.19 support. Remove yes option. Add optimize option. Throw exceptions instead of emitting warnings or using process.exit.

4.5.0

Add runtimeOptions

4.4.0

Add compileToStringSync

4.3.1

Upgrade findAllDependencies dependency to correctly report all dependencies within a multi-source-directory project.

4.3.0

Add compileSync via @yormi

4.2.1

Epic perf improvements from @eeue56

4.2.0

Add support for --debug flag.

4.1.5

Clean up temporary directories more safely.

4.1.4

findAllDependencies now supports port module files.

4.1.3

Use utf-8 encoding for compileToString

4.1.2

Support checking dependencies for modules with no module declaration.

4.1.1

Fix bug in dependency searches beginning with a non-root Main module.

4.1.0

Log elm-make output in verbose mode.

4.0.1

Fix missing temp dependency.

4.0.0

Use an Error object for result errors instead of a string.

3.0.0

Passing the warn option now passes --warn to elm-make, and emitWarning now controls warning logging.

2.3.3

Fix bug where nonzero exit codes were not rejecting promises.

2.3.2

Fix bug related to converting module dots to directories in nested dependency resolution.

2.3.1

Move temp dependency out of devDependencies

2.3.0

Added #compileToString

2.2.0

Added cwd to options and fixed a bug where Windows couldn't find elm-make.

2.1.0

Added #findAllDependencies

2.0.0

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.

1.0.0

Initial release.

More Repositories

1

seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
JavaScript
5,363
star
2

elm-spa-example

A Single Page Application written in Elm
Elm
3,251
star
3

elm-css

Typed CSS in Elm.
Elm
1,213
star
4

dreamwriter

(NOTE! This has not been updated since Elm 0.15.1.) Streamlined long-form writing software. Written in Elm.
JavaScript
459
star
5

elm-workshop

An introductory Elm workshop. Video available on Frontend Masters!
Elm
438
star
6

elm-0.19-workshop

Elm 0.19 workshops. Includes Intro and Advanced courses.
Elm
210
star
7

rust-1.51-workshop

Richard Feldman's Rust workshop
Rust
186
star
8

elm-in-action

Resources for the Elm In Action book.
JavaScript
160
star
9

elm-validate

Convenience functions for validating Elm data.
Elm
144
star
10

node-test-runner

Runs elm-test suites from Node.js. Get it with npm install -g elm-test
JavaScript
132
star
11

elm-google-maps

Using Google Maps in Elm by way of Polymer
Elm
56
star
12

elm-use

Switch between Elm versions
JavaScript
38
star
13

elm-iso8601-date-strings

Convert between ISO-8601 date strings and Time.Posix
Elm
30
star
14

elm-web-workers

Write Elm code that talks to Web Workers.
Elm
28
star
15

selectlist

A nonempty list in which exactly one element is always selected.
Elm
27
star
16

elm-json-experiment

Experimental API for building JSON decoders
Elm
20
star
17

lambdaconf-2015-elm-workshop

Materials for the Elm Workshop at LambdaConf 2015
Elm
20
star
18

grunt-elm

Grunt plugin that compiles Elm files to JavaScript.
JavaScript
19
star
19

elm-codify

A tool to generate Elm decoders, encoders, and type aliases from JSON.
Elm
16
star
20

elm-0.18-workshop

An introductory Elm 0.18 workshop.
Elm
14
star
21

elm-node-app

Communication layer so Elm code can talk to Node.js code.
Elm
13
star
22

elm-css-helpers

Helpers for using elm-css with elm-html
Elm
11
star
23

dotfiles

Configuration files I use.
Shell
11
star
24

style-elements-demo

style-elements demo for ReactiveConf 2017 talk, "CSS as Bytecode"
Elm
8
star
25

elm-sorter-experiment

Experimental Sorter/Dict/Set API
Elm
8
star
26

elm-hex

Work with Hexadecimal numbers in Elm.
Elm
6
star
27

dreamwriter-coffee

Streamlined writing software. Written in React and CoffeeScript.
CoffeeScript
6
star
28

vector

List where head & tail don't return Maybe and still can't crash
Elm
6
star
29

count

Call record constructors with increasing integers. Surprisingly useful!
Elm
5
star
30

elm-signup-form

JavaScript
5
star
31

test-update

Convenience functions for testing update functions
Elm
5
star
32

mloc-2015-elm-workshop

Materials for the Elm Workshop at mloc.js 2015
Elm
5
star
33

hashed-class

Generate CSS classnames by hashing their styles.
Elm
5
star
34

hex

Work with Hexadecimal numbers in Elm.
Elm
4
star
35

roc-decimal-draft

Rust
3
star
36

quicksort-benchmarks

quicksort-benchmarks
Swift
3
star
37

csrf-xhr

Automatically add Rails CSRF tokens into XMLHttpRequest headers.
JavaScript
3
star
38

elm-in-action.com

Website for the book Elm in Action, from Manning Publications
3
star
39

console-print

Print special characters to the console, in Elm
Elm
3
star
40

ziplist

DEPRECATED in favor of rtfeldman/selectlist (better name!)
Elm
3
star
41

path

Elm
2
star
42

operation-pterodactyl

🦉
Elm
2
star
43

elm-css-util

Utility functions shared by elm-css and elm-css-helpers
Elm
2
star
44

elm-dropbox

Elm API for integrating with Dropbox
JavaScript
2
star
45

legacy-elm-test

An implementation of the legacy ElmTest module for backwards compatibility.
Elm
2
star
46

openresty-postgres-example

RealWorld example backend using OpenResty, Postgres, and nothing else
JavaScript
1
star
47

binstall

JavaScript
1
star
48

sweetvalidation

CoffeeScript
1
star
49

promises-done-polyfill

Polyfills Promise.done()
JavaScript
1
star