Skip to content

Commit

Permalink
Replace grunt-bump with npm version scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Dec 19, 2018
1 parent 8428b5c commit 007e2b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
11 changes: 0 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-yuidoc');

var banner = [
Expand Down Expand Up @@ -65,16 +64,6 @@ module.exports = function(grunt) {
outdir: 'dist/doc'
}
}
},
bump: {
options: {
files: ['package.json'],
commit: false,
createTag: false,
tagName: '%VERSION%',
tagMessage: 'Version %VERSION%',
push: false
}
}
});

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
],
"scripts": {
"build": "grunt build",
"lint": "grunt jshint"
"lint": "grunt jshint",
"preversion": "npm run lint && npm run build",
"postversion": "git push && git push --tags && npm publish"
},
"license": "MIT",
"keywords": [
Expand All @@ -27,7 +29,6 @@
},
"devDependencies": {
"grunt": "^1.0.3",
"grunt-bump": "^0.8.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-jshint": "^2.0.0",
"grunt-contrib-uglify": "^4.0.0",
Expand Down

0 comments on commit 007e2b8

Please sign in to comment.