mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore: run test suite on windows (#3479)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -42,6 +42,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
run: pnpm run docs:build
|
run: pnpm run docs:build
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: '--max-old-space-size=8192'
|
||||||
|
|
||||||
- name: Deploy to NuxtHub
|
- name: Deploy to NuxtHub
|
||||||
uses: nuxt-hub/action@v1
|
uses: nuxt-hub/action@v1
|
||||||
|
|||||||
3
.github/workflows/module.yml
vendored
3
.github/workflows/module.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest] # macos-latest, windows-latest
|
os: [ubuntu-latest, windows-latest] # macos-latest
|
||||||
node: [22]
|
node: [22]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -65,6 +65,7 @@ jobs:
|
|||||||
run: pnpm run dev:vue:build
|
run: pnpm run dev:vue:build
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
|
if: matrix.os != 'windows-latest'
|
||||||
run: pnpx pkg-pr-new publish --compact --no-template --pnpm
|
run: pnpx pkg-pr-new publish --compact --no-template --pnpm
|
||||||
|
|
||||||
starter-nuxt:
|
starter-nuxt:
|
||||||
|
|||||||
1
.npmrc
1
.npmrc
@@ -1,4 +1,3 @@
|
|||||||
shamefully-hoist=true
|
shamefully-hoist=true
|
||||||
auto-install-peers=true
|
auto-install-peers=true
|
||||||
ignore-workspace-root-check=true
|
ignore-workspace-root-check=true
|
||||||
shell-emulator=true
|
|
||||||
|
|||||||
@@ -6,8 +6,13 @@ export default defineBuildConfig({
|
|||||||
'./src/unplugin',
|
'./src/unplugin',
|
||||||
'./src/vite'
|
'./src/vite'
|
||||||
],
|
],
|
||||||
replace: {
|
rollup: {
|
||||||
'process.env.DEV': 'false'
|
replace: {
|
||||||
|
delimiters: ['', ''],
|
||||||
|
values: {
|
||||||
|
'process.argv.at(-1) === \'--uiDev\'': 'false'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
hooks: {
|
hooks: {
|
||||||
'mkdist:entry:options'(ctx, entry, options) {
|
'mkdist:entry:options'(ctx, entry, options) {
|
||||||
|
|||||||
@@ -96,13 +96,13 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt-module-build build",
|
"build": "nuxt-module-build build",
|
||||||
"prepack": "pnpm build",
|
"prepack": "pnpm build",
|
||||||
"dev": "DEV=true nuxi dev playground",
|
"dev": "nuxi dev playground --uiDev",
|
||||||
"dev:build": "nuxi build playground",
|
"dev:build": "nuxi build playground",
|
||||||
"dev:vue": "DEV=true vite playground-vue",
|
"dev:vue": "vite playground-vue -- --uiDev",
|
||||||
"dev:vue:build": "vite build 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": "nuxi dev docs --uiDev",
|
||||||
"docs:build": "NODE_OPTIONS='--max-old-space-size=8192' nuxi build docs",
|
"docs:build": "nuxi build docs",
|
||||||
"docs:prepare": "nuxt-component-meta docs",
|
"docs:prepare": "nuxt-component-meta docs",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export function getTemplates(options: ModuleOptions, uiConfig: Record<string, an
|
|||||||
}
|
}
|
||||||
|
|
||||||
// For local development, import directly from theme
|
// For local development, import directly from theme
|
||||||
if (process.env.DEV) {
|
if (process.argv.at(-1) === '--uiDev') {
|
||||||
const templatePath = fileURLToPath(new URL(`./theme/${kebabCase(component)}`, import.meta.url))
|
const templatePath = fileURLToPath(new URL(`./theme/${kebabCase(component)}`, import.meta.url))
|
||||||
return [
|
return [
|
||||||
`import template from ${JSON.stringify(templatePath)}`,
|
`import template from ${JSON.stringify(templatePath)}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user