create-widget 24.1.1-beta.32 → 24.1.1-beta.34
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/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hello-widget",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
|
-
"build": "run-p type-check \"build-only {@}\" --",
|
|
9
8
|
"preview": "vite preview",
|
|
10
|
-
"build
|
|
11
|
-
"update:widgetjs": "widget dependencies -t remote"
|
|
12
|
-
"type-check": "vue-tsc --build --force"
|
|
9
|
+
"build": "vite build",
|
|
10
|
+
"update:widgetjs": "widget dependencies -t remote"
|
|
13
11
|
},
|
|
14
12
|
"dependencies": {
|
|
15
13
|
"@vueuse/core": "^11.0.1",
|
|
@@ -24,6 +22,8 @@
|
|
|
24
22
|
"@types/node": "^18.19.3",
|
|
25
23
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
26
24
|
"@vue/tsconfig": "^0.5.0",
|
|
25
|
+
"unplugin-auto-import": "^0.11.4",
|
|
26
|
+
"unplugin-vue-components": "^0.22.9",
|
|
27
27
|
"@widget-js/vite-plugin-widget": "^24.1.1-beta.30",
|
|
28
28
|
"@widget-js/cli": "^24.1.1-beta.31",
|
|
29
29
|
"typescript": "~5.3.0",
|
package/template/vite.config.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { URL, fileURLToPath } from 'node:url'
|
|
2
2
|
import widget from '@widget-js/vite-plugin-widget'
|
|
3
|
-
|
|
3
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
4
|
+
import Components from 'unplugin-vue-components/vite'
|
|
4
5
|
import { defineConfig } from 'vite'
|
|
5
6
|
import vue from '@vitejs/plugin-vue'
|
|
7
|
+
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
|
6
8
|
|
|
7
9
|
// https://vitejs.dev/config/
|
|
8
10
|
export default defineConfig({
|
|
9
|
-
plugins: [vue(), widget()],
|
|
11
|
+
plugins: [vue(), widget(), AutoImport({ resolvers: [ElementPlusResolver()] }), Components({ resolvers: [ElementPlusResolver()] })],
|
|
10
12
|
resolve: {
|
|
11
13
|
alias: {
|
|
12
14
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|