[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-vitest. An vitest environment with support for testing code that needs a Nuxt runtime environment
nuxt nuxt-module testing unit-testing vitest
0

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix ci build (#40)

authored by

Daniel Roe and committed by
GitHub
(Jan 21, 2023, 10:41 PM UTC) 7881f7fb 2b66a6be

+14 -6
+6 -5
package.json
··· 2 2 "private": true, 3 3 "packageManager": "pnpm@7.25.0", 4 4 "scripts": { 5 - "build": "pnpm run -r build", 6 - "dev:prepare": "pnpm run -r build --stub && pnpm nuxi prepare playground", 7 - "dev": "pnpm dev:prepare && pnpm -C playground test:nuxt", 5 + "build": "pnpm run --filter=./packages/* -r build", 6 + "stub": "pnpm run --filter=./packages/* -r stub", 7 + "dev:prepare": "pnpm nuxi prepare playground", 8 + "dev": "pnpm run build && pnpm -C playground test:nuxt", 8 9 "lint": "pnpm lint:all:eslint && pnpm lint:all:prettier", 9 10 "lint:all:eslint": "pnpm lint:eslint --ext .ts,.js,.mjs,.cjs .", 10 11 "lint:all:prettier": "pnpm lint:prettier \"**/*.{js,json,ts}\"", 11 12 "lint:eslint": "eslint --fix", 12 - "postinstall": "husky install", 13 + "play:dev": "pnpm -C playground dev", 13 14 "lint:prettier": "prettier --write --loglevel warn", 14 - "prepare": "husky install && pnpm build", 15 + "prepare": "husky install", 15 16 "test": "pnpm -C playground test" 16 17 }, 17 18 "devDependencies": {
+6
.github/workflows/ci.yml
··· 40 40 - name: 📦 Install dependencies 41 41 run: pnpm install 42 42 43 + - name: 🚧 Stub project dependencies 44 + run: pnpm stub 45 + 46 + - name: 💪 Generate types 47 + run: pnpm dev:prepare 48 + 43 49 - name: 🛠 Build project 44 50 run: pnpm build 45 51
+1
packages/vitest-environment-nuxt/build.config.ts
··· 2 2 3 3 export default defineBuildConfig({ 4 4 externals: [ 5 + '#imports', 5 6 '#app/entry', 6 7 '#build/root-component.mjs', 7 8 '@nuxt/schema',
+1 -1
packages/vitest-environment-nuxt/package.json
··· 15 15 "license": "MIT", 16 16 "scripts": { 17 17 "build": "unbuild", 18 - "prepare": "pnpm build", 18 + "stub": "unbuild --stub", 19 19 "prepublishOnly": "pnpm -w run test && pinst --disable", 20 20 "postpublish": "pinst --enable" 21 21 },