
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@aplus-frontend/sync-cli
Advanced tools
aplus 业务应用代码同步工具,用于在不同仓库间收集和同步代码,支持用户应用和管理应用。
提示: 本工具主要用于管理多仓库前端项目,简化代码同步与整合流程。
npx @aplus-frontend/sync-cli [命令]
# 显示帮助信息
npx @aplus-frontend/sync-cli --help
# 更新用户模板
npx @aplus-frontend/sync-cli up:user-template
# 收集用户子应用代码
npx @aplus-frontend/sync-cli collect:user:son-all
# 更新管理员模板
npx @aplus-frontend/sync-cli up:admin-template
命令 | 描述 |
---|---|
up:user-template | 收集aplus-manage-template特定分支拉取代码更新目标仓库,忽略subapp-base,subapp-mos,subapp-wms,subapp-bms 可选参数: --not-commit 只更新不产生提交记录可选参数: --auto-push 更新完自动推送 可选参数: --branch 拉取分支名称,默认不设置就从.aplus-sync-rc 的aplus-user-sync-template-branch 配置项读取 |
collect:user:base | 收集aplus-user-base项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:user:mos | 收集aplus-user-mos项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:user:wms | 收集aplus-user-wms项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:user:bms | 收集aplus-user-bms项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:user:son-all | 收集aplus-user,base,mos,wms,bms项目的代码到目标仓库 |
up:publish-user-app | 收集publish-user-app项目的代码到目标仓库,忽略subapp-base,subapp-mos,subapp-wms,subapp-bms |
命令 | 描述 |
---|---|
up:admin-template | 收集aplus-manage-template特定分支拉取代码更新目标仓库,忽略subapp-base,subapp-mos,subapp-wms,subapp-bms 可选参数: --not-commit 只更新不产生提交记录可选参数: --auto-push 更新完自动推送 可选参数: --branch 拉取分支名称,默认不设置就从.aplus-sync-rc 的aplus-admin-sync-template-branch 配置项读取 |
collect:admin:base | 收集aplus-admin-base项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:admin:mos | 收集aplus-admin-mos项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:admin:wms | 收集aplus-admin-wms项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:admin:bms | 收集aplus-admin-bms项目的代码到目标仓 可选参数: --branch 拉取分支名称,默认dev-publish 拉取库 |
collect:admin:son-all | 收集aplus-admin,base,mos,wms,bms项目的代码到目标仓库 |
up:publish-admin-app | 收集publish-admin-app项目的代码到目标仓库,忽略subapp-base,subapp-mos,subapp-wms,subapp-bms |
为了简化操作,您可以在项目根目录创建 .aplus-sync-rc
配置文件:
{
"aplus-manage-template": "https://codeup.aliyun.com/xxx/frontend/aplus-basic/aplus-manage-template.git",
"aplus-user-sync-template-branch": "feature/user",
"aplus-admin-sync-template-branch": "feature/admin",
"publish-user-app": "https://codeup.aliyun.com/xxx/frontend/aplus-user-group/publish-user-app.git",
"publish-admin-app": "https://codeup.aliyun.com/xxx/frontend/aplus-admin-group/publish-admin-app.git",
"aplus-user": {
"aplus-user-base": "https://codeup.aliyun.com/xxx/frontend/aplus-user-group/aplus-user-base.git",
"aplus-user-mos": "https://codeup.aliyun.com/xxx/frontend/aplus-user-group/aplus-user-mos.git",
"aplus-user-wms": "https://codeup.aliyun.com/xxx/frontend/aplus-user-group/aplus-user-wms.git",
"aplus-user-bms": "https://codeup.aliyun.com/xxx/frontend/aplus-user-group/aplus-user-bms.git"
},
"aplus-admin": {
"aplus-admin-base": "https://codeup.aliyun.com/xxx/frontend/aplus-admin-group/aplus-admin-base.git",
"aplus-admin-mos": "https://codeup.aliyun.com/xxx/frontend/aplus-admin-group/aplus-admin-mos.git",
"aplus-admin-wms": "https://codeup.aliyun.com/xxx/frontend/aplus-admin-group/aplus-admin-wms.git",
"aplus-admin-bms": "https://codeup.aliyun.com/xxx/frontend/aplus-admin-group/aplus-admin-bms.git"
},
"ignoreFiles": [
"subapp-base",
"subapp-bms",
"subapp-mos",
"subapp-wms",
"i18n.config.cjs",
"node_modules",
"dist",
".env",
".git"
]
}
配置参数 | 描述 | 类型 |
---|---|---|
aplus-manage-template | 模板仓库的远程地址 | string |
aplus-user-sync-template-branch | 用户应用模板分支名称 | string |
aplus-admin-sync-template-branch | 管理员应用模板分支名称 | string |
publish-user-app | 用户发布应用仓库地址 | string |
publish-admin-app | 管理发布应用仓库地址 | string |
aplus-user | 用户应用各子模块的仓库地址配置 | Object |
aplus-admin | 管理应用各子模块的仓库地址配置 | Object |
ignoreFiles | 在同步过程中需要忽略的文件或目录 | string[] |
MIT
FAQs
aplus sync template for aplus-frontend team.
We found that @aplus-frontend/sync-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers 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 Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.