Manage sub packages for monorepo
$ npm install pon-task-subpack --save
'use strict'
const pon = require('pon')
const ponTaskSubpack = require('pon-task-subpack')
;(async () => {
let run = pon({
myTask01: ponTaskSubpack()
})
run('myTask01')
}).catch((err) => console.error(err))
Define task
Param | type | Description |
---|---|---|
options | Object | Optional settings |
Copy .npmrc file to sub package directories
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
Fix .npmrc
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
config | Object | Config |
冗長な依存関係を除去
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 |
中身を同期
Param | type | Description |
---|---|---|
base | string | Base package json file path |
sub | string | Sub packages file pattern |
mapper | function | Value mapper |
options | Object | Optional setting |
This software is released under the Apache-2.0 License.