Flatten directory structure and stop using helpers
This commit is contained in:
@@ -20,15 +20,15 @@ git clone https://github.com/rtfeldman/elm-workshop.git
|
|||||||
cd elm-workshop
|
cd elm-workshop
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install dependencies
|
## Install supporting tools
|
||||||
|
|
||||||
Run this at the terminal:
|
Run this at the terminal:
|
||||||
|
|
||||||
```bash
|
```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
|
## Start with Stage 1
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module ElmHub (..) where
|
module Main (..) where
|
||||||
|
|
||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
Stage 1
|
Stage 1
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To engage Auto-Rebuilding:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<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.
|
// Uncomment this line and comment out the above to enable elm-reactor support.
|
||||||
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module ElmHub (..) where
|
module Main (..) where
|
||||||
|
|
||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
Stage 2
|
Stage 2
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To engage Auto-Rebuilding:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<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.
|
// Uncomment this line and comment out the above to enable elm-reactor support.
|
||||||
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module ElmHub (..) where
|
module Main (..) where
|
||||||
|
|
||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
Stage 3
|
Stage 3
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To engage Auto-Rebuilding:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<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.
|
// Uncomment this line and comment out the above to enable elm-reactor support.
|
||||||
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module ElmHub (..) where
|
module Main (..) where
|
||||||
|
|
||||||
import Html exposing (..)
|
import Html exposing (..)
|
||||||
import Html.Attributes exposing (..)
|
import Html.Attributes exposing (..)
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
Stage 4
|
Stage 4
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To engage Auto-Rebuilding:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<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.
|
// Uncomment this line and comment out the above to enable elm-reactor support.
|
||||||
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
// var app = Elm.fullscreenDebug("ElmHub", "ElmHub.elm");
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
Stage 5
|
Stage 5
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To run tests:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
npm run watch
|
$ elm live Main.elm --open -- --output=elm.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd test
|
||||||
|
$ elm test TestRunner.elm
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
".",
|
".",
|
||||||
"../src"
|
".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
Stage 5
|
Stage 5
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To run tests:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
npm run watch
|
$ elm live Main.elm --open -- --output=elm.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd test
|
||||||
|
$ elm test TestRunner.elm
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
".",
|
".",
|
||||||
"../src"
|
".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
Stage 5
|
Stage 5
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To run tests:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
npm run watch
|
$ elm live Main.elm --open -- --output=elm.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd test
|
||||||
|
$ elm test TestRunner.elm
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
".",
|
".",
|
||||||
"../src"
|
".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,14 +1,24 @@
|
|||||||
Stage 5
|
Stage 5
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To run tests:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
npm run watch
|
$ elm live Main.elm --open -- --output=elm.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running Tests
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd test
|
||||||
|
$ elm test TestRunner.elm
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src"
|
"."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
".",
|
".",
|
||||||
"../src"
|
".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
module ElmHub (..) where
|
||||||
|
|
||||||
|
import Css exposing (..)
|
||||||
|
|
||||||
|
|
||||||
|
css =
|
||||||
|
stylesheet
|
||||||
|
[ (.) "foo" [] ]
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
Stage 5
|
Stage 5
|
||||||
=======
|
=======
|
||||||
|
|
||||||
To run tests:
|
## Installation
|
||||||
|
|
||||||
```bash
|
```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
|
```bash
|
||||||
npm run css
|
$ elm live Main.elm --open -- --output=elm.js
|
||||||
```
|
```
|
||||||
|
|
||||||
To engage Auto-Rebuilding:
|
## Compiling CSS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run watch
|
$ elm test css/Stylesheets.elm
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -4,8 +4,7 @@
|
|||||||
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
"repository": "https://github.com/rtfeldman/elm-workshop.git",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
"src",
|
"."
|
||||||
"css"
|
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
module ElmHub (..) where
|
|
||||||
|
|
||||||
import Css exposing (..)
|
|
||||||
|
|
||||||
|
|
||||||
css =
|
|
||||||
stylesheet
|
|
||||||
[ (.) "foo" [] ]
|
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"source-directories": [
|
"source-directories": [
|
||||||
".",
|
".",
|
||||||
"../src"
|
".."
|
||||||
],
|
],
|
||||||
"exposed-modules": [],
|
"exposed-modules": [],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user