chore(github): improve module workflow

This commit is contained in:
Benjamin Canac
2025-03-24 12:37:02 +01:00
parent cec9dadc7a
commit e2e079f0d8
2 changed files with 9 additions and 6 deletions

View File

@@ -50,16 +50,19 @@ jobs:
run: pnpm run typecheck run: pnpm run typecheck
- name: Test - name: Test
run: pnpm run test run: pnpm run test run
- name: Test (vue) - name: Test (vue)
run: pnpm run test:vue run: pnpm run test:vue run
- name: Build - name: Build
run: pnpm run build run: pnpm run build
- name: Build vue fixture - name: Build playground
run: pnpm run test:vue:build run: pnpm run dev:build
- name: Build playground (vue)
run: pnpm run dev:vue:build
- name: Publish - name: Publish
run: pnpx pkg-pr-new publish --compact --no-template --pnpm run: pnpx pkg-pr-new publish --compact --no-template --pnpm

View File

@@ -63,8 +63,9 @@
"build": "nuxt-module-build build", "build": "nuxt-module-build build",
"prepack": "pnpm build", "prepack": "pnpm build",
"dev": "DEV=true nuxi dev playground", "dev": "DEV=true nuxi dev playground",
"dev:vue": "DEV=true vite playground-vue",
"dev:build": "nuxi build playground", "dev:build": "nuxi build playground",
"dev:vue": "DEV=true vite playground-vue",
"dev:vue:build": "vite build playground-vue",
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs && vite build playground-vue", "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs && vite build playground-vue",
"docs": "DEV=true nuxi dev docs", "docs": "DEV=true nuxi dev docs",
"docs:build": "NODE_OPTIONS='--max-old-space-size=8192' nuxi build docs", "docs:build": "NODE_OPTIONS='--max-old-space-size=8192' nuxi build docs",
@@ -74,7 +75,6 @@
"typecheck": "vue-tsc --noEmit && nuxi typecheck playground && nuxi typecheck docs && cd playground-vue && vue-tsc --noEmit", "typecheck": "vue-tsc --noEmit && nuxi typecheck playground && nuxi typecheck docs && cd playground-vue && vue-tsc --noEmit",
"test": "vitest", "test": "vitest",
"test:vue": "vitest -c vitest.vue.config.ts", "test:vue": "vitest -c vitest.vue.config.ts",
"test:vue:build": "vite build playground-vue",
"release": "release-it" "release": "release-it"
}, },
"dependencies": { "dependencies": {