node-package-develop
v0.1.4
Published
Manage your node packages
Downloads
19
Readme
Node Package Develop
Manage your npm modules, especially work on testing, building and publishing.
Install
$ npm install -g node-package-developUse
Check project:
$ npd checkBuild project:
$ npd buildPublish project:
$ npd buildThe publish command will automatically run check and build by default
Config
Create file npd.json at project's root.
check
- gitTag(boolean, true): whether to check if git tag is existed;
- npm(boolean, true): whether to check if this version is existed on the registry;
- npmIgnore(boolean, true): whether to check if
npd.jsonfile is in.npmignore; - projectScripts(boolean, true): whether to run script
checkinpackage.json.
build
- projectScripts(boolean, true): whether to run script
buildinpackage.json.
publish
- pretest(boolean, true): whether to run check before publish;
- prebuild(boolean, true): whether to run build before publish;
- gitTag
- use(boolean, true): whether to tag the current commit;
- push(boolean, true): whether to push tag to origin after tagging;
- ignoreError(boolean, false): whether to ignore error on pushing to origins;
- origins(string[], ["origin"]):origins to push;
- output(boolean, false):whether to show git output;
- npm
- use(boolean, true): whether to publish to npm;
- changeRegistry(boolean, true): whether to check the registry, and if not npm, change it to npm;
- output(boolean, true): weather to show npm output;
- projectScripts(boolean, true): whether to run script
publishinpackage.json.
Args
- --skip-check: Skip testing before publishing;
- --skip-build: Skip building before publishing.
