Permalink
Browse files

feat(grunt): better version handling

  • Loading branch information...
1 parent bea8e17 commit 666279696d4e2da6cdeb6bac7bb6fba402f37141 @sparanoid sparanoid committed Aug 12, 2015
Showing with 25 additions and 14 deletions.
  1. +25 −14 Gruntfile.coffee
View
@@ -9,23 +9,34 @@ module.exports = (grunt) ->
config:
pkg: grunt.file.readJSON("package.json")
- release:
+ "npm-contributors":
options:
- changelog: false,
- file: "package.json"
- npm: false
- commitMessage: "chore: release <%= version %>"
- tagName: "v<%= version %>"
- tagMessage: "chore: tagging version <%= version %>"
- afterBump: [
- "changelog"
- ]
- # Dev options
- commit: false
- tag: false
+ commitMessage: "feat(package): update contributors"
+
+ conventionalChangelog:
+ options:
+ changelogOpts:
+ preset: "angular"
+
+ dist:
+ src: "CHANGELOG.md"
+
+ bump:
+ options:
+ files: ["package.json"]
+ commitMessage: 'chore: release v%VERSION%'
+ commitFiles: ["-a"]
+ tagMessage: 'chore: create tag %VERSION%'
push: false
- pushTags: false
grunt.registerTask "default", "Default task aka. build task", [
"changelog"
]
+
+ grunt.registerTask "default", "Default task aka. build task", (type) ->
+ grunt.task.run [
+ "npm-contributors"
+ "bump-only:#{type or 'patch'}"
+ "conventionalChangelog"
+ "bump-commit"
+ ]

0 comments on commit 6662796

Please sign in to comment.