cookyii/build 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cookyii/build

Composer 安装命令:

composer require cookyii/build

包简介

Simple build tool

关键字:

README 文档

README

Cookyii/build is a simple PHP build tool for any projects.

Documentation

Quick start (LEGACY, NOT ACTUAL)

Installing

Composer

$ composer require cookyii/build:dev-master

Updating

$ ./build self/update

or Composer

$ composer require cookyii/build:dev-master

Configuration

In project path must be file build.php (It can be called whatever you like. The name build.php is taken by default.)

/var/www/my-project/build.php:

<?php

return [
    'map' => [
        '.description' => 'Show map of all tasks in current build config',
        '.task' => 'cookyii\build\tasks\MapTask',
    ],

    'default' => [
        '.description' => 'Build project with demo environment',
        '.depends' => ['composer'],
    ],
        
    'self' => [
        '.description' => 'Internal tasks',
        '.task' => [
            'class' => 'cookyii\build\tasks\SelfTask',
            'composer' => '../../composer.phar',
        ],
    ],

    'composer' => [
        '.description' => 'Install all depending composer for development environment (with `required-dev`)',
        '.task' => [
            'class' => 'cookyii\build\tasks\ComposerTask',
            'defaultTask' => 'install',
        ],
    ],
];

Usage (run build)

$ ./vendor/bin/build # start build from `default` task
$ ./vendor/bin/build composer # start build from `composer` task
$ ./vendor/bin/build -c build.dev.php # start build with specified configuration file `build.dev.php`

Task reference

统计信息

  • 总下载量: 131
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-27