Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeue56/elm-run-worker
Run Elm files in worker mode from the CLI
https://github.com/eeue56/elm-run-worker
Last synced: 3 months ago
JSON representation
Run Elm files in worker mode from the CLI
- Host: GitHub
- URL: https://github.com/eeue56/elm-run-worker
- Owner: eeue56
- License: bsd-3-clause
- Created: 2017-02-11T14:35:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T09:37:24.000Z (almost 8 years ago)
- Last Synced: 2024-10-14T14:11:08.675Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-run-worker
Compile and run Elm files in worker mode in a single command.
Useful for testing Node-based Elm apps!## Install
```
npm install -g elm-run-worker
```## Usage
```
noah@Noahs-MacBook-Pro ~/d/elm-run-worker> elm-run-worker --help
Options:
-v, --verbose Print all messages out [default: false]
-o, --output Store the generated code in the given output file
[default: null]
-h, --help Show help [boolean]Examples:
/usr/local/bin/elm-run-worker Main.elm Compile then run Main.elm
```## Example
### Compile + run `example/Main.elm`
```
elm-run-worker example/Main.elm
```### Compile + run `example/Main.elm` and store it in `elm.js`
```
elm-run-worker example/Main.elm --output elm.js
```### Compile + run `example/Main.elm` `example/OtherMain.elm` and store it in `elm.js`
```
elm-run-worker example/Main.elm example/OtherMain.elm --output elm.js
```