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:
parent
54893b3143
commit
e9a8e9a660
9 changed files with 1169 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ bin/elm-format
|
|||
elm-stuff
|
||||
CHECKLIST
|
||||
build.js
|
||||
node_modules
|
||||
|
|
19
SETUP.md
19
SETUP.md
|
@ -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
|
||||
```
|
|
@ -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
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
|
10
exercises/hello-world/package.json
Normal file
10
exercises/hello-world/package.json
Normal 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"
|
||||
}
|
||||
}
|
|
@ -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
|
|
@ -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"
|
1136
exercises/hello-world/yarn.lock
Normal file
1136
exercises/hello-world/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue