chore: use dev:prepare instead of build:stub

This commit is contained in:
Daniel Roe 2023-12-19 12:21:11 +00:00
parent dce7227b18
commit 802b3e28c1
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
7 changed files with 13 additions and 10 deletions

View File

@ -15,6 +15,8 @@
] ]
} }
}, },
"postStartCommand": "pnpm install && pnpm build:stub", "postStartCommand": "pnpm install && pnpm dev:prepare",
"mounts": ["type=volume,target=${containerWorkspaceFolder}/node_modules"] "mounts": [
"type=volume,target=${containerWorkspaceFolder}/node_modules"
]
} }

View File

@ -24,7 +24,7 @@ jobs:
run: pnpm install run: pnpm install
- name: Build (stub) - name: Build (stub)
run: pnpm build:stub run: pnpm dev:prepare
- name: Lint (code) - name: Lint (code)
run: pnpm lint:fix run: pnpm lint:fix

View File

@ -49,7 +49,7 @@ jobs:
run: pnpm install run: pnpm install
- name: Build (stub) - name: Build (stub)
run: pnpm build:stub run: pnpm dev:prepare
- name: Typecheck - name: Typecheck
run: pnpm typecheck run: pnpm typecheck
@ -153,7 +153,7 @@ jobs:
run: pnpm install run: pnpm install
- name: Build (stub) - name: Build (stub)
run: pnpm build:stub run: pnpm dev:prepare
- name: Lint - name: Lint
run: pnpm lint run: pnpm lint
@ -177,7 +177,7 @@ jobs:
run: pnpm install run: pnpm install
- name: Build (stub) - name: Build (stub)
run: pnpm build:stub run: pnpm dev:prepare
- name: Test (unit) - name: Test (unit)
run: pnpm test:unit run: pnpm test:unit

View File

@ -1,7 +1,7 @@
tasks: tasks:
- init: | - init: |
npx pnpm install npx pnpm install
npx pnpm build:stub npx pnpm dev:prepare
command: npx pnpm play command: npx pnpm play
ports: ports:

View File

@ -1,3 +1,3 @@
{ {
"startCommand": "pnpm build:stub && pnpm play" "startCommand": "pnpm dev:prepare && pnpm play"
} }

View File

@ -35,7 +35,7 @@ To contribute to Nuxt, you need to set up a local environment.
:: ::
5. Activate the passive development system 5. Activate the passive development system
```bash [Terminal] ```bash [Terminal]
pnpm build:stub pnpm dev:prepare
``` ```
6. Check out a branch where you can work and commit your changes: 6. Check out a branch where you can work and commit your changes:
```bash [Terminal] ```bash [Terminal]

View File

@ -9,9 +9,10 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"build": "pnpm --filter './packages/**' prepack", "build": "pnpm --filter './packages/**' prepack",
"build:stub": "pnpm --filter './packages/**' prepack --stub", "build:stub": "pnpm dev:prepare",
"cleanup": "rimraf 'packages/**/node_modules' 'playground/node_modules' 'node_modules'", "cleanup": "rimraf 'packages/**/node_modules' 'playground/node_modules' 'node_modules'",
"dev": "pnpm play", "dev": "pnpm play",
"dev:prepare": "pnpm --filter './packages/**' prepack --stub",
"lint": "eslint --ext .vue,.ts,.js,.mjs .", "lint": "eslint --ext .vue,.ts,.js,.mjs .",
"lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix", "lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix",
"lint:docs": "markdownlint ./docs && case-police 'docs/**/*.md' *.md", "lint:docs": "markdownlint ./docs && case-police 'docs/**/*.md' *.md",