Skip to content

Instantly share code, notes, and snippets.

@choonkeat
Last active April 23, 2019 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save choonkeat/ca2c9650f859fce461401af364328bad to your computer and use it in GitHub Desktop.
Save choonkeat/ca2c9650f859fce461401af364328bad to your computer and use it in GitHub Desktop.
Elm TDD Makefile
test: elm.json package.json elm-test
elm-test --watch
elm-test:
which elm-test || npm install elm-test --save-dev
grep elm-explorations/test elm.json || elm-test init
package.json:
echo '{}' > package.json
elm.json:
which elm || (echo "First, install elm https://guide.elm-lang.org/install.html"; exit 1)
elm init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment