Permalink
Please sign in to comment.
Showing
with
85 additions
and 0 deletions.
- +1 −0 .gitattributes
- +1 −0 .gitignore
- +21 −0 license
- +7 −0 np.sh
- +32 −0 package.json
- +23 −0 readme.md
| @@ -0,0 +1 @@ | ||
| +* text=auto |
| @@ -0,0 +1 @@ | ||
| +node_modules |
21
license
| @@ -0,0 +1,21 @@ | ||
| +The MIT License (MIT) | ||
| + | ||
| +Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com) | ||
| + | ||
| +Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| +of this software and associated documentation files (the "Software"), to deal | ||
| +in the Software without restriction, including without limitation the rights | ||
| +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| +copies of the Software, and to permit persons to whom the Software is | ||
| +furnished to do so, subject to the following conditions: | ||
| + | ||
| +The above copyright notice and this permission notice shall be included in | ||
| +all copies or substantial portions of the Software. | ||
| + | ||
| +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
| +THE SOFTWARE. |
7
np.sh
| @@ -0,0 +1,7 @@ | ||
| +./node_modules/.bin/trash node_modules &>/dev/null; | ||
| +git pull --rebase && | ||
| +npm install && | ||
| +npm test && | ||
| +npm version ${1:-patch} && | ||
| +npm publish && | ||
| +git push --follow-tags |
32
package.json
| @@ -0,0 +1,32 @@ | ||
| +{ | ||
| + "name": "np", | ||
| + "version": "0.0.0", | ||
| + "description": "A better `npm publish`", | ||
| + "license": "MIT", | ||
| + "repository": "sindresorhus/np-sh", | ||
| + "author": { | ||
| + "name": "Sindre Sorhus", | ||
| + "email": "[email protected]", | ||
| + "url": "sindresorhus.com" | ||
| + }, | ||
| + "bin": { | ||
| + "np": "np.sh" | ||
| + }, | ||
| + "engines": { | ||
| + "node": ">=0.10.0" | ||
| + }, | ||
| + "files": [ | ||
| + "np.sh" | ||
| + ], | ||
| + "keywords": [ | ||
| + "cli-app", | ||
| + "cli", | ||
| + "npm", | ||
| + "publish", | ||
| + "git", | ||
| + "push" | ||
| + ], | ||
| + "dependencies": { | ||
| + "trash": "^2.0.0" | ||
| + } | ||
| +} |
23
readme.md
| @@ -0,0 +1,23 @@ | ||
| +# np | ||
| + | ||
| +> A better `npm publish` | ||
| + | ||
| + | ||
| +## Install | ||
| + | ||
| +``` | ||
| +$ npm install --global np | ||
| +``` | ||
| + | ||
| + | ||
| +## Usage | ||
| + | ||
| +```sh | ||
| +np [patch | minor | major | <version>] | ||
| +# `patch` is default | ||
| +``` | ||
| + | ||
| + | ||
| +## License | ||
| + | ||
| +MIT © [Sindre Sorhus](http://sindresorhus.com) |
0 comments on commit
6f12fca