@weapp-core/init 3.0.3 → 3.0.4

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/dist/index.cjs CHANGED
@@ -42,7 +42,7 @@ __export(index_exports, {
42
42
  });
43
43
  module.exports = __toCommonJS(index_exports);
44
44
 
45
- // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.1_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
45
+ // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.2_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
46
46
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
47
47
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
48
48
 
@@ -768,7 +768,7 @@ var import_logger3 = __toESM(require("@weapp-core/logger"), 1);
768
768
  var import_fs_extra2 = __toESM(require("fs-extra"), 1);
769
769
 
770
770
  // ../../packages/weapp-vite/package.json
771
- var version = "5.9.3";
771
+ var version = "5.9.4";
772
772
 
773
773
  // src/enums.ts
774
774
  var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
package/dist/index.js CHANGED
@@ -720,7 +720,7 @@ import logger3 from "@weapp-core/logger";
720
720
  import fs2 from "fs-extra";
721
721
 
722
722
  // ../../packages/weapp-vite/package.json
723
- var version = "5.9.3";
723
+ var version = "5.9.4";
724
724
 
725
725
  // src/enums.ts
726
726
  var TemplateName = /* @__PURE__ */ ((TemplateName2) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-core/init",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.4",
5
5
  "description": "@weapp-core/init",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "sass": "^1.94.0",
33
33
  "tailwindcss": "^3.4.18",
34
34
  "typescript": "^5.9.3",
35
- "weapp-tailwindcss": "^4.7.7",
35
+ "weapp-tailwindcss": "^4.7.8",
36
36
  "weapp-vite": "workspace:*"
37
37
  }
38
38
  }
@@ -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": {},
@@ -4,5 +4,5 @@
4
4
  "setting": {
5
5
  "compileHotReLoad": true
6
6
  },
7
- "libVersion": "development"
7
+ "libVersion": "3.9.3"
8
8
  }
@@ -1,6 +1,6 @@
1
- <view class="w-full max-w-[600rpx] mx-auto rounded-3xl p-8 bg-white/90 shadow-xl shadow-sky-200/40 dark:bg-slate-800/90 dark:shadow-slate-900/60 flex flex-col gap-6">
2
- <view class="text-3xl font-semibold text-sky-500 dark:text-sky-300">{{title}}</view>
3
- <view class="text-lg leading-relaxed text-slate-700 dark:text-slate-200">{{description}}</view>
1
+ <view class="w-full max-w-[600rpx] mx-auto rounded-3xl p-8 bg-white/90 shadow-xl shadow-sky-200/40 dark:bg-slate-800/90 dark:shadow-slate-900/60 flex flex-col gap-2">
2
+ <view class="text-xl font-semibold text-sky-500 dark:text-sky-300">{{title}}</view>
3
+ <view class="text-xs leading-relaxed text-slate-700 dark:text-slate-200">{{description}}</view>
4
4
  <view wx:if="{{links.length}}" class="flex flex-wrap gap-4">
5
5
  <view
6
6
  wx:for="{{links}}"
@@ -1,5 +1,5 @@
1
1
  <view class="min-h-screen {{ mode === 'light'?'bg-gray-100 text-slate-800':'bg-gray-900 text-slate-200' }} transition-colors duration-500">
2
- <view class="flex flex-col items-center pt-20 space-y-10">
2
+ <view class="flex flex-col items-center pt-6 space-y-4">
3
3
  <view class="flex space-x-8">
4
4
  <view class="w-24 h-24 bg-[url(https://vite.icebreaker.top/logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
5
5
  <view class="w-32 h-24 bg-[url(https://vite.icebreaker.top/tw-logo.png)] bg-[length:100%_100%] bg-no-repeat"></view>
@@ -7,13 +7,13 @@
7
7
  <view class="bg-gradient-to-r from-green-400 to-sky-400 bg-clip-text text-xl font-extrabold text-transparent underline">
8
8
  weapp-vite & weapp-tailwindcss
9
9
  </view>
10
- <HelloWorld
11
- title="{{hello.title}}"
12
- description="{{hello.description}}"
13
- docs="{{hello.docs}}"
14
- links="{{hello.links}}"
15
- />
16
- <view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-8xl" bind:tap="switchMode"></view>
10
+ <view>
11
+ <HelloWorld title="{{hello.title}}" description="{{hello.description}}" docs="{{hello.docs}}" links="{{hello.links}}" />
12
+ </view>
13
+ <view class="flex items-center">
14
+ <text>切换模式</text>
15
+ <view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-4xl" bind:tap="switchMode"></view>
16
+ </view>
17
17
  <view class="underline" mark:url="https://vite.icebreaker.top" bind:tap="copy">
18
18
  https://vite.icebreaker.top
19
19
  </view>
@@ -1,12 +1,11 @@
1
1
  <view class="min-h-screen bg-gray-100 py-16">
2
- <view class="flex flex-col items-center space-y-8">
3
- <image class="w-[200px] h-[190px]" src="/logo.png" />
2
+ <view class="flex flex-col items-center space-y-5">
3
+ <view>
4
+ <image class="w-[200px] h-[190px]" src="/logo.png" />
5
+ </view>
4
6
  <view class="text-lg font-semibold" bind:tap="onClick">ice breaker</view>
5
- <HelloWorld
6
- title="{{hello.title}}"
7
- description="{{hello.description}}"
8
- docs="{{hello.docs}}"
9
- links="{{hello.links}}"
10
- />
7
+ <view>
8
+ <HelloWorld title="{{hello.title}}" description="{{hello.description}}" docs="{{hello.docs}}" links="{{hello.links}}" />
9
+ </view>
11
10
  </view>
12
11
  </view>
@@ -35,7 +35,7 @@
35
35
  "sass": "^1.94.0",
36
36
  "tailwindcss": "^3.4.18",
37
37
  "typescript": "^5.9.3",
38
- "weapp-tailwindcss": "^4.7.7",
38
+ "weapp-tailwindcss": "^4.7.8",
39
39
  "weapp-vite": "workspace:*"
40
40
  }
41
41
  }
@@ -35,7 +35,7 @@
35
35
  "sass": "^1.94.0",
36
36
  "tailwindcss": "^3.4.18",
37
37
  "typescript": "^5.9.3",
38
- "weapp-tailwindcss": "^4.7.7",
38
+ "weapp-tailwindcss": "^4.7.8",
39
39
  "weapp-vite": "workspace:*"
40
40
  }
41
41
  }