crodas/build
最新稳定版本:v0.2.0
Composer 安装命令:
composer require crodas/build
包简介
Simple build tools
README 文档
README
Build is a task management and automation tool. It was inspired in Makefile and Python's doit
Concepts
- Annotations are used to define
tasks crodas/Builddo not build things unless they are needed:- When there is no output file
- When any input file changes
<?php // Tasks.php /** * @Task(build_site) */ function concat_files($output, Array $input, Array $settings $builder) { /* Do something with the input files */ $content = ""; foreach ($input as $f) { $content .= file_get_contents($f); } /* Write it in the $output file */ file_put_contents($output, $content); }
<?php // build.php $builder = new crodas\Build("/tasks.php"); $bundle_js = $build->build_site(['foo.js', 'xxx.js']);
统计信息
- 总下载量: 740
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-07