0.0.4 • Published 8 years ago

gulp-task-help v0.0.4

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

Gulp Task Help

Provides a gulp task that will display a help message describing the tasks as well as their dependencies and arguments.

Preview

gulp-task-help

Install

npm i --save-dev gulp-task-help

Usage

var Help = require('gulp-task-help');

// create the help task instance
const help = new Help(
	'Project Title',
	'Project Description
);

// register each argument
help.registerArgument(
	'arg-name', 'Argument description', 'default value'
);

help.registerTask(
	'task:name',
	'Task description',
	['task:dependency'],
	['argument-name']
);

// register the task
gulp.task('help', help.helpTask);

API Documentation

Full API Documentation

new Help(title, description)

Argument NameTypeDescription
titlestringGenerally the title of the application
descriptionstringA description of the application or the build system

registerTask(taskName, description, dependencies, args)

Argument NameTypeDescriptionDefault
taskNamestringThe name of the task as registered with gulp
descriptionstringThe description of the tasks
dependenciesstring[]A list of dependant task nams[]
argsstring[]A list of argument names[]

registerArgument(argumentName, description, defaultValue)

Argument NameTypeDescription
argumentNamestringThe name of the argument
descriptionstringThe description of the argument
defaultValuestringA default value, or description of the default value

License

Gulp Task Help is released under the ISC license. See LICENSE.

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago