create-weapp-vite 2.3.4 → 2.3.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/README.md +5 -3
- package/dist/cli.js +36 -31
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{src-2teZ_6MA.js → src-B5yRrol7.js} +20 -8
- package/package.json +1 -1
- package/templates/default/eslint.config.js +1 -1
- package/templates/default/package.json +1 -0
- package/templates/default/src/app.scss +1 -0
- package/templates/default/src/components/HelloWorld/HelloWorld.scss +10 -10
- package/templates/default/src/pages/index/index.scss +1 -0
- package/templates/lib/eslint.config.js +1 -1
- package/templates/lib/package.json +2 -1
- package/templates/lib/src/app.scss +1 -0
- package/templates/lib/src/components/HelloWorld/HelloWorld.scss +10 -10
- package/templates/lib/src/components/sfc-setup/index.vue +8 -8
- package/templates/plugin/.editorconfig +9 -0
- package/templates/plugin/README.md +35 -0
- package/templates/plugin/eslint.config.js +6 -0
- package/templates/plugin/gitignore +36 -0
- package/templates/plugin/package.json +45 -0
- package/templates/plugin/plugin/components/hello-component/index.vue +174 -0
- package/templates/plugin/plugin/components/native-meter/index.json +6 -0
- package/templates/plugin/plugin/components/native-meter/index.scss +51 -0
- package/templates/plugin/plugin/components/native-meter/index.ts +28 -0
- package/templates/plugin/plugin/components/native-meter/index.wxml +12 -0
- package/templates/plugin/plugin/index.ts +16 -0
- package/templates/plugin/plugin/pages/hello-page/index.vue +332 -0
- package/templates/plugin/plugin/pages/native-playground/index.json +7 -0
- package/templates/plugin/plugin/pages/native-playground/index.scss +81 -0
- package/templates/plugin/plugin/pages/native-playground/index.ts +20 -0
- package/templates/plugin/plugin/pages/native-playground/index.wxml +30 -0
- package/templates/plugin/plugin/plugin.json +11 -0
- package/templates/plugin/plugin/utils/showcase.ts +102 -0
- package/templates/plugin/project.config.json +48 -0
- package/templates/plugin/project.private.config.json +8 -0
- package/templates/plugin/shared/shared-data.ts +12 -0
- package/templates/plugin/src/app.json +11 -0
- package/templates/plugin/src/app.ts +5 -0
- package/templates/plugin/src/pages/index/index.json +6 -0
- package/templates/plugin/src/pages/index/index.ts +46 -0
- package/templates/plugin/src/pages/index/index.wxml +46 -0
- package/templates/plugin/src/pages/index/index.wxss +113 -0
- package/templates/plugin/src/sitemap.json +7 -0
- package/templates/plugin/stylelint.config.js +5 -0
- package/templates/plugin/tsconfig.json +17 -0
- package/templates/plugin/weapp-vite.config.ts +23 -0
- package/templates/tailwindcss/eslint.config.js +4 -1
- package/templates/tailwindcss/package.json +3 -2
- package/templates/tailwindcss/postcss.config.js +1 -2
- package/templates/tailwindcss/src/app.css +2 -0
- package/templates/tailwindcss/src/pages/index/index.scss +1 -0
- package/templates/tailwindcss/src/pages/profile/index.scss +1 -0
- package/templates/tailwindcss/tailwind.config.ts +0 -5
- package/templates/tailwindcss/weapp-vite.config.ts +2 -0
- package/templates/tdesign/eslint.config.js +4 -1
- package/templates/tdesign/package.json +3 -2
- package/templates/tdesign/postcss.config.js +1 -2
- package/templates/tdesign/src/app.css +2 -0
- package/templates/tdesign/src/pages/index/index.scss +1 -0
- package/templates/tdesign/tailwind.config.ts +0 -5
- package/templates/tdesign/weapp-vite.config.ts +2 -0
- package/templates/vant/eslint.config.js +4 -1
- package/templates/vant/package.json +3 -2
- package/templates/vant/postcss.config.js +1 -2
- package/templates/vant/src/app.css +2 -0
- package/templates/vant/src/pages/index/index.scss +1 -0
- package/templates/vant/tailwind.config.ts +0 -5
- package/templates/vant/weapp-vite.config.ts +2 -0
- package/templates/wevu/eslint.config.js +1 -1
- package/templates/wevu/package.json +1 -0
- package/templates/wevu-tdesign/eslint.config.js +13 -1
- package/templates/wevu-tdesign/package.json +3 -2
- package/templates/wevu-tdesign/postcss.config.js +1 -2
- package/templates/wevu-tdesign/src/app.css +7 -0
- package/templates/wevu-tdesign/src/app.vue +1 -10
- package/templates/wevu-tdesign/tailwind.config.ts +0 -5
- package/templates/wevu-tdesign/weapp-vite.config.ts +1 -0
- package/templates/tailwindcss/src/app.scss +0 -3
- package/templates/tdesign/src/app.scss +0 -3
- package/templates/vant/src/app.scss +0 -3
|
@@ -2,5 +2,8 @@ import { icebreaker } from '@icebreakers/eslint-config'
|
|
|
2
2
|
|
|
3
3
|
export default icebreaker({
|
|
4
4
|
miniProgram: true,
|
|
5
|
-
|
|
5
|
+
tailwindcss: {
|
|
6
|
+
entryPoint: './src/app.css',
|
|
7
|
+
},
|
|
8
|
+
ignores: ['CHANGELOG.md', 'README.md', '.turbo/**', 'dist/**', '.weapp-vite/**'],
|
|
6
9
|
})
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
"@icebreakers/eslint-config": "catalog:",
|
|
36
36
|
"@icebreakers/stylelint-config": "catalog:",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
|
-
"
|
|
38
|
+
"@tailwindcss/postcss": "catalog:",
|
|
39
|
+
"@types/node": "catalog:",
|
|
39
40
|
"eslint": "catalog:",
|
|
40
41
|
"miniprogram-api-typings": "catalog:",
|
|
41
42
|
"postcss": "catalog:",
|
|
42
43
|
"sass": "catalog:",
|
|
43
44
|
"stylelint": "catalog:",
|
|
44
|
-
"tailwindcss": "catalog:
|
|
45
|
+
"tailwindcss": "catalog:tailwind4",
|
|
45
46
|
"typescript": "catalog:",
|
|
46
47
|
"weapp-tailwindcss": "catalog:",
|
|
47
48
|
"weapp-vite": "workspace:*",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* empty */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from 'node:path'
|
|
1
2
|
import { weappTailwindcss } from 'weapp-tailwindcss/vite'
|
|
2
3
|
import { defineConfig } from 'weapp-vite'
|
|
3
4
|
import { VantResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
@@ -45,6 +46,7 @@ export default defineConfig({
|
|
|
45
46
|
plugins: [
|
|
46
47
|
weappTailwindcss({
|
|
47
48
|
rem2rpx: true,
|
|
49
|
+
cssEntries: [path.resolve(import.meta.dirname, 'src/app.css')],
|
|
48
50
|
}),
|
|
49
51
|
],
|
|
50
52
|
})
|
|
@@ -3,5 +3,17 @@ import { icebreaker } from '@icebreakers/eslint-config'
|
|
|
3
3
|
export default icebreaker({
|
|
4
4
|
miniProgram: true,
|
|
5
5
|
vue: true,
|
|
6
|
-
|
|
6
|
+
tailwindcss: {
|
|
7
|
+
entryPoint: './src/app.css',
|
|
8
|
+
},
|
|
9
|
+
ignores: ['CHANGELOG.md', 'README.md', '.turbo/**', 'dist/**', '.weapp-vite/**'],
|
|
10
|
+
}, {
|
|
11
|
+
files: ['src/**/*.{ts,vue}'],
|
|
12
|
+
rules: {
|
|
13
|
+
'better-tailwindcss/enforce-canonical-classes': 'off',
|
|
14
|
+
'better-tailwindcss/enforce-consistent-class-order': 'off',
|
|
15
|
+
'better-tailwindcss/enforce-consistent-line-wrapping': 'off',
|
|
16
|
+
'better-tailwindcss/no-conflicting-classes': 'off',
|
|
17
|
+
'better-tailwindcss/no-unknown-classes': 'off',
|
|
18
|
+
},
|
|
7
19
|
})
|
|
@@ -35,13 +35,14 @@
|
|
|
35
35
|
"@icebreakers/eslint-config": "catalog:",
|
|
36
36
|
"@icebreakers/stylelint-config": "catalog:",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
|
-
"
|
|
38
|
+
"@tailwindcss/postcss": "catalog:",
|
|
39
|
+
"@types/node": "catalog:",
|
|
39
40
|
"eslint": "catalog:",
|
|
40
41
|
"miniprogram-api-typings": "catalog:",
|
|
41
42
|
"postcss": "catalog:",
|
|
42
43
|
"sass": "catalog:",
|
|
43
44
|
"stylelint": "catalog:",
|
|
44
|
-
"tailwindcss": "catalog:
|
|
45
|
+
"tailwindcss": "catalog:tailwind4",
|
|
45
46
|
"typescript": "catalog:",
|
|
46
47
|
"vue-tsc": "catalog:",
|
|
47
48
|
"weapp-tailwindcss": "catalog:",
|
|
@@ -87,13 +87,4 @@ onLaunch(() => {
|
|
|
87
87
|
})
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
|
-
<style>
|
|
91
|
-
@tailwind base;
|
|
92
|
-
@tailwind components;
|
|
93
|
-
@tailwind utilities;
|
|
94
|
-
|
|
95
|
-
page {
|
|
96
|
-
font-family: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
97
|
-
background-color: #f6f7fb;
|
|
98
|
-
}
|
|
99
|
-
</style>
|
|
90
|
+
<style src="./app.css"></style>
|