mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
chore(grunt): add grunt-conventinal-changelog
This commit is contained in:
0
CHANGELOG.md
Normal file
0
CHANGELOG.md
Normal file
20
Gruntfile.js
20
Gruntfile.js
@ -137,16 +137,22 @@ module.exports = function(grunt) {
|
|||||||
updateConfigs: ['pkg'],
|
updateConfigs: ['pkg'],
|
||||||
commit: true,
|
commit: true,
|
||||||
commitMessage: 'Release v%VERSION%',
|
commitMessage: 'Release v%VERSION%',
|
||||||
commitFiles: ['package.json', 'dist/'], // '-a' for all files
|
commitFiles: ['package.json', 'CHANGELOG.md', 'dist/'], // '-a' for all files
|
||||||
createTag: true,
|
createTag: true,
|
||||||
tagName: 'v%VERSION%',
|
tagName: 'v%VERSION%',
|
||||||
tagMessage: 'Version %VERSION%',
|
tagMessage: 'Version %VERSION%',
|
||||||
push: true,
|
push: false,
|
||||||
pushTo: 'origin',
|
pushTo: 'origin',
|
||||||
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe'
|
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d' // options to use with '$ git describe'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
changelog: {
|
||||||
|
options: {
|
||||||
|
dest: 'CHANGELOG.md'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
files: ['libs/*.js', 'src/*.js', 'Gruntfile.js'],
|
files: ['libs/*.js', 'src/*.js', 'Gruntfile.js'],
|
||||||
tasks: ['concat', 'uglify', 'cssmin']
|
tasks: ['concat', 'uglify', 'cssmin']
|
||||||
@ -161,15 +167,17 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||||
grunt.loadNpmTasks('grunt-contrib-yuidoc');
|
grunt.loadNpmTasks('grunt-contrib-yuidoc');
|
||||||
grunt.loadNpmTasks('grunt-bump');
|
grunt.loadNpmTasks('grunt-bump');
|
||||||
|
grunt.loadNpmTasks('grunt-conventional-changelog');
|
||||||
|
|
||||||
// Default task.
|
// Default task.
|
||||||
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'cssmin']);
|
grunt.registerTask('default', ['jshint', 'concat', 'uglify', 'cssmin']);
|
||||||
grunt.registerTask('build', ['default']);
|
grunt.registerTask('build', ['default']);
|
||||||
grunt.registerTask('docs', ['yuidoc']);
|
grunt.registerTask('docs', ['yuidoc']);
|
||||||
|
|
||||||
grunt.registerTask('release', ['build', 'bump-only:patch', 'build', 'docs', 'bump-commit']);
|
grunt.registerTask('release', ['build', 'bump-only:patch', 'build', 'docs', 'changelog']);
|
||||||
grunt.registerTask('release:minor', ['build', 'bump-only:minor', 'build', 'docs', 'bump-commit']);
|
grunt.registerTask('release:minor', ['build', 'bump-only:minor', 'build', 'docs', 'changelog']);
|
||||||
grunt.registerTask('release:major', ['build', 'bump-only:major', 'build', 'docs', 'bump-commit']);
|
grunt.registerTask('release:major', ['build', 'bump-only:major', 'build', 'docs', 'changelog']);
|
||||||
grunt.registerTask('release:git', ['build', 'bump-only:git', 'build', 'docs', 'bump-commit']);
|
grunt.registerTask('release:git', ['build', 'bump-only:git', 'build', 'docs', 'changelog', 'bump-commit']);
|
||||||
|
grunt.registerTask('release:commit', ['bump-commit']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
"grunt-contrib-yuidoc": "~0.4.0",
|
"grunt-contrib-yuidoc": "~0.4.0",
|
||||||
"bower": "~0.9.2",
|
"bower": "~0.9.2",
|
||||||
"qunit": "~1.11.0",
|
"qunit": "~1.11.0",
|
||||||
"grunt-bump": "0.0.11"
|
"grunt-bump": "0.0.11",
|
||||||
|
"grunt-conventional-changelog": "~1.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user