Skip to content

Commit

Permalink
docs(npm): update recommended npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Joseph committed Dec 14, 2015
1 parent 1e9e050 commit 2eef159
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ return Changelog.generate({ patch: true, repoUrl: 'https://github.com/lob/genera
The way that I would recommend using this module would be the way it's being used in this module: as npm scripts. You should install it as a dev dependency and then add the following to the `scripts` object in your `package.json`:

```json
"release:major": "changelog -M && git commit -am 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:minor": "changelog -m && git commit -am 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:patch": "changelog -p && git commit -am 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
```

## Testing
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"test": "test"
},
"scripts": {
"release:major": "./bin/generate -M && git commit -am 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:minor": "./bin/generate -m && git commit -am 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:patch": "./bin/generate -p && git commit -am 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
"release:major": "./bin/generate -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:minor": "./bin/generate -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:patch": "./bin/generate -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"lint": "eslint .",
"test": "NODE_ENV=test istanbul cover _mocha -- test --recursive --timeout 30000",
Expand Down

0 comments on commit 2eef159

Please sign in to comment.