Skip to content

Commit

Permalink
Add build script and open script, move to ./scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hendrix committed Jun 20, 2015
1 parent a7b1a3f commit 3126f56
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
* `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
File renamed without changes.
5 changes: 5 additions & 0 deletions scripts/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -ex

elm make src/Rogue.elm
6 changes: 6 additions & 0 deletions scripts/open
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -ex

./scripts/build
open index.html
File renamed without changes.

0 comments on commit 3126f56

Please sign in to comment.