Initialize your .pulp/composer.json with
{
"repositories": [
{
"type": "vcs",
"url": "[email protected]:Pulp-tool/pulp-less.git"
}
],
"require": {
"pulp-less": "*"
}
}Then install with composer install
Use the plugin with src and dest pipes
$p->task('less', function() use($p) {
$p->watch( ['foo/**/*.less'])->on('change', function($file) use ($p) {
$p->src(['foo/bootstrap.less'])
->pipe(new \Pulp\Less( ['compress'=>true]))
->pipe($p->dest('foo/compressed.css'));
});
});Then call with
php pulp.phar lessAny time a less file under foo/ changes the bootstrap.less file will kick off the less compile process.