JonnyBGod / grunt-push-release

Bump package version, create tag, commit, push...
MIT License
12 stars 10 forks source link

option setup not in plugin but grunt task itself #11

Open SquadraCorse opened 10 years ago

SquadraCorse commented 10 years ago

Maybe i'm the only one, but i only want to tag my major and minors. The way it is setup now i can use things like 'push-only and push-commit' and make other task in your setup push-tag but then i thought if the options setup can be changed it works even better. Is that an idea? push { // basic default options options { 'type': 'minor' // patch, minor, major 'files': ['package.json'], // default setup which runs on 'push' etc... } 'minor': { options { 'type': 'minor', 'commit: false' } // options to overrule } 'tag': { options { 'createTag': true } } // options to overrule }

now i will be able to do { 'push:minor', 'something-in-build-proces', 'push:commit', 'push:tag', 'push:push' } and snapshots like { 'push', 'something-in-build-proces', 'push:commit' } or any other usecase in the task or as subtask.

Is that nice to have?