
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
taozi_uniapp-engineering-script
Advanced tools
一个用于管理 uniapp 项目的工程化脚本工具集,提供项目启动、构建、发布、页面生成等功能。
项目会在当前目录及上层目录中查找名为 taozi-uniapp-engineering-script-config.mjs 的配置文件。
配置文件需要导出一个符合 ProjectConfig 接口的对象:
interface ProjectConfig {
/** 应用配置列表 */
apps: AppConfig[];
/** 微信小程序配置 */
wx?: {
getAppInfo: (appConfig: AppConfig) => {
appid: string;
privateKey: string;
};
};
/** 分发 app */
distributionApp?: {
/** 获取 app 的 scripts */
getAppScripts?: (appConfig: AppConfig) => Record<string, string>;
/** 加载器 */
loaders?: Loader[];
};
/** 运行脚本配置 */
runsScripts?: {
/** 命令 key */
command: string;
/** 命令描述 */
description: string;
}[];
/** 环境变量字典 */
appEnvKeyDicts?: { value: string; label: string }[];
/** 批量处理app的并发数 */
appSyncHandleNumber?: number;
/** 创建 app 页面处理器 */
createAppPagesHandler?: (pageDir: string, page: Page) => void | Promise<void>;
/** 创建 core 页面处理器 */
createCorePagesHandler?: (pageDir: string, page: Page) => void | Promise<void>;
}
interface AppConfig {
/** app名字 */
name: string;
/** app 类型 */
type: AppType;
/** 描述 */
description: string;
/** 公共环境 */
comEnv?: AppEnv;
/** 所有环境 */
envs?: {
/** 环境名称 */
name: EnvName;
/** 环境描述 */
description: string;
/** ci机器人编号 1-9 */
ciRobot: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
/** 环境配置 */
value: AppEnv;
}[];
/** 发布配置,用于批量发布小程序 */
release?: {
/** 发布类型,体验版 | 正式版本 */
type: MPVersionTypeValue;
/** 使用环境 */
env: EnvName;
}[];
}
type AppType = "cloud-outpatient" | "internet-hospital";
type EnvName = "production" | "development" | "test";
type MPVersionTypeValue = "trial" | "release";
启动 uniapp 项目,支持开发模式和构建模式。
参数:
-p, --packageName <packageName> - 项目package.json中的name字段-m, --mode <mode> - 模式,可选值:dev|build-e, --env <env> - 环境-o, --openInWXTool <openInWXTool> - 是否在微信开发者工具中打开,可选值:yes|no-u, --upload <upload> - 是否上传小程序,可选值:yes|no-v, --versionType <versionType> - 上传小程序类型,可选值:trial|release-t, --updateVersion <updateVersion> - 更新版本,可选类型:none|patch|minor|major,或者一个版本号,如:1.0.0-c, --ifCreateApp <ifCreateApp> - 是否创建项目,可选值:yes|no示例:
taozi-ues-app-start -p my-app -m dev -e development
清理临时文件夹。
参数: 无
示例:
taozi-ues-cleanup-temp-folders
复制插件到分包目录。
参数: 无
示例:
taozi-ues-copy-plugin
创建应用页面。
参数: 无
示例:
taozi-ues-create-app-pages
创建核心页面。
参数: 无
示例:
taozi-ues-create-core-pages
对小程序进行老年化适配转换,包括添加 page-meta 和转换字体大小。
参数: 无
示例:
taozi-ues-elder-transform
根据 pages.ts 配置生成 pages.json 文件。
参数: 无
示例:
taozi-ues-generate-app-item-pages-json
在微信开发者工具中打开项目。
参数:
-p, --appPath <appPath> - 项目路径-t, --openType <openType> - 打开类型,可选值:dev|build示例:
taozi-ues-open-app-in-wxtool -p /path/to/app -t dev
批量发布项目。
参数:
-s, --apps <apps> - 要发布的项目,多个项目用逗号分隔,query 参数格式:packageName=xxx&env=xxx&type=xxx&version=xxx-a, --all - 是否发布所有项目示例:
taozi-ues-release -s "my-app&env=production&type=release&version=1.0.0"
taozi-ues-release -a
运行项目脚本。
参数:
-s, --commands <commands> - 要执行的命令,多个命令用逗号分隔示例:
taozi-ues-runs -s "start,test"
启动主流程,包括创建页面和选择启动类型。
参数: 无
示例:
taozi-ues-start
测试命令。
参数: 无
示例:
taozi-ues-test
pnpm install
pnpm run build-w
在项目根目录创建配置文件 taozi-uniapp-engineering-script-config.mjs
使用相应的命令进行项目操作
本项目采用 MIT 许可证。
欢迎提交 Issue 和 Pull Request 来改进这个项目。
Taozi
FAQs
一个用于管理 uniapp 项目的工程化脚本工具集,提供项目启动、构建、发布、页面生成等功能。
We found that taozi_uniapp-engineering-script demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.