diff options
author | Joris | 2015-11-13 20:12:21 +0100 |
---|---|---|
committer | Joris | 2015-11-13 20:12:21 +0100 |
commit | eef0cf46c150cd12e783aa8dc62f825a59757855 (patch) | |
tree | 892cc53729c0f61c050b75e39aaa252eb49d4590 | |
parent | 5af770bd99dbb57d78857236c054bc0a6dc4bdfd (diff) |
Upgrade to elm 0.15.1 and use npm to build
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | README.md | 12 | ||||
-rw-r--r-- | elm-package.json | 9 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | package.json | 15 |
5 files changed, 29 insertions, 12 deletions
@@ -1,2 +1,3 @@ elm-stuff -elm.js +node_modules +client.js @@ -10,10 +10,12 @@ You can play at [http://guyonvarch.github.io/catchvoid](http://guyonvarch.github Usage ----- -Install the elm platform: -http://elm-lang.org/Install.elm +Install the elm platform: http://elm-lang.org/Install.elm -Launch the following command: -``` -./gen +Launch the following commands: + +```bash +elm package install +npm install +npm start ``` diff --git a/elm-package.json b/elm-package.json index a537c6d..593ca68 100644 --- a/elm-package.json +++ b/elm-package.json @@ -1,14 +1,13 @@ { "version": "2.2.1", - "summary": "", - "description": "", + "summary": "cAtchVoid", "repository": "https://github.com/guyonvarch/catchvoid.git", "license": "BSD3", "source-directories": ["src"], "exposed-modules": [], - "elm-version": "0.15.0 <= v < 0.16.0", + "elm-version": "0.15.1 <= v < 0.16.0", "dependencies": { - "elm-lang/core": "2.0.1 <= v < 3.0.0", - "evancz/elm-html": "3.0.0 <= v < 4.0.0" + "elm-lang/core": "2.1.0 <= v < 3.0.0", + "evancz/elm-html": "4.0.1 <= v < 5.0.0" } } @@ -6,7 +6,7 @@ <title>cAtchVoid</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> - <script src="elm.js"></script> + <script src="client.js"></script> </head> <body> diff --git a/package.json b/package.json new file mode 100644 index 0000000..afa017c --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "devDependencies": { + "watch": "0.16.0", + "http-server": "0.8.5" + }, + "scripts": { + "start": "npm run watch", + + "watch": "npm run launch-server && watch 'npm run build-client --silent' src", + "build": "elm make src/Main.elm --output client.js", + + "launch-server": "npm run kill-server && http-server ./ -p 8080", + "kill-server": "fuser -k 8080/tcp || true" + } +} |