https://github.com/bburdette/elm-build-scripts
Some bash scripts I use for building elm projects.
https://github.com/bburdette/elm-build-scripts
Last synced: 10 months ago
JSON representation
Some bash scripts I use for building elm projects.
- Host: GitHub
- URL: https://github.com/bburdette/elm-build-scripts
- Owner: bburdette
- License: bsd-3-clause
- Created: 2019-09-05T21:50:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-05T23:10:18.000Z (almost 7 years ago)
- Last Synced: 2025-01-21T19:51:14.244Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-build-scripts
Some bash scripts I use for building elm projects.
watch-elm.sh
- watches the elm code directory.
- when there's a code change, starts build-elm.sh
- run this in a window while you edit code.
build-elm.sh
- downloads github dependencies
- rebuilds the current project
- checks for an elm compiler error and if present,
- deletes elm-stuff
- tries compile again.
# programs the scripts need
watch-elm.sh depends on the command line tool *reflex*, for watching the code directory for changes. Hopefully available in your distro.
build-elm.sh *optionally* depends on [git-at-revision](https://github.com/bburdette/git-at-revision), for downloading git repos as of a particular commit. This allows you to depend on elm projects that aren't in the elm package repository.
# try it out
both scripts are in the example folder. You'll probably modify them to suit your needs.
Clone this repo, then CD over to the example folder and run ./watch-elm.sh. In another window run ./server.sh.
In a third window edit some code, and in your browser head to localhost:8000.