Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Add better pre and post test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 2, 2016
1 parent c2124fa commit f171a05
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .bumpedrc_original
@@ -0,0 +1,27 @@
files: [
'package.json'
]

plugins:

prerelease:

'Linting config files':
plugin: 'bumped-finepack'

postrelease:

'Generating CHANGELOG file':
plugin: 'bumped-changelog'

'Committing the new version':
plugin: 'bumped-terminal'
command: 'git add . && git commit -m "$newVersion releases"'

'Publishing at Github':
plugin: 'bumped-terminal'
command: 'git tag $newVersion && git push --tags && git push origin master'

'Publishing at NPM':
plugin: 'bumped-terminal'
command: 'npm publish'
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -55,8 +55,8 @@
"npm": ">= 1.4.0"
},
"scripts": {
"posttest": "mv .bumpedrc_backup .bumpedrc ",
"pretest": "mv .bumpedrc .bumpedrc_backup",
"posttest": "cp .bumpedrc_original .bumpedrc",
"pretest": "cp .bumpedrc_original .bumpedrc",
"test": "sh test/test.sh"
},
"license": "MIT",
Expand Down

0 comments on commit f171a05

Please sign in to comment.