Package Exports
- base-task-alias
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-task-alias) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base-task-alias

Plugin that adds
.taskAlias
method to your @node-base application. Creating alias task for some task.
Install
npm i base-task-alias --save
Usage
For more use-cases see the tests
const baseTaskAlias = require('base-task-alias')
baseTaskAlias
Adds
.taskAlias
method that acceptname
andaliases
. It creates task using the.task
method for each item inaliases
array, which task will point toname
task.
Params
options
{Object}: object to merge withapp.options
returns
{Function}: plugin executed by.use
method
Example
var tasks = require('base-task')
var taskAlias = require('base-task-alias')
var Base = require('base')
var app = new Base()
app.use(tasks()).use(taskAlias())
.taskAlias
Creates task for each item in
aliases
pointing toname
as dependency.
Params
name
{String}: task name to which each alias will pointopts
{Object|Array}: options passed to.task
or array ofaliases
aliases
{Array|String}: list of alias task namesreturns
{Object}: returnthis
instance for chaining
Example
app.use(taskAlias())
app.taskAlias('foo', ['bar', 'qux'])
app.task('foo', function () {
console.log('task: foo')
})
app.build('foo') // => 'task: foo'
app.build('bar') // => 'task: foo'
app.build('qux') // => 'task: foo'
Related
- base-plugins-enhanced: Error handling and extras for
.use
and.run
methods of your Base… more | homepage - base-plugins: Upgrade's plugin support in base applications to allow plugins to be called… more | homepage
- base-task: base plugin that provides a very thin wrapper around https://github.com/doowb/composer for adding… more | homepage
- base: base is the foundation for creating modular, unit testable and highly pluggable… more | homepage
- generate: Command line tool and developer framework for scaffolding out new GitHub projects… more | homepage
- verb-generate-readme: Generate your project's readme with verb. Requires verb v0.9.0 or higher. | homepage
- verb: Documentation generator for GitHub projects. Verb is extremely powerful, easy to use… more | homepage
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.