@weapp-core/init 2.0.8 → 2.0.10
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 +2 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/templates/default/package.json +2 -2
- package/templates/default/project.private.config.json +1 -1
- package/templates/default/public/logo.png +0 -0
- package/templates/default/src/pages/index/index.ts +3 -1
- package/templates/default/src/pages/index/index.wxml +6 -1
- package/templates/default/vite.config.ts +36 -28
- package/templates/tailwindcss/package.json +3 -3
- package/templates/tailwindcss/public/logo.png +0 -0
- package/templates/tdesign/package.json +4 -4
- package/templates/tdesign/public/logo.png +0 -0
- package/templates/vant/package.json +3 -3
- package/templates/vant/public/logo.png +0 -0
- package/templates/default/src/pages/index/index.json +0 -7
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(index_exports);
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.
|
|
44
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.3_jiti@2.5.1_postcss@8.5.6_tsx@4.20.4_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
|
|
45
45
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
46
46
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
47
47
|
|
|
@@ -471,7 +471,7 @@ var posix = /* @__PURE__ */ mix(":");
|
|
|
471
471
|
var win32 = /* @__PURE__ */ mix(";");
|
|
472
472
|
|
|
473
473
|
// ../../packages/weapp-vite/package.json
|
|
474
|
-
var version = "5.0.
|
|
474
|
+
var version = "5.0.17";
|
|
475
475
|
|
|
476
476
|
// src/context.ts
|
|
477
477
|
function createContext() {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-core/init",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.10",
|
|
5
5
|
"description": "@weapp-core/init",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"templates"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"fs-extra": "^11.3.
|
|
42
|
-
"@weapp-core/
|
|
43
|
-
"@weapp-core/
|
|
41
|
+
"fs-extra": "^11.3.1",
|
|
42
|
+
"@weapp-core/logger": "^2.0.0",
|
|
43
|
+
"@weapp-core/shared": "^2.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/semver": "^7.7.0",
|
|
Binary file
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
<view>
|
|
2
2
|
<Navbar />
|
|
3
|
-
<view
|
|
3
|
+
<view style="display:flex;align-items:center;justify-content:center;">
|
|
4
|
+
<view>
|
|
5
|
+
<image style="width:200px;height:190px" src="/logo.png" />
|
|
6
|
+
<view bind:tap="onClick">Hello World From Weapp-vite!</view>
|
|
7
|
+
</view>
|
|
8
|
+
</view>
|
|
4
9
|
</view>
|
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
import { defineConfig } from 'weapp-vite/config'
|
|
2
2
|
|
|
3
|
-
export default defineConfig(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
export default defineConfig(
|
|
4
|
+
({ mode }) => {
|
|
5
|
+
console.log('[mode]:', mode)
|
|
6
|
+
return {
|
|
7
|
+
weapp: {
|
|
8
|
+
srcRoot: 'src',
|
|
9
|
+
// pnpm g 生成的格式
|
|
10
|
+
// https://vite.icebreaker.top/guide/generate.html
|
|
11
|
+
generate: {
|
|
12
|
+
extensions: {
|
|
13
|
+
js: 'ts',
|
|
14
|
+
wxss: 'scss',
|
|
15
|
+
},
|
|
16
|
+
dirs: {
|
|
17
|
+
component: 'src/components',
|
|
18
|
+
page: 'src/pages',
|
|
19
|
+
},
|
|
20
|
+
// 假如你想让默认生成的组件命名为 HelloWorld/index 而不是 HelloWorld/HelloWorld 可以下列选项
|
|
21
|
+
// filenames: {
|
|
22
|
+
// component: 'index',
|
|
23
|
+
// page: 'index',
|
|
24
|
+
// },
|
|
25
|
+
},
|
|
12
26
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
27
|
+
css: {
|
|
28
|
+
preprocessorOptions: {
|
|
29
|
+
scss: {
|
|
30
|
+
silenceDeprecations: ['legacy-js-api', 'import'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
16
33
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
css: {
|
|
25
|
-
preprocessorOptions: {
|
|
26
|
-
scss: {
|
|
27
|
-
silenceDeprecations: ['legacy-js-api', 'import'],
|
|
34
|
+
plugins: [
|
|
35
|
+
// 在这里注册 vite 插件
|
|
36
|
+
],
|
|
37
|
+
build: {
|
|
38
|
+
sourcemap: true,
|
|
28
39
|
},
|
|
29
|
-
}
|
|
40
|
+
}
|
|
30
41
|
},
|
|
31
|
-
|
|
32
|
-
// 在这里注册 vite 插件
|
|
33
|
-
],
|
|
34
|
-
})
|
|
42
|
+
)
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"autoprefixer": "^10.4.21",
|
|
30
30
|
"miniprogram-api-typings": "^4.1.0",
|
|
31
31
|
"postcss": "^8.5.6",
|
|
32
|
-
"sass": "^1.
|
|
32
|
+
"sass": "^1.90.0",
|
|
33
33
|
"tailwindcss": "^3.4.17",
|
|
34
|
-
"typescript": "^5.
|
|
35
|
-
"weapp-tailwindcss": "^4.2.
|
|
34
|
+
"typescript": "^5.9.2",
|
|
35
|
+
"weapp-tailwindcss": "^4.2.5",
|
|
36
36
|
"weapp-vite": "workspace:*"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
Binary file
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postinstall": "weapp-tw patch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"tdesign-miniprogram": "^1.
|
|
27
|
+
"tdesign-miniprogram": "^1.10.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@egoist/tailwindcss-icons": "^1.9.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"miniprogram-api-typings": "^4.1.0",
|
|
34
34
|
"postcss": "^8.5.6",
|
|
35
|
-
"sass": "^1.
|
|
35
|
+
"sass": "^1.90.0",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
|
-
"typescript": "^5.
|
|
38
|
-
"weapp-tailwindcss": "^4.2.
|
|
37
|
+
"typescript": "^5.9.2",
|
|
38
|
+
"weapp-tailwindcss": "^4.2.5",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
Binary file
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"autoprefixer": "^10.4.21",
|
|
33
33
|
"miniprogram-api-typings": "^4.1.0",
|
|
34
34
|
"postcss": "^8.5.6",
|
|
35
|
-
"sass": "^1.
|
|
35
|
+
"sass": "^1.90.0",
|
|
36
36
|
"tailwindcss": "^3.4.17",
|
|
37
|
-
"typescript": "^5.
|
|
38
|
-
"weapp-tailwindcss": "^4.2.
|
|
37
|
+
"typescript": "^5.9.2",
|
|
38
|
+
"weapp-tailwindcss": "^4.2.5",
|
|
39
39
|
"weapp-vite": "workspace:*"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
Binary file
|