elm-init 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+42/−2 lines, 3 files
Files
- elm-init.cabal +6/−2
- resources/Main.elm +21/−0
- resources/elm-package.json +15/−0
elm-init.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: elm-init-version: 0.1.0.0+version: 0.1.0.1 synopsis: Set up basic structure for an elm project description: Initialize a new empty elm project with some basic scaffolding according to 'https://github.com/evancz/elm-architecture-tutorial'.@@ -15,7 +15,11 @@ build-type: Simple -- extra-source-files: cabal-version: >=1.10+extra-source-files:+ resources/elm-package.json,+ resources/Main.elm + executable elm-init main-is: Main.hs -- other-modules:@@ -32,5 +36,5 @@ default-language: Haskell2010 source-repository head- type: git+ type: git location: git://github.com/JustusAdam/elm-init.git
+ resources/Main.elm view
@@ -0,0 +1,21 @@+module Main where++-- MODEL++type alias Model = { }+++-- UPDATE++type Action = Reset++update : Action -> Model -> Model+update action model =+ case action of+ Reset -> model+++-- VIEW++view : Model -> Html+view model = div [] []
+ resources/elm-package.json view
@@ -0,0 +1,15 @@+{+ "version": "1.0.0",+ "summary": "helpful summary of your project, less than 80 characters",+ "repository": "https://github.com/USER/PROJECT.git",+ "license": "BSD3",+ "source-directories": [+ "src"+ ],+ "exposed-modules": [],+ "dependencies": {+ "elm-lang/core": "2.0.0 <= v < 3.0.0",+ "evancz/elm-html": "3.0.0 <= v < 4.0.0"+ },+ "elm-version": "0.15.0 <= v < 0.16.0"+}