Place an elm-package.json file in each exercise directory

This commit is contained in:
Erik Simmler 2016-03-13 14:04:14 -04:00
parent 153caf22f2
commit c71f090a4e
6 changed files with 54 additions and 6 deletions

View file

@ -7,9 +7,8 @@ sudo: false
install:
- nvm install 0.12
- nvm use 0.12
- npm install -g elm@0.16.0
- npm install -g elm@0.16.0 elm-test@0.16.0
- elm package install -y
- npm install elm-test
script:
- bin/fetch-configlet

View file

@ -5,7 +5,7 @@
"license": "BSD3",
"source-directories": [
".",
"./exercises/hello_world",
"./exercises/hello-world",
"./exercises/leap",
"./exercises/bob"
],

View file

@ -0,0 +1,16 @@
{
"version": "1.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
"elm-lang/core": "2.0.0 <= v < 4.0.0",
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
},
"elm-version": "0.15.0 <= v < 0.17.0"
}

View file

@ -1,7 +1,8 @@
module HelloWorld where
module HelloWorld (..) where
helloworld : Maybe String -> String
helloworld name =
helloWorld : Maybe String -> String
helloWorld name =
case name of
Just name ->
"Hello, " ++ name ++ "!"

View file

@ -0,0 +1,16 @@
{
"version": "1.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
"elm-lang/core": "2.0.0 <= v < 4.0.0",
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
},
"elm-version": "0.15.0 <= v < 0.17.0"
}

View file

@ -0,0 +1,16 @@
{
"version": "1.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
"."
],
"exposed-modules": [],
"dependencies": {
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
"elm-lang/core": "2.0.0 <= v < 4.0.0",
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
},
"elm-version": "0.15.0 <= v < 0.17.0"
}