README
apeman-task-subpack
apeman task to link sub packages
This tasks creates a symbolic links into node_modules to avoid "require('../../../../') problem".
Installation
$ npm install apeman-task-subpack --save-dev
Usage
- Define a task within Apemanfile.js
- Call the task via apeman task command.
Apemanfile.js
/** This is an example Apemanfile to use apeman-task-subpack */
'use strict'
module.exports = {
$pkg: { /* ... */ },
$tasks: {
// Define your own task.
'lib:subpack': require('apeman-task-subpack')(
'lib/**/package.json', {
// Options
ignore: 'node_modules'
})
}
}
Then,
$ apeman task my-task-01
Signature
define(pattern, options) -> function
apeman task to link sub packages
Args
Name | Type | Default | Description |
---|---|---|---|
pattern | string | File name pattern. | |
options | object | Optional settings. | |
options.ignore | string | string[] |
License
This software is released under the MIT License.