@weapp-core/init 4.1.1 → 5.0.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.
- package/dist/index.cjs +110 -201
- package/dist/index.d.cts +1 -12
- package/dist/index.d.ts +1 -12
- package/dist/index.js +110 -193
- package/package.json +3 -10
- package/templates/default/.editorconfig +0 -9
- package/templates/default/.vscode/settings.json +0 -5
- package/templates/default/README.md +0 -28
- package/templates/default/auto-import-components.json +0 -3
- package/templates/default/gitignore +0 -35
- package/templates/default/package.json +0 -31
- package/templates/default/project.config.json +0 -42
- package/templates/default/project.private.config.json +0 -8
- package/templates/default/public/logo.png +0 -0
- package/templates/default/src/app.json +0 -10
- package/templates/default/src/app.scss +0 -0
- package/templates/default/src/app.ts +0 -6
- package/templates/default/src/components/HelloWorld/HelloWorld.json +0 -6
- package/templates/default/src/components/HelloWorld/HelloWorld.scss +0 -47
- package/templates/default/src/components/HelloWorld/HelloWorld.ts +0 -61
- package/templates/default/src/components/HelloWorld/HelloWorld.wxml +0 -16
- package/templates/default/src/pages/index/index.json +0 -7
- package/templates/default/src/pages/index/index.scss +0 -0
- package/templates/default/src/pages/index/index.ts +0 -24
- package/templates/default/src/pages/index/index.wxml +0 -14
- package/templates/default/src/sitemap.json +0 -10
- package/templates/default/src/theme.json +0 -5
- package/templates/default/src/utils/util.ts +0 -3
- package/templates/default/src/vite-env.d.ts +0 -1
- package/templates/default/tsconfig.app.json +0 -60
- package/templates/default/tsconfig.json +0 -11
- package/templates/default/tsconfig.node.json +0 -33
- package/templates/default/vite.config.ts +0 -39
- package/templates/tailwindcss/.editorconfig +0 -9
- package/templates/tailwindcss/.vscode/settings.json +0 -5
- package/templates/tailwindcss/README.md +0 -28
- package/templates/tailwindcss/auto-import-components.json +0 -3
- package/templates/tailwindcss/gitignore +0 -35
- package/templates/tailwindcss/package.json +0 -38
- package/templates/tailwindcss/postcss.config.js +0 -6
- package/templates/tailwindcss/project.config.json +0 -43
- package/templates/tailwindcss/project.private.config.json +0 -8
- package/templates/tailwindcss/public/icon0.png +0 -0
- package/templates/tailwindcss/public/icon0s.png +0 -0
- package/templates/tailwindcss/public/icon1.png +0 -0
- package/templates/tailwindcss/public/icon1s.png +0 -0
- package/templates/tailwindcss/public/logo.png +0 -0
- package/templates/tailwindcss/src/app.json +0 -31
- package/templates/tailwindcss/src/app.scss +0 -3
- package/templates/tailwindcss/src/app.ts +0 -6
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.json +0 -7
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.scss +0 -1
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +0 -61
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.wxml +0 -16
- package/templates/tailwindcss/src/pages/index/index.json +0 -7
- package/templates/tailwindcss/src/pages/index/index.scss +0 -0
- package/templates/tailwindcss/src/pages/index/index.ts +0 -48
- package/templates/tailwindcss/src/pages/index/index.wxml +0 -24
- package/templates/tailwindcss/src/pages/profile/index.json +0 -7
- package/templates/tailwindcss/src/pages/profile/index.scss +0 -0
- package/templates/tailwindcss/src/pages/profile/index.ts +0 -19
- package/templates/tailwindcss/src/pages/profile/index.wxml +0 -11
- package/templates/tailwindcss/src/sitemap.json +0 -10
- package/templates/tailwindcss/src/theme.json +0 -5
- package/templates/tailwindcss/src/utils/util.ts +0 -3
- package/templates/tailwindcss/src/vite-env.d.ts +0 -1
- package/templates/tailwindcss/tailwind.config.ts +0 -22
- package/templates/tailwindcss/tsconfig.app.json +0 -60
- package/templates/tailwindcss/tsconfig.json +0 -11
- package/templates/tailwindcss/tsconfig.node.json +0 -33
- package/templates/tailwindcss/vite.config.ts +0 -37
- package/templates/tdesign/.editorconfig +0 -9
- package/templates/tdesign/.vscode/settings.json +0 -5
- package/templates/tdesign/README.md +0 -28
- package/templates/tdesign/gitignore +0 -35
- package/templates/tdesign/package.json +0 -41
- package/templates/tdesign/postcss.config.js +0 -6
- package/templates/tdesign/project.config.json +0 -45
- package/templates/tdesign/project.private.config.json +0 -8
- package/templates/tdesign/public/logo.png +0 -0
- package/templates/tdesign/src/app.json +0 -10
- package/templates/tdesign/src/app.scss +0 -3
- package/templates/tdesign/src/app.ts +0 -6
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.json +0 -8
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.scss +0 -1
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +0 -64
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.wxml +0 -17
- package/templates/tdesign/src/pages/index/index.json +0 -7
- package/templates/tdesign/src/pages/index/index.scss +0 -0
- package/templates/tdesign/src/pages/index/index.ts +0 -97
- package/templates/tdesign/src/pages/index/index.wxml +0 -24
- package/templates/tdesign/src/sitemap.json +0 -10
- package/templates/tdesign/src/theme.json +0 -5
- package/templates/tdesign/src/utils/util.ts +0 -3
- package/templates/tdesign/src/vite-env.d.ts +0 -1
- package/templates/tdesign/tailwind.config.ts +0 -22
- package/templates/tdesign/tsconfig.app.json +0 -63
- package/templates/tdesign/tsconfig.json +0 -11
- package/templates/tdesign/tsconfig.node.json +0 -33
- package/templates/tdesign/vite.config.ts +0 -41
- package/templates/vant/.editorconfig +0 -9
- package/templates/vant/.vscode/settings.json +0 -5
- package/templates/vant/README.md +0 -28
- package/templates/vant/gitignore +0 -35
- package/templates/vant/package.json +0 -41
- package/templates/vant/postcss.config.js +0 -6
- package/templates/vant/project.config.json +0 -42
- package/templates/vant/project.private.config.json +0 -8
- package/templates/vant/public/logo.png +0 -0
- package/templates/vant/src/app.json +0 -10
- package/templates/vant/src/app.scss +0 -3
- package/templates/vant/src/app.ts +0 -6
- package/templates/vant/src/components/HelloWorld/HelloWorld.json +0 -9
- package/templates/vant/src/components/HelloWorld/HelloWorld.scss +0 -1
- package/templates/vant/src/components/HelloWorld/HelloWorld.ts +0 -61
- package/templates/vant/src/components/HelloWorld/HelloWorld.wxml +0 -19
- package/templates/vant/src/pages/index/index.json +0 -7
- package/templates/vant/src/pages/index/index.scss +0 -0
- package/templates/vant/src/pages/index/index.ts +0 -57
- package/templates/vant/src/pages/index/index.wxml +0 -28
- package/templates/vant/src/sitemap.json +0 -10
- package/templates/vant/src/theme.json +0 -5
- package/templates/vant/src/utils/util.ts +0 -3
- package/templates/vant/src/vite-env.d.ts +0 -1
- package/templates/vant/tailwind.config.ts +0 -22
- package/templates/vant/tsconfig.app.json +0 -63
- package/templates/vant/tsconfig.json +0 -11
- package/templates/vant/tsconfig.node.json +0 -33
- package/templates/vant/vite.config.ts +0 -41
- package/templates/wevu/.editorconfig +0 -9
- package/templates/wevu/.vscode/settings.json +0 -5
- package/templates/wevu/README.md +0 -29
- package/templates/wevu/auto-import-components.json +0 -1
- package/templates/wevu/gitignore +0 -35
- package/templates/wevu/package.json +0 -30
- package/templates/wevu/project.config.json +0 -43
- package/templates/wevu/project.private.config.json +0 -8
- package/templates/wevu/public/logo.png +0 -0
- package/templates/wevu/src/app.vue +0 -36
- package/templates/wevu/src/components/HelloWorld/index.vue +0 -45
- package/templates/wevu/src/pages/index/index.vue +0 -138
- package/templates/wevu/src/sitemap.json +0 -10
- package/templates/wevu/src/theme.json +0 -5
- package/templates/wevu/src/vite-env.d.ts +0 -1
- package/templates/wevu/tsconfig.app.json +0 -60
- package/templates/wevu/tsconfig.json +0 -11
- package/templates/wevu/tsconfig.node.json +0 -33
- package/templates/wevu/vite.config.ts +0 -8
- package/templates/wevu-tdesign/.editorconfig +0 -9
- package/templates/wevu-tdesign/.vscode/settings.json +0 -5
- package/templates/wevu-tdesign/README.md +0 -29
- package/templates/wevu-tdesign/auto-import-components.json +0 -83
- package/templates/wevu-tdesign/components.d.ts +0 -183
- package/templates/wevu-tdesign/gitignore +0 -35
- package/templates/wevu-tdesign/package.json +0 -40
- package/templates/wevu-tdesign/postcss.config.js +0 -6
- package/templates/wevu-tdesign/project.config.json +0 -43
- package/templates/wevu-tdesign/project.private.config.json +0 -8
- package/templates/wevu-tdesign/public/logo.png +0 -0
- package/templates/wevu-tdesign/src/app.vue +0 -35
- package/templates/wevu-tdesign/src/components/HelloWorld/index.vue +0 -23
- package/templates/wevu-tdesign/src/pages/index/index.vue +0 -165
- package/templates/wevu-tdesign/src/sitemap.json +0 -10
- package/templates/wevu-tdesign/src/theme.json +0 -5
- package/templates/wevu-tdesign/src/vite-env.d.ts +0 -1
- package/templates/wevu-tdesign/tailwind.config.ts +0 -22
- package/templates/wevu-tdesign/tsconfig.app.json +0 -62
- package/templates/wevu-tdesign/tsconfig.json +0 -11
- package/templates/wevu-tdesign/tsconfig.node.json +0 -33
- package/templates/wevu-tdesign/typed-components.d.ts +0 -943
- package/templates/wevu-tdesign/vite.config.ts +0 -43
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
|
|
2
|
-
import { TDesignResolver } from 'weapp-vite/auto-import-components/resolvers'
|
|
3
|
-
import { defineConfig } from 'weapp-vite/config'
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
weapp: {
|
|
7
|
-
srcRoot: 'src',
|
|
8
|
-
autoImportComponents: {
|
|
9
|
-
resolvers: [TDesignResolver()],
|
|
10
|
-
typedComponents: true,
|
|
11
|
-
vueComponents: true,
|
|
12
|
-
},
|
|
13
|
-
// pnpm g 生成的格式
|
|
14
|
-
// https://vite.icebreaker.top/guide/generate.html
|
|
15
|
-
generate: {
|
|
16
|
-
extensions: {
|
|
17
|
-
js: 'ts',
|
|
18
|
-
wxss: 'scss',
|
|
19
|
-
},
|
|
20
|
-
dirs: {
|
|
21
|
-
component: 'src/components',
|
|
22
|
-
page: 'src/pages',
|
|
23
|
-
},
|
|
24
|
-
// 假如你想让默认生成的组件命名为 HelloWorld/index 而不是 HelloWorld/HelloWorld 可以下列选项
|
|
25
|
-
// filenames: {
|
|
26
|
-
// component: 'index',
|
|
27
|
-
// page: 'index',
|
|
28
|
-
// },
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
css: {
|
|
32
|
-
preprocessorOptions: {
|
|
33
|
-
scss: {
|
|
34
|
-
silenceDeprecations: ['legacy-js-api', 'import'],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
plugins: [
|
|
39
|
-
UnifiedViteWeappTailwindcssPlugin({
|
|
40
|
-
rem2rpx: true,
|
|
41
|
-
}),
|
|
42
|
-
],
|
|
43
|
-
})
|