Skip to content

Commit 4e759ff

Browse files
committed
chore: update example
1 parent 3793f70 commit 4e759ff

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

example/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ to create a multi-variant mobile/desktop nuxt application.
77
- Most of the logic is shared in base package
88
- Using two sperate builds ensures that there are no additional dependencies leaked between mobile and desktop variants
99

10+
## Development
11+
12+
- Install dependencies with `yarn`
13+
- Use `yarn dev:desktop` and `yarn dev:mobile`
14+
15+
## Deployment
16+
17+
- Build with `yarn build:desktop` and `yarn build:mobile`
18+
- Deploy each app to a subdomain
19+
1020
## Configuration
1121

1222
- Add any common nuxt module and config to base ([base/nuxt.config](./packages/base/nuxt.config.js))

example/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
],
66
"scripts": {
77
"dev:desktop": "yarn workspace @app/desktop dev",
8-
"dev:mobile": "yarn workspace @app/mobile dev"
8+
"dev:mobile": "yarn workspace @app/mobile dev",
9+
"build:desktop": "yarn workspace @app/desktop dev",
10+
"build:mobile": "yarn workspace @app/mobile dev"
911
},
1012
"devDependencies": {
1113
"nuxt": "^2.14.7"

0 commit comments

Comments
 (0)