valaxy 0.18.0-beta.2 → 0.18.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/main.ts +2 -2
- package/client/setup/main.ts +2 -0
- package/client/utils/dev.ts +1 -1
- package/dist/{chunk-V3BYMJ7P.cjs → chunk-3BEOLPLA.cjs} +29 -27
- package/dist/{chunk-OKWTZ6SV.mjs → chunk-APMSEIOX.mjs} +31 -29
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.mjs +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.mjs +1 -1
- package/package.json +2 -2
package/client/main.ts
CHANGED
|
@@ -20,7 +20,7 @@ import '/@valaxyjs/styles'
|
|
|
20
20
|
import 'uno.css'
|
|
21
21
|
|
|
22
22
|
import setupMain from './setup/main'
|
|
23
|
-
import {
|
|
23
|
+
import { setupValaxyDevTools } from './utils/dev'
|
|
24
24
|
|
|
25
25
|
const valaxyConfig = initValaxyConfig()
|
|
26
26
|
|
|
@@ -60,7 +60,7 @@ const routesWithLayout = setupLayouts(import.meta.env.DEV
|
|
|
60
60
|
)
|
|
61
61
|
|
|
62
62
|
if (import.meta.env.DEV)
|
|
63
|
-
|
|
63
|
+
setupValaxyDevTools()
|
|
64
64
|
|
|
65
65
|
// https://github.com/antfu/vite-ssg
|
|
66
66
|
export const createApp = ViteSSG(
|
package/client/setup/main.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { ComputedRef } from 'vue'
|
|
|
14
14
|
// https://github.com/microsoft/TypeScript/issues/42873
|
|
15
15
|
import type { DefaultTheme, ValaxyConfig } from 'valaxy/types'
|
|
16
16
|
|
|
17
|
+
import consola from 'consola'
|
|
17
18
|
import { install as installValaxy } from '../modules/valaxy'
|
|
18
19
|
import { install as installPinia } from '../modules/pinia'
|
|
19
20
|
import { install as installNprogress } from '../modules/nprogress'
|
|
@@ -40,6 +41,7 @@ export default function setupMain(ctx: ViteSSGContext, config: ComputedRef<Valax
|
|
|
40
41
|
import('../modules/devtools').then(({ install: installDevtools }) => {
|
|
41
42
|
setTimeout(() => {
|
|
42
43
|
installDevtools(ctx)
|
|
44
|
+
consola.success('Valaxy Devtools installed')
|
|
43
45
|
}, 0)
|
|
44
46
|
})
|
|
45
47
|
}
|
package/client/utils/dev.ts
CHANGED