create-weapp-vite 2.0.14 → 2.0.16

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/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # create-weapp-vite
2
+
3
+ ## 简介
4
+
5
+ `create-weapp-vite` 是 weapp-vite 的官方脚手架,用于快速创建小程序项目。它提供交互式模板选择,也支持命令行参数方式使用;同时导出可编程 API 方便二次封装。
6
+
7
+ ## 特性
8
+
9
+ - 交互式创建或非交互式参数创建
10
+ - 内置多种模板(默认、Wevu、Tailwindcss、TDesign、Vant 等)
11
+ - 自动对齐 `weapp-vite` 与 `wevu` 版本
12
+ - 自动处理 `.gitignore` 写入
13
+
14
+ ## 安装
15
+
16
+ 推荐直接使用包管理器的 create 命令:
17
+
18
+ ```bash
19
+ pnpm create weapp-vite
20
+ # 或
21
+ npx create-weapp-vite
22
+ ```
23
+
24
+ ## 使用
25
+
26
+ 交互式创建:
27
+
28
+ ```bash
29
+ pnpm create weapp-vite
30
+ ```
31
+
32
+ 非交互式创建:
33
+
34
+ ```bash
35
+ pnpm create weapp-vite my-app wevu
36
+ ```
37
+
38
+ 在代码中使用:
39
+
40
+ ```ts
41
+ import { createProject, TemplateName } from 'create-weapp-vite'
42
+
43
+ await createProject('my-app', TemplateName.wevu)
44
+ ```
45
+
46
+ ## 配置
47
+
48
+ `TemplateName` 支持以下模板:
49
+
50
+ - `default`
51
+ - `wevu`
52
+ - `tailwindcss`
53
+ - `vant`
54
+ - `tdesign`
55
+ - `wevu-tdesign`
56
+
57
+ ## 相关链接
58
+
59
+ - weapp-vite 文档:https://vite.icebreaker.top/
60
+ - 仓库:https://github.com/weapp-vite/weapp-vite
@@ -5,10 +5,10 @@ import fs2 from "fs-extra";
5
5
  import path2 from "pathe";
6
6
 
7
7
  // ../weapp-vite/package.json
8
- var version = "6.4.3";
8
+ var version = "6.4.5";
9
9
 
10
10
  // ../wevu/package.json
11
- var version2 = "2.1.1";
11
+ var version2 = "2.1.3";
12
12
 
13
13
  // src/enums.ts
14
14
  var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createProject
3
- } from "./chunk-RU4I2F55.js";
3
+ } from "./chunk-4MGYFE4M.js";
4
4
 
5
5
  // src/cli.ts
6
6
  import path from "path";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TemplateName,
3
3
  createProject
4
- } from "./chunk-RU4I2F55.js";
4
+ } from "./chunk-4MGYFE4M.js";
5
5
  export {
6
6
  TemplateName,
7
7
  createProject
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.14",
4
+ "version": "2.0.16",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -36,7 +36,7 @@
36
36
  "tabIndent": "insertSpaces",
37
37
  "tabSize": 2
38
38
  },
39
- "libVersion": "2.32.3",
39
+ "libVersion": "3.13.2",
40
40
  "packOptions": {
41
41
  "ignore": [],
42
42
  "include": []
@@ -23,7 +23,8 @@
23
23
  "compileHotReLoad": false,
24
24
  "skylineRenderEnable": true,
25
25
  "packNpmManually": true,
26
- "es6": true
26
+ "es6": true,
27
+ "minifyWXML": true
27
28
  },
28
29
  "simulatorType": "wechat",
29
30
  "simulatorPluginLibVersion": {},
@@ -33,7 +34,7 @@
33
34
  "tabIndent": "insertSpaces",
34
35
  "tabSize": 2
35
36
  },
36
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
37
38
  "packOptions": {
38
39
  "ignore": [],
39
40
  "include": []
@@ -4,5 +4,5 @@
4
4
  "setting": {
5
5
  "compileHotReLoad": true
6
6
  },
7
- "libVersion": "development"
7
+ "libVersion": "3.14.0"
8
8
  }
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []
@@ -34,7 +34,7 @@
34
34
  "tabIndent": "insertSpaces",
35
35
  "tabSize": 2
36
36
  },
37
- "libVersion": "2.32.3",
37
+ "libVersion": "3.13.2",
38
38
  "packOptions": {
39
39
  "ignore": [],
40
40
  "include": []