create-weapp-vite 2.0.80 → 2.1.0

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.
Files changed (34) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{src-CVPELAx0.js → src-yFJBBYLM.js} +8 -12
  4. package/package.json +5 -3
  5. package/templates/default/package.json +2 -2
  6. package/templates/default/src/components/HelloWorld/HelloWorld.ts +1 -1
  7. package/templates/default/src/pages/index/index.ts +1 -1
  8. package/templates/default/src/pages/layouts/index.ts +1 -1
  9. package/templates/lib/package.json +3 -5
  10. package/templates/lib/src/components/HelloWorld/HelloWorld.ts +1 -1
  11. package/templates/lib/src/pages/index/index.ts +1 -1
  12. package/templates/lib/src/pages/layouts/index.ts +1 -1
  13. package/templates/tailwindcss/package.json +2 -2
  14. package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +1 -1
  15. package/templates/tailwindcss/src/pages/index/index.ts +1 -1
  16. package/templates/tailwindcss/src/pages/layouts/index.ts +1 -1
  17. package/templates/tdesign/package.json +2 -2
  18. package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +1 -1
  19. package/templates/tdesign/src/pages/index/index.ts +1 -1
  20. package/templates/tdesign/src/pages/layouts/index.ts +1 -1
  21. package/templates/vant/package.json +2 -2
  22. package/templates/vant/src/components/HelloWorld/HelloWorld.ts +1 -1
  23. package/templates/vant/src/pages/index/index.ts +1 -1
  24. package/templates/vant/src/pages/layouts/index.ts +1 -1
  25. package/templates/wevu/package.json +2 -2
  26. package/templates/wevu/src/app.vue +1 -1
  27. package/templates/wevu-tdesign/package.json +2 -2
  28. package/templates/wevu-tdesign/src/app.vue +1 -1
  29. package/templates/wevu-tdesign/src/hooks/usePullDownRefresh.ts +1 -1
  30. package/templates/wevu-tdesign/src/pages/ability/index.vue +1 -1
  31. package/templates/wevu-tdesign/src/pages/index/index.vue +1 -1
  32. package/templates/wevu-tdesign/src/pages/layouts/index.vue +1 -1
  33. package/templates/wevu-tdesign/src/subpackages/ability/index.vue +1 -1
  34. package/templates/wevu-tdesign/src/subpackages/lab/index.vue +1 -1
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-CVPELAx0.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-yFJBBYLM.js";
2
2
  import logger from "@weapp-core/logger";
3
3
  import { fs } from "@weapp-core/shared";
4
4
  import process from "node:process";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as TemplateName, t as createProject } from "./src-CVPELAx0.js";
1
+ import { r as TemplateName, t as createProject } from "./src-yFJBBYLM.js";
2
2
  export { TemplateName, createProject };
@@ -5,14 +5,11 @@ import path from "pathe";
5
5
  import https from "node:https";
6
6
  import { spawn } from "node:child_process";
7
7
  import process from "node:process";
8
- //#region ../../packages-runtime/weapi/package.json
9
- var version$2 = "0.2.3";
10
- //#endregion
11
8
  //#region ../../packages-runtime/wevu/package.json
12
- var version$1 = "6.14.2";
9
+ var version$1 = "6.15.0";
13
10
  //#endregion
14
11
  //#region ../weapp-vite/package.json
15
- var version = "6.14.2";
12
+ var version = "6.15.0";
16
13
  //#endregion
17
14
  //#region src/enums.ts
18
15
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -103,7 +100,7 @@ const TEMPLATE_CATALOG = {
103
100
  "@mini-types/alipay": "^3.0.14",
104
101
  "@tailwindcss/postcss": "^4.2.2",
105
102
  "@tailwindcss/vite": "^4.2.2",
106
- "@types/node": "^25.5.2",
103
+ "@types/node": "^25.6.0",
107
104
  "@types/semver": "^7.7.1",
108
105
  "@vant/weapp": "^1.11.7",
109
106
  "@vitejs/plugin-vue": "^6.0.5",
@@ -116,7 +113,7 @@ const TEMPLATE_CATALOG = {
116
113
  "comment-json": "^4.6.2",
117
114
  "estree-walker": "^3.0.3",
118
115
  "gm-crypto": "^0.1.12",
119
- "lru-cache": "^11.3.2",
116
+ "lru-cache": "^11.3.3",
120
117
  "magic-string": "^0.30.21",
121
118
  "miniprogram-api-typings": "^5.1.2",
122
119
  "oxc-parser": "^0.124.0",
@@ -125,7 +122,7 @@ const TEMPLATE_CATALOG = {
125
122
  "sass-embedded": "^1.99.0",
126
123
  "tailwind-merge": "^3.5.0",
127
124
  "tailwind-variants": "^3.2.2",
128
- "tdesign-miniprogram": "^1.13.1",
125
+ "tdesign-miniprogram": "^1.13.2",
129
126
  "ts-morph": "^27.0.2",
130
127
  "vite-plugin-inspect": "^11.3.3",
131
128
  "vue-tsc": "^3.2.6",
@@ -142,17 +139,17 @@ const TEMPLATE_CATALOG = {
142
139
  merge: "^2.1.1",
143
140
  pathe: "^2.0.3",
144
141
  postcss: "^8.5.9",
145
- rolldown: "1.0.0-rc.13",
142
+ rolldown: "1.0.0-rc.15",
146
143
  sass: "^1.99.0",
147
144
  tailwindcss: "^4.2.2",
148
145
  tslib: "^2.8.1",
149
146
  typescript: "^6.0.2",
150
- vite: "8.0.7",
147
+ vite: "8.0.8",
151
148
  vue: "^3.5.32",
152
149
  zod: "^4.3.6"
153
150
  };
154
151
  const TEMPLATE_NAMED_CATALOG = {
155
- "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.1" },
152
+ "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.13.2" },
156
153
  "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "4.11.2" },
157
154
  latest: {
158
155
  "miniprogram-api-typings": "^5.1.2",
@@ -529,7 +526,6 @@ async function createProject(targetDir = "", templateName = TemplateName.default
529
526
  if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
530
527
  upsertExistingDependencyVersion(pkgJson, "weapp-vite", toCaretVersion(version));
531
528
  upsertExistingDependencyVersion(pkgJson, "wevu", toCaretVersion(version$1));
532
- upsertExistingDependencyVersion(pkgJson, "@wevu/api", toCaretVersion(version$2));
533
529
  await upsertTailwindcssVersion(pkgJson);
534
530
  await writeJsonFile(packageJsonPath, pkgJson);
535
531
  await fs.writeFile(path.resolve(targetDir, "AGENTS.md"), createAgentsGuidelines(templateName));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.80",
4
+ "version": "2.1.0",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -50,8 +50,8 @@
50
50
  "@inquirer/prompts": "^8.4.1",
51
51
  "pathe": "^2.0.3",
52
52
  "pkg-types": "^2.3.0",
53
- "@weapp-core/logger": "^3.1.1",
54
- "@weapp-core/shared": "^3.0.3"
53
+ "@weapp-core/shared": "^3.0.3",
54
+ "@weapp-core/logger": "^3.1.1"
55
55
  },
56
56
  "scripts": {
57
57
  "catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
@@ -59,6 +59,8 @@
59
59
  "build": "tsdown",
60
60
  "test": "vitest run",
61
61
  "test:dev": "vitest",
62
+ "pretest:types": "pnpm build",
63
+ "test:types": "tsd",
62
64
  "typecheck": "tsc --noEmit",
63
65
  "release": "pnpm publish",
64
66
  "lint": "eslint .",
@@ -28,8 +28,8 @@
28
28
  "postinstall": "wv prepare"
29
29
  },
30
30
  "devDependencies": {
31
- "@icebreakers/eslint-config": "^4.0.2",
32
- "@icebreakers/stylelint-config": "^3.0.2",
31
+ "@icebreakers/eslint-config": "^4.0.3",
32
+ "@icebreakers/stylelint-config": "^3.0.3",
33
33
  "eslint": "^10.2.0",
34
34
  "miniprogram-api-typings": "catalog:",
35
35
  "sass": "catalog:",
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  interface HelloWorldLink {
4
4
  text: string
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  Page({
4
4
  data: {
@@ -1,5 +1,5 @@
1
- import { wpi } from '@wevu/api'
2
1
  import { setPageLayout } from 'weapp-vite/runtime'
2
+ import { wpi } from 'wevu/api'
3
3
 
4
4
  Page({
5
5
  data: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "5.0.2",
4
+ "version": "6.0.0",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -29,13 +29,11 @@
29
29
  "postinstall": "wv prepare"
30
30
  },
31
31
  "peerDependencies": {
32
- "@wevu/api": "workspace:*",
33
32
  "wevu": "workspace:*"
34
33
  },
35
34
  "devDependencies": {
36
- "@icebreakers/eslint-config": "^4.0.2",
37
- "@icebreakers/stylelint-config": "^3.0.2",
38
- "@wevu/api": "workspace:*",
35
+ "@icebreakers/eslint-config": "^4.0.3",
36
+ "@icebreakers/stylelint-config": "^3.0.3",
39
37
  "eslint": "^10.2.0",
40
38
  "miniprogram-api-typings": "catalog:",
41
39
  "sass": "catalog:",
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  interface HelloWorldLink {
4
4
  text: string
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  Page({
4
4
  data: {
@@ -1,5 +1,5 @@
1
- import { wpi } from '@wevu/api'
2
1
  import { setPageLayout } from 'weapp-vite/runtime'
2
+ import { wpi } from 'wevu/api'
3
3
 
4
4
  Page({
5
5
  data: {
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@egoist/tailwindcss-icons": "catalog:",
32
- "@icebreakers/eslint-config": "^4.0.2",
33
- "@icebreakers/stylelint-config": "^3.0.2",
32
+ "@icebreakers/eslint-config": "^4.0.3",
33
+ "@icebreakers/stylelint-config": "^3.0.3",
34
34
  "@iconify-json/mdi": "catalog:",
35
35
  "autoprefixer": "catalog:",
36
36
  "eslint": "^10.2.0",
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  interface HelloWorldLink {
4
4
  text: string
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
  import { hello } from '@/utils/util'
3
3
 
4
4
  Page({
@@ -1,5 +1,5 @@
1
- import { wpi } from '@wevu/api'
2
1
  import { setPageLayout } from 'weapp-vite/runtime'
2
+ import { wpi } from 'wevu/api'
3
3
 
4
4
  Page({
5
5
  data: {
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^4.0.2",
36
- "@icebreakers/stylelint-config": "^3.0.2",
35
+ "@icebreakers/eslint-config": "^4.0.3",
36
+ "@icebreakers/stylelint-config": "^3.0.3",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.2.0",
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  interface HelloWorldLink {
4
4
  text: string
@@ -1,5 +1,5 @@
1
- import { wpi } from '@wevu/api'
2
1
  import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index'
2
+ import { wpi } from 'wevu/api'
3
3
  import { hello } from '@/utils/util'
4
4
 
5
5
  const firstGrid = [
@@ -1,6 +1,6 @@
1
- import { wpi } from '@wevu/api'
2
1
  import Toast from 'tdesign-miniprogram/toast/index'
3
2
  import { setPageLayout } from 'weapp-vite/runtime'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  Page({
6
6
  data: {
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^4.0.2",
36
- "@icebreakers/stylelint-config": "^3.0.2",
35
+ "@icebreakers/eslint-config": "^4.0.3",
36
+ "@icebreakers/stylelint-config": "^3.0.3",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.2.0",
@@ -1,4 +1,4 @@
1
- import { wpi } from '@wevu/api'
1
+ import { wpi } from 'wevu/api'
2
2
 
3
3
  interface HelloWorldLink {
4
4
  text: string
@@ -1,5 +1,5 @@
1
1
  import Dialog from '@vant/weapp/dialog/dialog'
2
- import { wpi } from '@wevu/api'
2
+ import { wpi } from 'wevu/api'
3
3
  import { hello } from '@/utils/util'
4
4
 
5
5
  Page({
@@ -1,6 +1,6 @@
1
1
  import Dialog from '@vant/weapp/dialog/dialog'
2
- import { wpi } from '@wevu/api'
3
2
  import { setPageLayout } from 'weapp-vite/runtime'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  Page({
6
6
  data: {
@@ -28,8 +28,8 @@
28
28
  "postinstall": "wv prepare"
29
29
  },
30
30
  "devDependencies": {
31
- "@icebreakers/eslint-config": "^4.0.2",
32
- "@icebreakers/stylelint-config": "^3.0.2",
31
+ "@icebreakers/eslint-config": "^4.0.3",
32
+ "@icebreakers/stylelint-config": "^3.0.3",
33
33
  "eslint": "^10.2.0",
34
34
  "miniprogram-api-typings": "catalog:",
35
35
  "stylelint": "^17.6.0",
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import autoRoutes from 'weapp-vite/auto-routes'
4
3
  import { onHide, onLaunch, onShow } from 'wevu'
4
+ import { wpi } from 'wevu/api'
5
5
  import { createRouter } from 'wevu/router'
6
6
 
7
7
  defineAppJson({
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@egoist/tailwindcss-icons": "catalog:",
35
- "@icebreakers/eslint-config": "^4.0.2",
36
- "@icebreakers/stylelint-config": "^3.0.2",
35
+ "@icebreakers/eslint-config": "^4.0.3",
36
+ "@icebreakers/stylelint-config": "^3.0.3",
37
37
  "@iconify-json/mdi": "catalog:",
38
38
  "autoprefixer": "catalog:",
39
39
  "eslint": "^10.2.0",
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import { onHide, onLaunch, onShow } from 'wevu'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  defineAppJson({
6
6
  pages: [
@@ -1,5 +1,5 @@
1
- import { wpi } from '@wevu/api'
2
1
  import { onPullDownRefresh } from 'wevu'
2
+ import { wpi } from 'wevu/api'
3
3
 
4
4
  export function usePullDownRefresh(refresh: () => void | Promise<void>) {
5
5
  onPullDownRefresh(async () => {
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import { ref } from 'wevu'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  import SectionTitle from '@/components/SectionTitle/index.vue'
6
6
  import { useDialog } from '@/hooks/useDialog'
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
2
  import type { QuickActionItem } from '@/types/action'
3
3
 
4
- import { wpi } from '@wevu/api'
5
4
  import { computed, getCurrentInstance, ref, resolveLayoutBridge, resolveLayoutHost, watch } from 'wevu'
5
+ import { wpi } from 'wevu/api'
6
6
  import KpiBoard from '@/components/KpiBoard/index.vue'
7
7
  import QuickActionGrid from '@/components/QuickActionGrid/index.vue'
8
8
  import { LAYOUT_TOAST_BRIDGE_KEY } from '@/hooks/useLayoutFeedbackBridge'
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import { ref, setPageLayout } from 'wevu'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  import SectionTitle from '@/components/SectionTitle/index.vue'
6
6
  import { useToast } from '@/hooks/useToast'
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import { computed, onShow, ref } from 'wevu'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  import SectionTitle from '@/components/SectionTitle/index.vue'
6
6
 
@@ -1,6 +1,6 @@
1
1
  <script setup lang="ts">
2
- import { wpi } from '@wevu/api'
3
2
  import { computed, ref } from 'wevu'
3
+ import { wpi } from 'wevu/api'
4
4
 
5
5
  import SectionTitle from '@/components/SectionTitle/index.vue'
6
6
  import { resolveBooleanChangeValue, resolveNumberChangeValue, resolveStringChangeValue } from '@/utils/changeEvent'