File tree 5 files changed +82
-0
lines changed
5 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ .elm-spa
3
+ elm-stuff
4
+ node_modules
5
+ dist
Original file line number Diff line number Diff line change
1
+ # my new project
2
+ > 🌳 built with [ elm-spa] ( https://elm-spa.dev )
3
+
4
+ ## dependencies
5
+
6
+ This project requires the latest LTS version of [ Node.js] ( https://nodejs.org/ )
7
+
8
+ ``` bash
9
+ npm install -g elm elm-spa
10
+ ```
11
+
12
+ ## running locally
13
+
14
+ ``` bash
15
+ elm-spa server # starts this app at http:/localhost:1234
16
+ ```
17
+
18
+ ### other commands
19
+
20
+ ``` bash
21
+ elm-spa add # add a new page to the application
22
+ elm-spa build # production build
23
+ elm-spa watch # runs build as you code (without the server)
24
+ ```
25
+
26
+ ## learn more
27
+
28
+ You can learn more at [ elm-spa.dev] ( https://elm-spa.dev )
Original file line number Diff line number Diff line change
1
+ {
2
+ "type" : " application" ,
3
+ "source-directories" : [
4
+ " src" ,
5
+ " .elm-spa/defaults" ,
6
+ " .elm-spa/generated"
7
+ ],
8
+ "elm-version" : " 0.19.1" ,
9
+ "dependencies" : {
10
+ "direct" : {
11
+ "elm/browser" : " 1.0.2" ,
12
+ "elm/core" : " 1.0.5" ,
13
+ "elm/html" : " 1.0.0" ,
14
+ "elm/json" : " 1.1.3" ,
15
+ "elm/url" : " 1.0.0" ,
16
+ "ryan-haskell/elm-spa" : " 1.0.0"
17
+ },
18
+ "indirect" : {
19
+ "elm/time" : " 1.0.0" ,
20
+ "elm/virtual-dom" : " 1.0.2"
21
+ }
22
+ },
23
+ "test-dependencies" : {
24
+ "direct" : {},
25
+ "indirect" : {}
26
+ }
27
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
+ </ head >
7
+ < body >
8
+ < script src ="/dist/elm.js "> </ script >
9
+ < script > Elm . Main . init ( ) </ script >
10
+ </ body >
11
+ </ html >
Original file line number Diff line number Diff line change
1
+ module Pages.Home_ exposing (view )
2
+
3
+ import Html
4
+ import View exposing (View )
5
+
6
+
7
+ view : View msg
8
+ view =
9
+ { title = " Homepage"
10
+ , body = [ Html . text " Hello, world!" ]
11
+ }
You can’t perform that action at this time.
0 commit comments