0.1.1 • Published 9 years ago

gulp-command-task v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

gulp-command-task

Execute command line processes from a gulp task (have it look pretty and do logging, if you like).

usage

get it: npm install --save gulp-command-task

use it:

var CommandTask = require('gulp-command-task');
var gulp = require('gulp');

var listPkgRootWithFullOutput = new CommandTask('ls -Alh', '.');
listPkgRootWithFullOutput.tuneOutput('none');

var listPkgRecursivelyToFile = new CommandTask('ls -ARlh', '.', '.');
var gulptask = listPkgRecursivelyToFile.registerGulpTask('ls-ARlh_package');
listPkgRecursivelyToFile.tuneOutput(10, {
	pre: 'Recursively listing your home directory.',
	post: 'You can find the output in ' + listPkgRecursivelyToFile.name + '.log.'
});

listPkgRootWithFullOutput.start()
.then(function () {
	gulptask.fn();
});

docs

Generated API Docs.

more examples?

Check out the tests.