mirror of
https://github.com/ryan-haskell/elm-spa.git
synced 2024-11-22 03:12:01 +03:00
Merge branch 'next' of github.com:ryannhg/elm-spa into next
This commit is contained in:
commit
e25e03e4b4
@ -1,4 +1,4 @@
|
||||
# my new project
|
||||
# examples/01-hello-world
|
||||
> 🌳 built with [elm-spa](https://elm-spa.dev)
|
||||
|
||||
## dependencies
|
||||
@ -25,4 +25,4 @@ elm-spa watch # runs build as you code (without the server)
|
||||
|
||||
## learn more
|
||||
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# my new project
|
||||
# examples/02-pages
|
||||
> 🌳 built with [elm-spa](https://elm-spa.dev)
|
||||
|
||||
## dependencies
|
||||
@ -25,4 +25,4 @@ elm-spa watch # runs build as you code (without the server)
|
||||
|
||||
## learn more
|
||||
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# my new project
|
||||
# examples/03-user-auth
|
||||
> 🌳 built with [elm-spa](https://elm-spa.dev)
|
||||
|
||||
## dependencies
|
||||
@ -25,4 +25,4 @@ elm-spa watch # runs build as you code (without the server)
|
||||
|
||||
## learn more
|
||||
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
|
@ -22,10 +22,6 @@ type alias User =
|
||||
|
||||
beforeProtectedInit : Shared.Model -> Request -> ElmSpa.Protected User Route
|
||||
beforeProtectedInit shared req =
|
||||
let
|
||||
_ =
|
||||
Debug.log "user" shared.user
|
||||
in
|
||||
case shared.user of
|
||||
Just user ->
|
||||
ElmSpa.Provide user
|
||||
|
@ -1,4 +1,4 @@
|
||||
# my new project
|
||||
# examples/05-vite
|
||||
> 🌳 built with [elm-spa](https://elm-spa.dev)
|
||||
|
||||
## dependencies
|
||||
@ -12,17 +12,16 @@ npm install -g elm elm-spa
|
||||
## running locally
|
||||
|
||||
```bash
|
||||
elm-spa server # starts this app at http:/localhost:1234
|
||||
npm start
|
||||
```
|
||||
|
||||
### other commands
|
||||
|
||||
```bash
|
||||
elm-spa add # add a new page to the application
|
||||
elm-spa build # production build
|
||||
elm-spa watch # runs build as you code (without the server)
|
||||
npm run dev # run elm-spa and Vite without "npm install"
|
||||
npm run build # production codegen and vite build
|
||||
```
|
||||
|
||||
## learn more
|
||||
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# my new project
|
||||
# examples/06-testing
|
||||
> 🌳 built with [elm-spa](https://elm-spa.dev)
|
||||
|
||||
## dependencies
|
||||
@ -6,7 +6,7 @@
|
||||
This project requires the latest LTS version of [Node.js](https://nodejs.org/)
|
||||
|
||||
```bash
|
||||
npm install -g elm elm-spa
|
||||
npm install -g elm elm-spa elm-test
|
||||
```
|
||||
|
||||
## running locally
|
||||
@ -21,9 +21,9 @@ elm-spa server # starts this app at http:/localhost:1234
|
||||
elm-spa add # add a new page to the application
|
||||
elm-spa build # production build
|
||||
elm-spa watch # runs build as you code (without the server)
|
||||
elm-test # run unit tests
|
||||
elm-test # run unit tests
|
||||
```
|
||||
|
||||
## learn more
|
||||
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
You can learn more at [elm-spa.dev](https://elm-spa.dev)
|
||||
|
Loading…
Reference in New Issue
Block a user