diff --git a/README.md b/README.md index 187d42a..ff8158d 100644 --- a/README.md +++ b/README.md @@ -20,15 +20,15 @@ git clone https://github.com/rtfeldman/elm-workshop.git cd elm-workshop ``` -## Install dependencies +## Install supporting tools Run this at the terminal: ```bash -npm install +npm install -g elm-live@2.0.4 elm-test@0.16.1-alpha3 elm-css@0.4.0 ``` -This will probably take several minutes. +This could take several minutes. ## Start with Stage 1 diff --git a/stages/1/src/ElmHub.elm b/stages/1/Main.elm similarity index 98% rename from stages/1/src/ElmHub.elm rename to stages/1/Main.elm index 37483eb..2ed075a 100644 --- a/stages/1/src/ElmHub.elm +++ b/stages/1/Main.elm @@ -1,4 +1,4 @@ -module ElmHub (..) where +module Main (..) where import Html exposing (..) import Html.Attributes exposing (..) diff --git a/stages/1/README.md b/stages/1/README.md index db659a0..7f160e4 100644 --- a/stages/1/README.md +++ b/stages/1/README.md @@ -1,8 +1,17 @@ Stage 1 ======= -To engage Auto-Rebuilding: +## Installation ```bash -npm run watch +$ elm package install +``` + +(Answer `y` at the prompt. In rare cases a known issue can cause the download +to fail; in that case, just run `elm package install` again.) + +## Building + +```bash +$ elm live Main.elm --open -- --output=elm.js ``` diff --git a/stages/1/elm-package.json b/stages/1/elm-package.json index 29889da..588e1cf 100644 --- a/stages/1/elm-package.json +++ b/stages/1/elm-package.json @@ -4,7 +4,7 @@ "repository": "https://github.com/rtfeldman/elm-workshop.git", "license": "BSD-3-Clause", "source-directories": [ - "src" + "." ], "exposed-modules": [], "dependencies": { diff --git a/stages/1/index.html b/stages/1/index.html index f3d5dad..9e803f6 100644 --- a/stages/1/index.html +++ b/stages/1/index.html @@ -16,7 +16,7 @@