File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2222[ ![ GitHub forks] ( https://img.shields.io/github/forks/feige996/unibest?style=flat&logo=github )] ( https://github.com/feige996/unibest )
2323[ ![ star] ( https://gitee.com/feige996/unibest/badge/star.svg?theme=dark )] ( https://gitee.com/feige996/unibest/stargazers )
2424[ ![ fork] ( https://gitee.com/feige996/unibest/badge/fork.svg?theme=dark )] ( https://gitee.com/feige996/unibest/members )
25- [ ![ star] ( https://gitcode.com/feige996/unibest/star/badge.svg?theme=gray )] ( https://gitcode.com/feige996/unibest/stargazers )
2625![ node version] ( https://img.shields.io/badge/node-%3E%3D18-green )
2726![ pnpm version] ( https://img.shields.io/badge/pnpm-%3E%3D7.30-green )
2827![ GitHub package.json version (subfolder of monorepo)] ( https://img.shields.io/github/package-json/v/feige996/unibest )
5756## ⚙️ 环境
5857
5958- node>=18
60- - pnpm>=8
59+ - pnpm>=7.30
6160- Vue Official>=2.1.10
6261- TypeScript>=5.0
6362
8079- weixin平台:` pnpm build:mp ` , 打包后的文件在 ` dist/build/mp-weixin ` ,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
8180- APP平台:` pnpm build:app ` , 然后打开 ` HBuilderX ` ,导入刚刚生成的` dist/build/app ` 文件夹,选择发行 - APP云打包。
8281
83- ## 🤔 如何贡献
84-
85- 非常欢迎您的加入!提一个 [ Issue] ( https://github.com/feige996/unibest/issues ) 或者提交一个 [ Pull Request] ( https://github.com/feige996/unibest/pulls )
86-
87- ** Pull Request:**
88-
89- - 1 . ` Fork ` 代码到自己的项目下,不要直接在仓库下建分支
90- - 2 . 请选择 ` base ` 分支,进行 ` PR `
91- - 3 . 提交 ` PR ` 前请 ` rebase ` ,确保 ` commit ` 记录的整洁
92- - 4 . 注意 ` commit ` 信息规范,要以 ` type: 描述信息 ` 的形式填写,注意 ` type ` 得是下面规范之中的一个
93- - 5 . 示例 ` commit 信息 ` :` fix: 修复样式问题 `
94- - 6 . 可以使用项目中的 ` pnpm cz ` 进行 ` commit ` 提交
95- - 7 . 等待作者 ` review ` 通过后,即可合并
96-
9782## 📄 License
9883
9984[ MIT] ( https://opensource.org/license/mit/ )
Original file line number Diff line number Diff line change 11# 变量必须以 VITE_ 为前缀才能暴露给外部读取
2- NODE_ENV = ' production '
2+ NODE_ENV = ' development '
33# 是否去除console 和 debugger
44VITE_DELETE_CONSOLE = true
55# 是否开启sourcemap
Original file line number Diff line number Diff line change 11{
22 "name" : " unibest" ,
33 "type" : " commonjs" ,
4- "version" : " 3.3.1 " ,
5- "unibest-version" : " 用户创建项目时生成,使用version版本号 " ,
4+ "version" : " 3.3.0 " ,
5+ "unibest-version" : " 3.3.0 " ,
66 "packageManager" : " pnpm@10.10.0" ,
77 "description" : " unibest - 最好的 uniapp 开发模板" ,
88 "generate-time" : " 用户创建项目时生成" ,
2525 "pnpm" : " >=7.30"
2626 },
2727 "scripts" : {
28- "docs:dev" : " vitepress dev docs" ,
29- "docs:build" : " vitepress build docs" ,
30- "docs:preview" : " vitepress preview docs" ,
3128 "preinstall" : " npx only-allow pnpm" ,
3229 "uvm" : " npx @dcloudio/uvm@latest" ,
3330 "uvm-rm" : " node ./scripts/postupgrade.js" ,
10198 "abortcontroller-polyfill" : " ^1.7.8" ,
10299 "alova" : " ^3.3.3" ,
103100 "dayjs" : " 1.11.10" ,
104- "element-plus " : " ^2.10.2 " ,
101+ "js-cookie " : " ^3.0.5 " ,
105102 "pinia" : " 2.0.36" ,
106103 "pinia-plugin-persistedstate" : " 3.2.1" ,
107104 "vue" : " ^3.4.21" ,
108- "vue-i18n" : " 9.1.9" ,
109105 "wot-design-uni" : " ^1.9.1" ,
110106 "z-paging" : " 2.8.7"
111107 },
153149 "unplugin-auto-import" : " ^0.17.8" ,
154150 "vite" : " 5.2.8" ,
155151 "vite-plugin-restart" : " ^0.4.2" ,
156- "vitepress" : " ^1.5.0" ,
157- "vitepress-plugin-llms" : " ^1.3.4" ,
158152 "vue-tsc" : " ^2.2.10"
159153 },
160154 "resolutions" : {
Original file line number Diff line number Diff line change 11// 测试用的 iconfont,可生效
22// @import './iconfont.css';
33
4+ .test {
5+ // 可以通过 @apply 多个样式封装整体样式
6+ @apply mt-4 ml- 4;
7+
8+ padding-top : 4px ;
9+ color : red ;
10+ }
11+
412:root ,
513page {
614 // 修改按主题色
Original file line number Diff line number Diff line change 1313 "types" : [
1414 " @dcloudio/types" ,
1515 " @uni-helper/uni-types" ,
16+ " @types/wechat-miniprogram" ,
1617 " wot-design-uni/global.d.ts" ,
1718 " z-paging/types" ,
1819 " ./src/typings.d.ts"
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default async ({ command, mode }) => {
5353 } = env
5454 console . log ( '环境变量 env -> ' , env )
5555
56- return {
56+ return defineConfig ( {
5757 envDir : './env' , // 自定义env目录
5858 base : VITE_APP_PUBLIC_BASE ,
5959 plugins : [
@@ -178,5 +178,5 @@ export default async ({ command, mode }) => {
178178 minify : mode === 'development' ? false : 'esbuild' ,
179179
180180 } ,
181- }
181+ } )
182182}
You can’t perform that action at this time.
0 commit comments