From 833bcbbe7f6fbccd720cc5baf84939f9f1c84ef4 Mon Sep 17 00:00:00 2001 From: "Z.X.PING" Date: Mon, 14 Jul 2025 23:08:52 +0800 Subject: [PATCH] chore: revert update --- CNAME | 1 - README.md | 17 +---------------- env/.env.production | 2 +- package.json | 12 +++--------- src/style/index.scss | 8 ++++++++ tsconfig.json | 1 + vite.config.ts | 4 ++-- 7 files changed, 16 insertions(+), 29 deletions(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index c9fcc5b..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -unibest.tech \ No newline at end of file diff --git a/README.md b/README.md index c691928..c088199 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ [![GitHub forks](https://img.shields.io/github/forks/feige996/unibest?style=flat&logo=github)](https://github.com/feige996/unibest) [![star](https://gitee.com/feige996/unibest/badge/star.svg?theme=dark)](https://gitee.com/feige996/unibest/stargazers) [![fork](https://gitee.com/feige996/unibest/badge/fork.svg?theme=dark)](https://gitee.com/feige996/unibest/members) -[![star](https://gitcode.com/feige996/unibest/star/badge.svg?theme=gray)](https://gitcode.com/feige996/unibest/stargazers) ![node version](https://img.shields.io/badge/node-%3E%3D18-green) ![pnpm version](https://img.shields.io/badge/pnpm-%3E%3D7.30-green) ![GitHub package.json version (subfolder of monorepo)](https://img.shields.io/github/package-json/v/feige996/unibest) @@ -57,7 +56,7 @@ ## ⚙️ 环境 - node>=18 -- pnpm>=8 +- pnpm>=7.30 - Vue Official>=2.1.10 - TypeScript>=5.0 @@ -80,20 +79,6 @@ - weixin平台:`pnpm build:mp`, 打包后的文件在 `dist/build/mp-weixin`,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。 - APP平台:`pnpm build:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/build/app` 文件夹,选择发行 - APP云打包。 -## 🤔 如何贡献 - -非常欢迎您的加入!提一个 [Issue](https://github.com/feige996/unibest/issues) 或者提交一个 [Pull Request](https://github.com/feige996/unibest/pulls) - -**Pull Request:** - -- 1. `Fork` 代码到自己的项目下,不要直接在仓库下建分支 -- 2. 请选择 `base` 分支,进行 `PR` -- 3. 提交 `PR` 前请 `rebase`,确保 `commit` 记录的整洁 -- 4. 注意 `commit` 信息规范,要以 `type: 描述信息` 的形式填写,注意 `type` 得是下面规范之中的一个 -- 5. 示例 `commit 信息`:`fix: 修复样式问题` -- 6. 可以使用项目中的 `pnpm cz` 进行 `commit` 提交 -- 7. 等待作者 `review` 通过后,即可合并 - ## 📄 License [MIT](https://opensource.org/license/mit/) diff --git a/env/.env.production b/env/.env.production index f9d1702..8a1b50c 100644 --- a/env/.env.production +++ b/env/.env.production @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'production' +NODE_ENV = 'development' # 是否去除console 和 debugger VITE_DELETE_CONSOLE = true # 是否开启sourcemap diff --git a/package.json b/package.json index 3d3db99..9d7fc98 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "unibest", "type": "commonjs", - "version": "3.3.1", - "unibest-version": "用户创建项目时生成,使用version版本号", + "version": "3.3.0", + "unibest-version": "3.3.0", "packageManager": "pnpm@10.10.0", "description": "unibest - 最好的 uniapp 开发模板", "generate-time": "用户创建项目时生成", @@ -25,9 +25,6 @@ "pnpm": ">=7.30" }, "scripts": { - "docs:dev": "vitepress dev docs", - "docs:build": "vitepress build docs", - "docs:preview": "vitepress preview docs", "preinstall": "npx only-allow pnpm", "uvm": "npx @dcloudio/uvm@latest", "uvm-rm": "node ./scripts/postupgrade.js", @@ -101,11 +98,10 @@ "abortcontroller-polyfill": "^1.7.8", "alova": "^3.3.3", "dayjs": "1.11.10", - "element-plus": "^2.10.2", + "js-cookie": "^3.0.5", "pinia": "2.0.36", "pinia-plugin-persistedstate": "3.2.1", "vue": "^3.4.21", - "vue-i18n": "9.1.9", "wot-design-uni": "^1.9.1", "z-paging": "2.8.7" }, @@ -153,8 +149,6 @@ "unplugin-auto-import": "^0.17.8", "vite": "5.2.8", "vite-plugin-restart": "^0.4.2", - "vitepress": "^1.5.0", - "vitepress-plugin-llms": "^1.3.4", "vue-tsc": "^2.2.10" }, "resolutions": { diff --git a/src/style/index.scss b/src/style/index.scss index f1b592a..e1d33c5 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -1,6 +1,14 @@ // 测试用的 iconfont,可生效 // @import './iconfont.css'; +.test { + // 可以通过 @apply 多个样式封装整体样式 + @apply mt-4 ml-4; + + padding-top: 4px; + color: red; +} + :root, page { // 修改按主题色 diff --git a/tsconfig.json b/tsconfig.json index 8c29b0e..22a48c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "types": [ "@dcloudio/types", "@uni-helper/uni-types", + "@types/wechat-miniprogram", "wot-design-uni/global.d.ts", "z-paging/types", "./src/typings.d.ts" diff --git a/vite.config.ts b/vite.config.ts index f1286a0..b939d20 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -53,7 +53,7 @@ export default async ({ command, mode }) => { } = env console.log('环境变量 env -> ', env) - return { + return defineConfig({ envDir: './env', // 自定义env目录 base: VITE_APP_PUBLIC_BASE, plugins: [ @@ -178,5 +178,5 @@ export default async ({ command, mode }) => { minify: mode === 'development' ? false : 'esbuild', }, - } + }) }