2017 © Pedro Peláez
 

library build

Simple build tool

image

cookyii/build

Simple build tool

  • Sunday, August 21, 2016
  • by rmrevin
  • Repository
  • 1 Watchers
  • 4 Stars
  • 121 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Cookyii/Build

Cookyii/build is a simple PHP build tool for any projects., (*1)

Documentation

  • [Installing (RU)][]
  • [Configuration (RU)][]
  • [Usage (RU)][]

Quick start (LEGACY, NOT ACTUAL)

Installing, (*2)

Composer, (*3)

$ composer require cookyii/build:dev-master

Updating, (*4)

$ ./build self/update

or Composer, (*5)

$ composer require cookyii/build:dev-master

Configuration, (*6)

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

/var/www/my-project/build.php:, (*8)

<?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), (*9)

$ ./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, (*10)

  • [BlankTask][] - empty task, which is used when a class is not specified.
  • [CallableTask][] - task to execute php function (callable).
  • [ChmodTask][] - task to change file mode (chmod).
  • [ChownTask][] - task to change owner (chown).
  • [CommandTask][] - task to execute programm on the command line (cli command).
  • [ComposerTask][] - task to execute composer functions.
  • [DeleteTask][] - task deletes files.
  • [EchoTask][] - task displays custom message.
  • [FileExistsTask][] - task checks for the existence of the file.
  • [InputTask][] - prompt task.
  • [LockTask][] - task of managing locking file.
  • [MapTask][] - task displays a map of all available tasks.
  • [ReplacementTask][] - task of replacing placeholders in file.
  • [SelfTask][] - task with internal tasks cookyii/build.

The Versions

21/08 2016

dev-master

9999999-dev

Simple build tool

  Sources   Download

MIT

The Requires

 

The Development Requires

tool build