Skip to content

tmdk/taskrunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taskrunner

Something like Ant, but with more PHP and less XML.

Requirements

  • PHP >= 5.4

Features

  • Write targets, tasks in (almost) plain PHP.
  • Use Java-style properties like {build.directory}. Nested properties are supported.
  • Targets can have dependencies.

Usage

  1. Download and install with git clone https://github.com/tmdk/taskrunner.git and php composer.phar install.
  2. Run a bundle (build file) with taskrunner [target]. Taskrunner will look for a file build.php in the current directory. Use the -f flag to specify the path to a bundle.
  3. For pointers on writing bundles, take a look at the examples under examples.

Tasks

A task can be any function (any callable really). The only requirement is that the function returns an array of two elements, the first element being a boolean denoting whether the task was executed succesfully, and the second one a string containing any messages about the result of the task.

TODO

  • Write tasks.

About

A PHP-based build tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages