Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 1.99 KB

README.md

File metadata and controls

61 lines (51 loc) · 1.99 KB

@nevware21/publish-npm

Tools to automate the publishing packages to npm.

GitHub Workflow Status (main) npm version downloads downloads

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.json so 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

  • default identifies the default group when no group is passed on the command line
  • each group identifies the path to the repo where the package.json will be loaded to obtain the name
// ------------------------------
// 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"
    }
}