pon-task-subpack
Manage sub packages for monorepo
Installation
$ npm install pon-task-subpack --save
Usage
'use strict' const pon = const ponTaskSubpack = ;async { let run = }
Signatures
define(options) -> function
Define task
Param | type | Description |
---|---|---|
options | Object | Optional settings |
npmrcCopy(base, sub) -> function()
Copy .npmrc file to sub package directories
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
npmrcFix(base, sub, config) -> function()
Fix .npmrc
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
config | Object | Config |
prune(base, sub, options) -> function(Object): Promise
冗長な依存関係を除去
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string|string[] | Sub packages file pattern |
options | Object | Optional setting |
options.except | string | Exceptions |
options.localDeps | boolean | Should prune local deps |
sync(base, sub, mapper, options) -> function()
中身を同期
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
mapper | function | Value mapper |
options | Object | Optional setting |
License
This software is released under the Apache-2.0 License.