Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add gruntfile which includes grunt release task
- Loading branch information
Pascal Küsgen
committed
Dec 11, 2015
1 parent
345e621
commit d950c8e
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules/ | ||
.DS_Store | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
] ); | ||
|
||
}; |