meeva/composer-monorepo-builder-path-plugin
Composer 安装命令:
composer require meeva/composer-monorepo-builder-path-plugin
包简介
composer plugin to install packages grouped via symplify/monorepo-builder as path-symlinks
README 文档
README
Composer plugin intended to use in conjunction with symplify/monorepo-builder.
When having a repository of kind:
monorepo_dir
` bundles
` subproject1
` subproject2
` projects
` example1
where example1 has dependencies to monorepo/subproject1 you may like to install vendors, while keeping only a single copy of your subproject1.
Symlinks aka. Path-Repositories to the rescue!
This also allows you to use the dependency before even publishing it to an external, without manually adding the path-repository to your composer.json
Usage
composer global require meeva/composer-monorepo-builder-path-plugin
That's all. Nothing to configure. It detects your monorepo_dir by traversing up to your merged composer.json, and search all other composer.json in subdirectories (vendor excluded).
Now if you do composer require monorepo/subproject1 within the path monorepo_dir/projects/example1 it should use a path-symlink to install the dependency to monorepo_dir/projects/example1/vendor.
Deployment
Assuming you're gonna build a deploy version of your Project, this plugin is disabled if you're using --no-dev.
Also you can use the environment-variable COMPOSER_MONOREPO with one of these values:
force-> enable, even if--no-devis presentskip-> disabled- anything else (default) -> enabled,
unless --no-devis present
Known Caveats
- Performance is bad on Windows, but I'm sure you're used to it by now
meeva/composer-monorepo-builder-path-plugin 适用场景与选型建议
meeva/composer-monorepo-builder-path-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 203.75k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 01 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 meeva/composer-monorepo-builder-path-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 meeva/composer-monorepo-builder-path-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 203.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-08