triaubaral/phaster

基于 phing 的元任务集合,以简化您的构建过程。

0.1.0-alpha 2019-01-01 14:48 UTC

This package is auto-updated.

Last update: 2024-09-29 05:21:30 UTC


README

基于 phing 的元任务集合,以简化您的构建过程。

安装

phaster 的安装是一个两步过程。首先,您使用 composer 安装 phaster,然后需要执行一个自定义的 phing 脚本。

  1. Composer

安装 Phaster 的首选方法是使用 [Composer](https://getcomposer.org/)。将 [triaubaral/phaster](https://packagist.org.cn/packages/triaubaral/phaster) 添加到您项目配置文件 composer.json 的 require-dev 或 require 部分,并运行 'composer install'。

 {
	"require-dev": {
		 "phing/phing": "^2.16"
		 "triaubaral/phaster": "@dev"
	 }
  }
  1. 自定义 Phing 脚本

在您的终端中复制/粘贴以下命令

./vendor/bin/phing -f vendor/triaubaral/phaster/build.xml phaster:install -Dprofil=dev

它会在 src/resources/phaster 中安装一个包含所有元任务的目录树,并在执行上述命令的目录中安装一个 build.xml 文件

检查您的安装

命令

 ./vendor/bin/phing -l

将为开发配置提供以下输出

Collection of meta task based on phing in order to make your build process easy
Default target:
-------------------------------------------------------------------------------
 phaster:props

Main targets:
-------------------------------------------------------------------------------
 00:source:prepare   Clean working dir
 01:source:clone     Copy source and test dir to a build dir
 02:source:resolve   Resolve source dependencies
 03:source:compile   Compile source code
 04:source:score     Analyse source and test written quality
 05:source:test      Execute unit tests
 06:source:track     Deploy source code
 07:source:package   Transform source code into binary format
 08:binary:deploy    Deploy binary
 09:binary:resolve   Current build's external dependencies installation to make the app to run
 10:binary:host      Current build installation on specific infrastructure
 11:binary:test      Execute functionnal tests
 12:binary:score     Execute performance tests

它是如何工作的!

如上所述,这些任务是元任务!您必须实现它们以满足当前的构建需求。它们只是我对高质量构建的表示。