2017 © Pedro Peláez
 

library pulp

A streaming build system like gulp

image

weevers/pulp

A streaming build system like gulp

  • Thursday, April 2, 2015
  • by weevers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

pulp

pulp is a streaming build system, something like gulp for PHP. Meaning: with src("*.css") you get a asynchronous duplex stream that emits virtual file objects. This stream can then be piped to one or more plugins or to a filesystem destination with dest("target-dir"). pulp is a weekend experiment, please use a VM if you want to play with it. Requires PHP 5.4+., (*1)

packagist status Travis build status AppVeyor build status Dependency status, (*2)

Jump to: install / license, (*3)

example

This example bundles all the javascript files in "assets" and its subdirectories, then writes it to "build/all.js"., (*4)

src('assets/**/*.js')
  ->pipe(new Plugin\Concat('all.js'))
  ->pipe($pulp->dest('build'))
  ->each(function($file){
    echo "bundled all js in {$file->path}\n";
  })
;

// Nothing happens until we start an event loop
$pulp->run();

?>

If we leave out the Concat plugin, all javascript files are copied. Note that a file like "assets/js/app.js" would be copied to "build/js/app.js"., (*5)

src('assets/**/*.js')
  ->pipe($pulp->dest('build'));

$pulp->run();

?>

install

With composer do:, (*6)

composer require weevers/pulp

license

MIT © Vincent Weevers, (*7)

The Versions

02/04 2015

dev-master

9999999-dev https://github.com/vweevers/php-pulp

A streaming build system like gulp

  Sources   Download

MIT

The Requires

 

The Development Requires

file stream build gulp glob

02/04 2015

v0.0.2

0.0.2.0 https://github.com/vweevers/php-pulp

A streaming build system like gulp

  Sources   Download

MIT

The Requires

 

The Development Requires

file stream build gulp glob

31/03 2015

v0.0.1

0.0.1.0 https://github.com/vweevers/php-pulp

A streaming build system like gulp

  Sources   Download

MIT

The Requires

 

The Development Requires

file stream build gulp glob