Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 17, 2022
1 parent 3a666fc commit 0be165b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Stub
run: pnpm stub
- name: Build (stub)
run: pnpm build:stub

- name: Typecheck
run: pnpm typecheck
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:

# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62
# Install playwright's binary under custom directory to cache
- name: Set Playwright path (non-windows)
- name: Set Playwright path
if: runner.os != 'Windows'
run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/playwright-bin" >> $GITHUB_ENV
- name: Set Playwright path (windows)
Expand All @@ -136,8 +136,8 @@ jobs:
# does not need to explicitly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved
run: pnpm playwright install chromium

- name: Stub
run: pnpm stub
- name: Build (stub)
run: pnpm build:stub

- name: Test (unit)
run: pnpm test:unit
Expand Down Expand Up @@ -192,8 +192,8 @@ jobs:
# does not need to explicitly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved
run: pnpm playwright install chromium

- name: Stub
run: pnpm stub
- name: Build (stub)
run: pnpm build:stub

- name: Test (fixtures)
run: pnpm test:fixtures:webpack
Expand Down
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@
"type": "module",
"scripts": {
"build": "FORCE_COLOR=1 pnpm --filter './packages/**' prepack",
"changelog": "changelogen",
"cleanup": "rimraf 'packages/**/node_modules' 'examples/**/node_modules' 'node_modules'",
"dev": "pnpm nuxi dev playground",
"dev:build": "pnpm nuxi build playground",
"dev:preview": "pnpm nuxi preview playground",
"build:stub": "pnpm --filter './packages/**' prepack --stub",
"cleanup": "rimraf 'packages/**/node_modules' 'examples/**/node_modules' 'docs/node_modules' 'playground/node_modules' 'node_modules'",
"example": "./scripts/example.sh dev",
"example:build": "./scripts/example.sh build",
"lint": "eslint --ext .vue,.ts,.js,.mjs .",
"lint:docs": "markdownlint ./docs/content && case-police 'docs/content**/*.md'",
"lint:docs:fix": "markdownlint ./docs/content --fix && case-police 'docs/content**/*.md' --fix",
"nuxi": "NUXT_TELEMETRY_DISABLED=1 JITI_ESM_RESOLVE=1 nuxi",
"nuxt": "NUXT_TELEMETRY_DISABLED=1 JITI_ESM_RESOLVE=1 nuxi",
"play": "echo use pnpm dev && exit 1",
"stub": "pnpm --filter './packages/**' prepack --stub",
"play": "pnpm nuxi build playground",
"play:build": "pnpm nuxi build playground",
"play:preview": "pnpm nuxi preview playground",
"test:fixtures": "NUXT_TELEMETRY_DISABLED=1 pnpm nuxi prepare test/fixtures/basic && JITI_ESM_RESOLVE=1 vitest run --dir test",
"test:fixtures:dev": "NUXT_TELEMETRY_DISABLED=1 NUXT_TEST_DEV=true pnpm test:fixtures",
"test:fixtures:webpack": "NUXT_TELEMETRY_DISABLED=1 TEST_WITH_WEBPACK=1 pnpm test:fixtures",
"test:types": "pnpm nuxi prepare test/fixtures/basic && cd test/fixtures/basic && npx vue-tsc --noEmit",
"test:unit": "JITI_ESM_RESOLVE=1 vitest run --dir packages",
"typecheck": "tsc --noEmit",
"version": "pnpm i && git add pnpm-lock.yaml"
"typecheck": "tsc --noEmit"
},
"resolutions": {
"@nuxt/kit": "workspace:*",
Expand Down

0 comments on commit 0be165b

Please sign in to comment.