Difference between revisions of "Npm"
From Wiki2
(Created page with "===Node package manager=== ====versioning=== 1.0.0 is typical with the major release number getting changed any time the api changes. Adding features would change the second...") |
|||
Line 1: | Line 1: | ||
==Node package manager== | |||
===versioning=== | |||
1.0.0 is typical with the major release number getting changed any time the api changes. Adding features would change the second digit and bug fixes would change the last digit. | 1.0.0 is typical with the major release number getting changed any time the api changes. Adding features would change the second digit and bug fixes would change the last digit. | ||
====process==== | |||
:modify package.json to new version, say 1.1.0 | :modify package.json to new version, say 1.1.0 | ||
git add . -A | git add . -A | ||
Line 11: | Line 11: | ||
git push --tags | git push --tags | ||
npm publish | npm publish | ||
===beta process=== | |||
from current version, say 1.3.0 to add a beta feature bump the version to 1.4.0-beta.0 | |||
:modify package.json to new version, say 1.4.0-beta.0 | |||
git add . -A | |||
git commit -m 'about new beta version' | |||
git push | |||
git tag 1.4.0-beta.0 | |||
git push --tags | |||
npm publish --beta |
Revision as of 15:57, 18 September 2015
Node package manager
versioning
1.0.0 is typical with the major release number getting changed any time the api changes. Adding features would change the second digit and bug fixes would change the last digit.
process
- modify package.json to new version, say 1.1.0
git add . -A git commit -m 'about new version' git push git tag 1.1.0 git push --tags npm publish
beta process
from current version, say 1.3.0 to add a beta feature bump the version to 1.4.0-beta.0
- modify package.json to new version, say 1.4.0-beta.0
git add . -A git commit -m 'about new beta version' git push git tag 1.4.0-beta.0 git push --tags npm publish --beta