1
0
Fork 0
mirror of https://github.com/correl/elm.git synced 2025-04-09 01:01:03 -09:00

Proof of concept for an npm (or yarn) managed setup on the hello-world exercise

This commit is contained in:
Erik Simmler 2016-12-17 11:34:35 -05:00
parent 54893b3143
commit e9a8e9a660
9 changed files with 1169 additions and 12 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@ bin/elm-format
elm-stuff
CHECKLIST
build.js
node_modules

View file

@ -1,5 +1,18 @@
## Getting Started
## Elm Installation
To get started, please see docs on exercism.io:
Refer to the [exercism help page][http://exercism.io/languages/elm] for Elm installation and learning
resources.
http://exercism.io/languages/elm
## Writing the Code
The first time you start an exercise, you'll need to ensure you have the appropriate dependancies installed.
```bash
$ npm install
```
Execute the tests with:
```bash
$ npm test
```

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -22,7 +22,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -8,9 +8,9 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "4.0.0 <= v < 5.0.0",
"elm-community/elm-test": "2.0.0 <= v < 3.0.0",
"rtfeldman/node-test-runner": "2.0.0 <= v < 3.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
},
"elm-version": "0.17.0 <= v < 0.18.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -0,0 +1,10 @@
{
"scripts": {
"postinstall": "elm package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

File diff suppressed because it is too large Load diff