mirror of
https://github.com/correl/elm.git
synced 2025-03-07 04:35:48 -10:00
Place an elm-package.json file in each exercise directory
This commit is contained in:
parent
153caf22f2
commit
c71f090a4e
6 changed files with 54 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"license": "BSD3",
|
||||
"source-directories": [
|
||||
".",
|
||||
"./exercises/hello_world",
|
||||
"./exercises/hello-world",
|
||||
"./exercises/leap",
|
||||
"./exercises/bob"
|
||||
],
|
||||
|
|
16
exercises/bob/elm-package.json
Normal file
16
exercises/bob/elm-package.json
Normal 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"
|
||||
}
|
|
@ -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 ++ "!"
|
||||
|
|
16
exercises/hello-world/elm-package.json
Normal file
16
exercises/hello-world/elm-package.json
Normal 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"
|
||||
}
|
16
exercises/leap/elm-package.json
Normal file
16
exercises/leap/elm-package.json
Normal 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"
|
||||
}
|
Loading…
Add table
Reference in a new issue