Skip to content

Commit

Permalink
Merge pull request #135 from elm-land/fix/bug-layout-using-type-varia…
Browse files Browse the repository at this point in the history
…bles

📦 Release - v0.19.3
  • Loading branch information
ryan-haskell committed Aug 30, 2023
2 parents e8ef725 + 0210e11 commit f6243e3
Show file tree
Hide file tree
Showing 75 changed files with 920 additions and 111 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/config.js
@@ -1,4 +1,4 @@
const version = '0.19.2'
const version = '0.19.3'

const sidebar = [
{
Expand Down
17 changes: 16 additions & 1 deletion docs/concepts/cli.md
Expand Up @@ -71,6 +71,21 @@ This command builds your Elm Land app in production-mode. This includes running
Visit the [Deploying to production](../guide/deploying) guide to learn how to correctly set up SPA redirects to the single `dist/index.html` file.




## elm-land generate

```txt
🪄 elm-land generate ............. generate Elm Land files
```

#### Description

The first step of the `elm-land build` command generates some `.elm` files in the `.elm-land/src` folder. Some projects don't need a full build step (generating a JS file, HTML file, etc),
and want to manually run `elm make` on the generated code.

For those advanced use cases, we've added a specific `generate` command that doesn't involve the unnecessary build steps.

## elm-land add page

```txt
Expand Down Expand Up @@ -172,7 +187,7 @@ Here's example output of what you'd see if you ran this command in the ["Pages a

```txt
🌈 Elm Land (v0.19.2) found 5 pages in your application
🌈 Elm Land (v0.19.3) found 5 pages in your application
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
src/Pages/Home_.elm ............... http://localhost:1234/
src/Pages/SignIn.elm .............. http://localhost:1234/sign-in
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/deploying.md
Expand Up @@ -16,7 +16,7 @@ elm-land build

```txt
🌈 Elm Land (v0.19.2) build was successful.
🌈 Elm Land (v0.19.3) build was successful.
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/pages-and-routes.md
Expand Up @@ -326,7 +326,7 @@ elm-land routes

```txt
🌈 Elm Land (v0.19.2) found 6 pages in your application
🌈 Elm Land (v0.19.3) found 6 pages in your application
⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
src/Pages/Home_.elm ........................... /
src/Pages/SignIn.elm .......................... /sign-in
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/rest-apis.md
Expand Up @@ -83,13 +83,13 @@ init =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Cmd.none
)
Expand Down Expand Up @@ -135,7 +135,7 @@ init =
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Cmd.none
)
Expand Down Expand Up @@ -847,13 +847,13 @@ init =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Cmd.none
)
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/user-input.md
Expand Up @@ -70,13 +70,13 @@ init =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> Model
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
model


Expand Down
16 changes: 16 additions & 0 deletions examples/01-hello-world/README.md
@@ -0,0 +1,16 @@
# 01-hello-world
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
16 changes: 16 additions & 0 deletions examples/02-pages-and-routes/README.md
@@ -0,0 +1,16 @@
# 02-pages-and-routes
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
16 changes: 16 additions & 0 deletions examples/03-user-input/README.md
@@ -0,0 +1,16 @@
# 03-user-input
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
16 changes: 16 additions & 0 deletions examples/04-rest-apis/README.md
@@ -0,0 +1,16 @@
# 04-rest-apis
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
16 changes: 16 additions & 0 deletions examples/05-user-auth/README.md
@@ -0,0 +1,16 @@
# 05-user-auth
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
4 changes: 2 additions & 2 deletions examples/05-user-auth/src/Pages/Home_.elm
Expand Up @@ -49,13 +49,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
4 changes: 2 additions & 2 deletions examples/05-user-auth/src/Pages/Profile/Me.elm
Expand Up @@ -49,13 +49,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
4 changes: 2 additions & 2 deletions examples/05-user-auth/src/Pages/Settings.elm
Expand Up @@ -49,13 +49,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
16 changes: 16 additions & 0 deletions examples/06-query-parameters/README.md
@@ -0,0 +1,16 @@
# 06-query-parameters
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
16 changes: 16 additions & 0 deletions examples/07-working-with-js/README.md
@@ -0,0 +1,16 @@
# 07-working-with-js
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
2 changes: 1 addition & 1 deletion examples/07-working-with-js/src/Shared.elm
Expand Up @@ -61,7 +61,7 @@ type alias Msg =
update : Route () -> Msg -> Model -> ( Model, Effect Msg )
update route msg model =
case msg of
Shared.Msg.ExampleMsgReplaceMe ->
Shared.Msg.NoOp ->
( model
, Effect.none
)
Expand Down
2 changes: 1 addition & 1 deletion examples/07-working-with-js/src/Shared/Msg.elm
Expand Up @@ -11,4 +11,4 @@ own file, so they can be imported by `Effect.elm`
-}
type Msg
= ExampleMsgReplaceMe
= NoOp
16 changes: 16 additions & 0 deletions examples/08-nested-layouts/README.md
@@ -0,0 +1,16 @@
# 08-nested-layouts
> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npx elm-land server
```

## Deploying to production

Elm Land projects are most commonly deployed as static websites.

Please visit [the "Deployment" guide](https://elm.land/guide/deploying) to learn more
about deploying your app for free using Netlify or Vercel.
6 changes: 6 additions & 0 deletions examples/08-nested-layouts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/08-nested-layouts/src/Pages/Home_.elm
Expand Up @@ -49,13 +49,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
4 changes: 2 additions & 2 deletions examples/08-nested-layouts/src/Pages/Settings.elm
Expand Up @@ -45,13 +45,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
4 changes: 2 additions & 2 deletions examples/08-nested-layouts/src/Pages/Settings/Account.elm
Expand Up @@ -45,13 +45,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down
Expand Up @@ -46,13 +46,13 @@ init () =


type Msg
= ExampleMsgReplaceMe
= NoOp


update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
ExampleMsgReplaceMe ->
NoOp ->
( model
, Effect.none
)
Expand Down

0 comments on commit f6243e3

Please sign in to comment.