phpgt/build
Composer 安装命令:
composer require phpgt/build
包简介
Client-side build system for PHP projects.
README 文档
README
This project provides a system for defining and running client-side build processes automatically, using tools already installed by your favourite client-side dependency manager.
Example usage
An example build.json below shows three different usages:
npmhas been used to install babel into the node_modules directory. The command to run is thebabelbinary within the node_modules directory. The command will execute whenever a*.es6file changes within the script directory.sasshas been installed to the system. Thesasscommand is available on the environment PATH, and the developer has stated that at least version 3.5 is required for the build. The command will execute whenever a*.scssfile changes within the style directory.- A custom PHP script is called whenever any HTML or PHP file is edited in the page directory. This assumes that the command
vendor/bin/sitemapis installed via a composer package.
build.json:
{
"script/**/*.es6": {
"name": "Babel transpile",
"command": "./node_modules/.bin/babel",
"args": "script/main.js -o www/script.js",
"require": {
"node": "^8.4",
"@command": "^6.0"
}
},
"style/**/*.scss": {
"name": "Sass compilation",
"command": "sass",
"args": "style/main.scss www/style.css",
"require": {
"@command": ">=3.5"
}
},
"page/**/*.{html|php}": {
"name": "Sitemap generation",
"command": "php vendor/bin/sitemap",
"args": "src/page www/sitemap.xml"
}
}
Not a dependency manager
This library assumes the configuration of the system is already configured.
The primary objective is to provide a client-side build system that is automatically configured for PHP projects, leaving the configuration of the system down to the developer's choice of client-side dependency management software.
Features at a glance
- One-off builds
- Background builds (watching the matching files and re-building where necessary)
- Bring your own client-side dependency manager
Proudly sponsored by
phpgt/build 适用场景与选型建议
phpgt/build 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.22k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 02 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 phpgt/build 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phpgt/build 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-04