Browse Source

fix(nc-gui): remove NUXT_PAGE_TRANSITION_DISABLE

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
c2ee042955
  1. 9
      packages/nc-gui/nuxt.config.ts
  2. 2
      packages/nc-gui/package.json

9
packages/nc-gui/nuxt.config.ts

@ -17,19 +17,14 @@ export default defineNuxtConfig({
ssr: false, ssr: false,
app: { app: {
pageTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE pageTransition: {
? false
: {
name: 'page', name: 'page',
mode: 'out-in', mode: 'out-in',
}, },
layoutTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE layoutTransition: {
? false
: {
name: 'layout', name: 'layout',
mode: 'out-in', mode: 'out-in',
}, },
/** In production build we need to load assets using relative path, to achieve the result we are using cdnURL */ /** In production build we need to load assets using relative path, to achieve the result we are using cdnURL */
cdnURL: process.env.NODE_ENV === 'production' ? '.' : undefined, cdnURL: process.env.NODE_ENV === 'production' ? '.' : undefined,
}, },

2
packages/nc-gui/package.json

@ -28,7 +28,7 @@
"coverage": "vitest -c test/vite.config.ts run --coverage", "coverage": "vitest -c test/vite.config.ts run --coverage",
"build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/", "build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/",
"build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui", "build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui",
"ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; NUXT_PAGE_TRANSITION_DISABLE=true pnpm run build; NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &" "ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &"
}, },
"dependencies": { "dependencies": {
"@ckpack/vue-color": "^1.2.0", "@ckpack/vue-color": "^1.2.0",

Loading…
Cancel
Save