From 3126f564cfcbba3a4c3aa67c4a5df619e83fac22 Mon Sep 17 00:00:00 2001 From: Chris Hendrix Date: Fri, 19 Jun 2015 17:38:45 -0700 Subject: [PATCH] Add build script and open script, move to ./scripts --- README.md | 13 ++++++------- bootstrap => scripts/bootstrap | 0 scripts/build | 5 +++++ scripts/open | 6 ++++++ run_tests => scripts/run_tests | 0 5 files changed, 17 insertions(+), 7 deletions(-) rename bootstrap => scripts/bootstrap (100%) create mode 100755 scripts/build create mode 100755 scripts/open rename run_tests => scripts/run_tests (100%) diff --git a/README.md b/README.md index 26ec8b1..de10242 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,11 @@ [![Build Status](https://travis-ci.org/chendrix/elm-rogue.svg?branch=master)](https://travis-ci.org/chendrix/elm-rogue) -## Build Instructions +## Scripts -Run the following command from the root of this project: +There are several scripts located in `./scripts` which can be run: -```bash -elm-make src/Rogue.elm -``` - -Then open `index.html` in your browser! \ No newline at end of file +* `bootstrap` to install the relevant stuff to run your tests for the first time +* `run_tests` to run your tests +* `build` to build `elm.js` +* `open` to build and open the project in a browser diff --git a/bootstrap b/scripts/bootstrap similarity index 100% rename from bootstrap rename to scripts/bootstrap diff --git a/scripts/build b/scripts/build new file mode 100755 index 0000000..13c76eb --- /dev/null +++ b/scripts/build @@ -0,0 +1,5 @@ +#!/bin/sh + +set -ex + +elm make src/Rogue.elm \ No newline at end of file diff --git a/scripts/open b/scripts/open new file mode 100755 index 0000000..8b41dae --- /dev/null +++ b/scripts/open @@ -0,0 +1,6 @@ +#!/bin/sh + +set -ex + +./scripts/build +open index.html \ No newline at end of file diff --git a/run_tests b/scripts/run_tests similarity index 100% rename from run_tests rename to scripts/run_tests