create-weapp-vite 2.8.5 → 2.8.6
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-CaksV2dv.js → src-Dj2WhZkT.js} +6 -7
- package/package.json +3 -3
- package/templates/tailwindcss/package.json +0 -1
- package/templates/tailwindcss/weapp-vite.config.ts +4 -8
- package/templates/tdesign/package.json +0 -1
- package/templates/tdesign/weapp-vite.config.ts +4 -8
- package/templates/vant/package.json +0 -1
- package/templates/vant/weapp-vite.config.ts +4 -8
- package/templates/wevu-tdesign/package.json +0 -1
- package/templates/wevu-tdesign/weapp-vite.config.ts +4 -7
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-Dj2WhZkT.js";
|
|
2
2
|
import logger from "@weapp-core/logger";
|
|
3
3
|
import { fs } from "@weapp-core/shared/fs";
|
|
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-
|
|
1
|
+
import { r as TemplateName, t as createProject } from "./src-Dj2WhZkT.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -9,16 +9,16 @@ import process from "node:process";
|
|
|
9
9
|
var version$4 = "0.2.2";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../../packages-runtime/wevu/package.json
|
|
12
|
-
var version$3 = "6.
|
|
12
|
+
var version$3 = "6.25.0";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../dashboard/package.json
|
|
15
|
-
var version$2 = "6.
|
|
15
|
+
var version$2 = "6.25.0";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region ../eslint/package.json
|
|
18
18
|
var version$1 = "0.2.2";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region ../weapp-vite/package.json
|
|
21
|
-
var version = "6.
|
|
21
|
+
var version = "6.25.0";
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/enums.ts
|
|
24
24
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -174,7 +174,7 @@ const TEMPLATE_CATALOG = {
|
|
|
174
174
|
"uview-plus": "3.8.112",
|
|
175
175
|
"vite-plugin-inspect": "^12.0.2",
|
|
176
176
|
"vue-tsc": "^3.3.11",
|
|
177
|
-
"weapp-tailwindcss": "^5.
|
|
177
|
+
"weapp-tailwindcss": "^5.4.1",
|
|
178
178
|
autoprefixer: "^10.5.4",
|
|
179
179
|
axios: "^1.20.0",
|
|
180
180
|
clsx: "^2.1.1",
|
|
@@ -205,7 +205,7 @@ const TEMPLATE_CATALOG = {
|
|
|
205
205
|
};
|
|
206
206
|
const TEMPLATE_NAMED_CATALOG = {
|
|
207
207
|
"tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.16.0" },
|
|
208
|
-
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.
|
|
208
|
+
"weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.4.1" },
|
|
209
209
|
latest: {
|
|
210
210
|
"miniprogram-api-typings": "^5.2.3",
|
|
211
211
|
typescript: "^6.0.3"
|
|
@@ -533,10 +533,9 @@ function createEmptyPackageJson() {
|
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
async function upsertTailwindcssVersion(pkgJson) {
|
|
536
|
-
if (!pkgJson.devDependencies) return;
|
|
536
|
+
if (!pkgJson.devDependencies?.["weapp-tailwindcss"]) return;
|
|
537
537
|
const resolved = await latestVersion("weapp-tailwindcss");
|
|
538
538
|
if (resolved) pkgJson.devDependencies["weapp-tailwindcss"] = resolved;
|
|
539
|
-
else if (!pkgJson.devDependencies["weapp-tailwindcss"]) pkgJson.devDependencies["weapp-tailwindcss"] = "^5.0.0";
|
|
540
539
|
}
|
|
541
540
|
function upsertExistingDependencyVersion(pkgJson, packageName, resolvedVersion) {
|
|
542
541
|
if (pkgJson.dependencies?.[packageName]) pkgJson.dependencies[packageName] = resolvedVersion;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.6",
|
|
5
5
|
"description": "create-weapp-vite",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@inquirer/prompts": "^8.7.0",
|
|
50
50
|
"pathe": "^2.0.3",
|
|
51
51
|
"pkg-types": "^2.3.1",
|
|
52
|
-
"@weapp-core/shared": "3.2.0",
|
|
53
52
|
"@weapp-core/init": "6.0.16",
|
|
54
|
-
"@weapp-core/logger": "3.1.1"
|
|
53
|
+
"@weapp-core/logger": "3.1.1",
|
|
54
|
+
"@weapp-core/shared": "3.2.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"catalog:sync": "node --import tsx scripts/generate-template-catalog.ts",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { WeappTailwindcss } from 'weapp-tailwindcss/vite'
|
|
3
1
|
import { defineConfig } from 'weapp-vite'
|
|
4
2
|
|
|
5
3
|
export default defineConfig({
|
|
6
4
|
weapp: {
|
|
7
5
|
srcRoot: 'src',
|
|
6
|
+
tailwindcss: {
|
|
7
|
+
rem2rpx: true,
|
|
8
|
+
cssEntries: ['src/app.css'],
|
|
9
|
+
},
|
|
8
10
|
// pnpm g 生成的格式
|
|
9
11
|
// https://vite.weapp.dev/guide/generate.html
|
|
10
12
|
generate: {
|
|
@@ -30,10 +32,4 @@ export default defineConfig({
|
|
|
30
32
|
},
|
|
31
33
|
},
|
|
32
34
|
},
|
|
33
|
-
plugins: [
|
|
34
|
-
WeappTailwindcss({
|
|
35
|
-
rem2rpx: true,
|
|
36
|
-
cssEntries: [path.resolve(import.meta.dirname, 'src/app.css')],
|
|
37
|
-
}),
|
|
38
|
-
],
|
|
39
35
|
})
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { WeappTailwindcss } from 'weapp-tailwindcss/vite'
|
|
3
1
|
import { defineConfig } from 'weapp-vite'
|
|
4
2
|
import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
5
3
|
|
|
6
4
|
export default defineConfig({
|
|
7
5
|
weapp: {
|
|
8
6
|
srcRoot: 'src',
|
|
7
|
+
tailwindcss: {
|
|
8
|
+
rem2rpx: true,
|
|
9
|
+
cssEntries: ['src/app.css'],
|
|
10
|
+
},
|
|
9
11
|
typescript: {
|
|
10
12
|
app: {
|
|
11
13
|
compilerOptions: {
|
|
@@ -43,10 +45,4 @@ export default defineConfig({
|
|
|
43
45
|
},
|
|
44
46
|
},
|
|
45
47
|
},
|
|
46
|
-
plugins: [
|
|
47
|
-
WeappTailwindcss({
|
|
48
|
-
rem2rpx: true,
|
|
49
|
-
cssEntries: [path.resolve(import.meta.dirname, 'src/app.css')],
|
|
50
|
-
}),
|
|
51
|
-
],
|
|
52
48
|
})
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import path from 'node:path'
|
|
2
|
-
import { WeappTailwindcss } from 'weapp-tailwindcss/vite'
|
|
3
1
|
import { defineConfig } from 'weapp-vite'
|
|
4
2
|
import { VantResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
5
3
|
|
|
6
4
|
export default defineConfig({
|
|
7
5
|
weapp: {
|
|
8
6
|
srcRoot: 'src',
|
|
7
|
+
tailwindcss: {
|
|
8
|
+
rem2rpx: true,
|
|
9
|
+
cssEntries: ['src/app.css'],
|
|
10
|
+
},
|
|
9
11
|
typescript: {
|
|
10
12
|
app: {
|
|
11
13
|
compilerOptions: {
|
|
@@ -43,10 +45,4 @@ export default defineConfig({
|
|
|
43
45
|
},
|
|
44
46
|
},
|
|
45
47
|
},
|
|
46
|
-
plugins: [
|
|
47
|
-
WeappTailwindcss({
|
|
48
|
-
rem2rpx: true,
|
|
49
|
-
cssEntries: [path.resolve(import.meta.dirname, 'src/app.css')],
|
|
50
|
-
}),
|
|
51
|
-
],
|
|
52
48
|
})
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
|
-
import { WeappTailwindcss } from 'weapp-tailwindcss/vite'
|
|
3
2
|
import { defineConfig } from 'weapp-vite'
|
|
4
3
|
import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
5
4
|
|
|
@@ -11,6 +10,10 @@ export default defineConfig({
|
|
|
11
10
|
},
|
|
12
11
|
weapp: {
|
|
13
12
|
srcRoot: 'src',
|
|
13
|
+
tailwindcss: {
|
|
14
|
+
rem2rpx: true,
|
|
15
|
+
cssEntries: ['src/app.css'],
|
|
16
|
+
},
|
|
14
17
|
typescript: {
|
|
15
18
|
app: {
|
|
16
19
|
compilerOptions: {
|
|
@@ -83,10 +86,4 @@ export default defineConfig({
|
|
|
83
86
|
},
|
|
84
87
|
},
|
|
85
88
|
},
|
|
86
|
-
plugins: [
|
|
87
|
-
WeappTailwindcss({
|
|
88
|
-
rem2rpx: true,
|
|
89
|
-
cssEntries: [path.resolve(import.meta.dirname, 'src/app.css')],
|
|
90
|
-
}),
|
|
91
|
-
],
|
|
92
89
|
})
|