0.1.4 • Published 12 months ago
@nevware21/publish-npm v0.1.4
Description
Simple tools for automating the publishing of packages to npm.
Quick Start
Install the npm packare: npm install @nevware21/publish-npm --save-dev
It is suggested / recommended that you use the following definition in your
package.jsonso that you are compatible with any future releases as they become available we do not intend to make ANY known breaking changes moving forward until v2.x"@nevware21/publish-npm": ">= 0.1.4 < 2.x"
Create a configuration file with your group settings, where the
defaultidentifies the default group when no group is passed on the command line- each
groupidentifies the path to the repo where thepackage.jsonwill be loaded to obtain thename
// ------------------------------
// NPM Publish group definitions
// ------------------------------
{
"repoRoot": "../../..",
"default": "all",
"groups": {
"all": [
"./lib/pre-proc",
"./lib/coverage-tools",
"./lib/publish-npm"
],
"preProc": [
"./lib/pre-proc"
],
"mergeCoverage": [
"./lib/coverage-tools"
],
"npmPublish": [
"./lib/publish-npm"
]
}
}And then just used the helper in your package.json
{
"scripts": {
"publish-npm": "publish-npm groupName"
}
}