Flatten directory structure and stop using helpers

This commit is contained in:
Richard Feldman
2016-03-24 22:02:46 -07:00
parent 47c7909e76
commit 9a18695bbb
46 changed files with 146 additions and 68 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
module ElmHub (..) where
module Main (..) where
import Html exposing (..)
import Html.Attributes exposing (..)

View File

@@ -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
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -16,7 +16,7 @@
</body>
<script type="text/javascript">
var app = Elm.fullscreen(Elm.ElmHub, {});
var app = Elm.fullscreen(Elm.Main, {});
// Uncomment this line and comment out the above to enable elm-reactor support.
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");

View File

@@ -1,4 +1,4 @@
module ElmHub (..) where
module Main (..) where
import Html exposing (..)
import Html.Attributes exposing (..)

View File

@@ -1,8 +1,17 @@
Stage 2
=======
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
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -16,7 +16,7 @@
</body>
<script type="text/javascript">
var app = Elm.fullscreen(Elm.ElmHub, {});
var app = Elm.fullscreen(Elm.Main, {});
// Uncomment this line and comment out the above to enable elm-reactor support.
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");

View File

@@ -1,4 +1,4 @@
module ElmHub (..) where
module Main (..) where
import Html exposing (..)
import Html.Attributes exposing (..)

View File

@@ -1,8 +1,17 @@
Stage 3
=======
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
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -16,7 +16,7 @@
</body>
<script type="text/javascript">
var app = Elm.fullscreen(Elm.ElmHub, {});
var app = Elm.fullscreen(Elm.Main, {});
// Uncomment this line and comment out the above to enable elm-reactor support.
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");

View File

@@ -1,4 +1,4 @@
module ElmHub (..) where
module Main (..) where
import Html exposing (..)
import Html.Attributes exposing (..)

View File

@@ -1,8 +1,17 @@
Stage 4
=======
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
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -16,7 +16,7 @@
</body>
<script type="text/javascript">
var app = Elm.fullscreen(Elm.ElmHub, {});
var app = Elm.fullscreen(Elm.Main, {});
// Uncomment this line and comment out the above to enable elm-reactor support.
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");

View File

@@ -1,14 +1,24 @@
Stage 5
=======
To run tests:
## Installation
```bash
npm test
$ elm package install
```
To engage Auto-Rebuilding:
(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
npm run watch
$ elm live Main.elm --open -- --output=elm.js
```
## Running Tests
```bash
$ cd test
$ elm test TestRunner.elm
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -5,7 +5,7 @@
"license": "BSD-3-Clause",
"source-directories": [
".",
"../src"
".."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -1,14 +1,24 @@
Stage 5
=======
To run tests:
## Installation
```bash
npm test
$ elm package install
```
To engage Auto-Rebuilding:
(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
npm run watch
$ elm live Main.elm --open -- --output=elm.js
```
## Running Tests
```bash
$ cd test
$ elm test TestRunner.elm
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {
@@ -15,4 +15,4 @@
"evancz/start-app": "2.0.0 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
}

View File

@@ -5,7 +5,7 @@
"license": "BSD-3-Clause",
"source-directories": [
".",
"../src"
".."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -1,14 +1,24 @@
Stage 5
=======
To run tests:
## Installation
```bash
npm test
$ elm package install
```
To engage Auto-Rebuilding:
(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
npm run watch
$ elm live Main.elm --open -- --output=elm.js
```
## Running Tests
```bash
$ cd test
$ elm test TestRunner.elm
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {
@@ -15,4 +15,4 @@
"evancz/start-app": "2.0.0 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
}

View File

@@ -5,7 +5,7 @@
"license": "BSD-3-Clause",
"source-directories": [
".",
"../src"
".."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -1,14 +1,24 @@
Stage 5
=======
To run tests:
## Installation
```bash
npm test
$ elm package install
```
To engage Auto-Rebuilding:
(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
npm run watch
$ elm live Main.elm --open -- --output=elm.js
```
## Running Tests
```bash
$ cd test
$ elm test TestRunner.elm
```

View File

@@ -4,7 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
"."
],
"exposed-modules": [],
"dependencies": {
@@ -15,4 +15,4 @@
"evancz/start-app": "2.0.0 <= v < 3.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
}

View File

@@ -5,7 +5,7 @@
"license": "BSD-3-Clause",
"source-directories": [
".",
"../src"
".."
],
"exposed-modules": [],
"dependencies": {

View File

@@ -0,0 +1,8 @@
module ElmHub (..) where
import Css exposing (..)
css =
stylesheet
[ (.) "foo" [] ]

View File

@@ -1,20 +1,23 @@
Stage 5
=======
To run tests:
## Installation
```bash
npm test
$ elm package install
```
To compile CSS:
(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
npm run css
$ elm live Main.elm --open -- --output=elm.js
```
To engage Auto-Rebuilding:
## Compiling CSS
```bash
npm run watch
$ elm test css/Stylesheets.elm
```

View File

@@ -4,8 +4,7 @@
"repository": "https://github.com/rtfeldman/elm-workshop.git",
"license": "BSD-3-Clause",
"source-directories": [
"src",
"css"
"."
],
"exposed-modules": [],
"dependencies": {
@@ -17,4 +16,4 @@
"rtfeldman/elm-css": "1.0.0 <= v < 2.0.0"
},
"elm-version": "0.16.0 <= v < 0.17.0"
}
}

View File

@@ -1,8 +0,0 @@
module ElmHub (..) where
import Css exposing (..)
css =
stylesheet
[ (.) "foo" [] ]

View File

@@ -5,7 +5,7 @@
"license": "BSD-3-Clause",
"source-directories": [
".",
"../src"
".."
],
"exposed-modules": [],
"dependencies": {