silverstripe-australia/build
最新稳定版本:5.3.0
Composer 安装命令:
composer require silverstripe-australia/build
包简介
Phing build helpers for projects making use of the silverstripe-base installation process.
关键字:
README 文档
README
- Phing
- php cli
- PEAR (with a version of phpunit supported by silverstripe)
Installation
- Edit scripts/build.xml and change the name attribute to
- Copy scripts/build.properties.sample to scripts/build.properties
- Edit build.properties and change the DB configuration and rewrite.base settings.
- Run
phing -f scripts/build.xmlto make sure everything installs - If you require additional modules, add them into the scripts/dependent-modules file, then run
phing -f scripts/build.xml update_modules - Run
phing -f scripts/build.xml testto make sure everything's working as expected
Phing targets
Commonly used targets
- build
- test
- package
Helpful for development:
pak- builds a .sspak file at mysite/build/site.sspak . Useful for CIphpstan- Runs PHPStan + PHPStan for SilverStripe if it's installed via Composer. Useful for static analysis of PHP code.- Define folders to scan by placing following in your build.xml file, underneath the
<project>tag.<property name="phpstan.dir" value="mysite/src mysite/tests" />
- Define folders to scan by placing following in your build.xml file, underneath the
Composer scripts
If your themes use yarn based dependencies, you can add the following post-install scripts to be triggered by a composer call, which will ensure the node_modules are installed correctly
"scripts": {
"post-update-cmd": [
"Symbiote\\Build\\ThemeBuilder::run"
],
"post-install-cmd": [
"Symbiote\\Build\\ThemeBuilder::run"
]
},
Optional Scripts
There are three scripts that may optionally be used for your projects, and can be done using the following commands.
sh build/scripts/cache
This will clear out any project cache files (for all projects), and is basically the forced equivalent of doing a ?flush for everything in your site.
sh ~/path/to/permissions
This requires you to update the "{user}" and as such will need to be copied out to a location of your choice, and will apply the appropriate owner and permissions to both the cache and repository.
sh build/scripts/recursive-status
This will recursively trigger a "git status" on each module directory found within your repository, primarily so you check for changes that may have been made in a module that hasn't been included in the repository code base.
sh build/scripts/recursive-status assume-unchanged-listing
When you have patched files (resulting in them coming up as being modified during a recursive-status), you can git update-index --assume-unchanged {file_name}, and use this script with a parameter. This will not only list out the files that have been assumed unchanged, but it will also force the files to reflect the upstream. This makes sure you don't have local changes that have been accidentally made, however it will also remove any patches that were put in place. Therefore, you can run this and then phing to ensure the patches remain in place.
Excluding files from packages
Create a {root}/.pkgignore file with a set of paths to be excluded from built up package files
vendor/un-used/module/
themes/mytheme/node_modules/
mysite/cypress/
silverstripe-australia/build 适用场景与选型建议
silverstripe-australia/build 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.35k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「build」 「silverstripe」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 silverstripe-australia/build 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 silverstripe-australia/build 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 silverstripe-australia/build 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A simple library for make Lexer and Parsers to build a language
Dash (LOVE) Docset Builder in PHP (LOVE).
Analytics chooser extensions for site settings.
CitaNZ's SilverStripe picture object and field for SilverStripe 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
统计信息
- 总下载量: 18.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-03-17