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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-widget",
3
- "version": "24.1.1-beta.32",
3
+ "version": "24.1.1-beta.34",
4
4
  "private": false,
5
5
  "description": "An easy way to start a Widget project",
6
6
  "author": "Neo Fu <rtugeek@gmail.com>",
@@ -1,15 +1,13 @@
1
1
  {
2
2
  "name": "hello-widget",
3
3
  "type": "module",
4
- "version": "0.0.1",
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-only": "vite 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",
@@ -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)),
@@ -13,7 +13,6 @@ export default new WidgetPackage({
13
13
  title: {
14
14
  'zh-CN': '修改成你的组件标题',
15
15
  },
16
- version: '1.0.0',
17
16
  devOptions: {
18
17
  folder: './src/widgets/',
19
18
  },