nln

nrk-ludo-np

A better `npm publish` with sensible defaults

Showing:

Popularity

Downloads/wk

18

Maintenance

No Maintenance Data Available

Package

Dependencies

7

Size (min+gzip)

27.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

An improved version of "A better npm publish", with sensible default configurations

inspired by, and based on np by Sindre Sorhus

At NRK we use this package to publish several ludo/player related modules.

Why

Could be run without any arguments and still let you

  • Follow semver patterns to increment patch, prepatch and prerelease
  • Publish patch release from master branch
  • Publish prerelease from branches other than master

Plus all the added benefits of np

  • clean set of node_modules
  • run tests
  • git tagged releases

Install

$ npm install nrk-ludo-np --save-dev

Usage

"scripts": {
  "my-publish": "nrk-ludo-np"
}

To skip cleanup and testing:

"scripts": {
  "my-publish": "nrk-ludo-np --yolo"
}

Version incrementation patterns

1.2.3 on master => 1.2.4

If run on the master branch, nrk-ludo-np increments the package version using patch

1.2.3 on branch => 1.2.4-branch.0

If run first time on branch branch, nrk-ludo-np increments the package version using prepatch and uses branch as the prepatch id

1.2.4-branch.0 on branch => 1.2.4-branch.1

If run again on branch branch, nrk-ludo-np increments the package version using prerelease

Tips

npm and tags

Publishing package foo from branch bar, makes that published package available using

npm install foo@bar

License

nrk-ludo-np is released under MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100