Skip to content

Commit

Permalink
chore: add gruntfile which includes grunt release task
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Küsgen committed Dec 11, 2015
1 parent 345e621 commit d950c8e
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
node_modules/
.DS_Store
.idea/
62 changes: 62 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,62 @@
module.exports = function ( grunt ) {

grunt.initConfig( {

release: {
options: {
bump: true, //default: true
changelog: false, //default: false
file: 'package.json', //default: package.json
add: false, //default: true
commit: false, //default: true
tag: true, //default: true
push: false, //default: true
pushTags: false, //default: true
npm: false, //default: true
tagName: 'v<%= version %>', //default: '<%= version %>'
commitMessage: 'release <%= version %>', //default: 'release <%= version %>'
tagMessage: 'Version <%= version %>', //default: 'Version <%= version %>',
beforeBump: [], // optional grunt tasks to run before file versions are bumped
afterBump: [
'conventionalChangelog'
], // optional grunt tasks to run after file versions are bumped
beforeRelease: [], // optional grunt tasks to run after release version is bumped up but before release is packaged
afterRelease: [], // optional grunt tasks to run after release is packaged
updateVars: [] // optional grunt config objects to update (this will update/set the version property on the object specified)
}
},

conventionalChangelog: {
options: {
changelogOpts: {
// conventional-changelog options go here
preset: 'angular'
},
context: {
// context goes here
},
gitRawCommitsOpts: {
// git-raw-commits options go here
},
parserOpts: {
// conventional-commits-parser options go here
},
writerOpts: {
// conventional-changelog-writer options go here
}
},
release: {
src: 'CHANGELOG.md'
}
}

} );

grunt.loadNpmTasks( 'grunt-release' );
grunt.loadNpmTasks( 'grunt-conventional-changelog' );

grunt.registerTask( 'default', [
'release'
] );

};

0 comments on commit d950c8e

Please sign in to comment.