mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
commit
c4e82d855e
26
Gruntfile.js
26
Gruntfile.js
|
@ -76,10 +76,28 @@ module.exports = function (grunt) {
|
|||
}
|
||||
},
|
||||
|
||||
changelog: {
|
||||
conventionalChangelog: {
|
||||
options: {
|
||||
repository: 'http://github.com/showdownjs/showdown',
|
||||
dest: 'CHANGELOG.md'
|
||||
changelogOpts: {
|
||||
preset: 'angular'
|
||||
}
|
||||
},
|
||||
release: {
|
||||
src: 'CHANGELOG.md'
|
||||
}
|
||||
},
|
||||
|
||||
conventionalGithubReleaser: {
|
||||
release: {
|
||||
options: {
|
||||
auth: {
|
||||
type: 'oauth',
|
||||
token: process.env.GH_TOEKN
|
||||
},
|
||||
changelogOpts: {
|
||||
preset: 'angular'
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -163,7 +181,7 @@ module.exports = function (grunt) {
|
|||
grunt.registerTask('lint', ['jshint', 'jscs']);
|
||||
grunt.registerTask('test', ['clean', 'lint', 'concat:test', 'simplemocha:node', 'clean']);
|
||||
grunt.registerTask('build', ['test', 'concat:dist', 'uglify']);
|
||||
grunt.registerTask('prep-release', ['build', 'changelog']);
|
||||
grunt.registerTask('prep-release', ['build', 'conventionalChangelog']);
|
||||
|
||||
// Default task(s).
|
||||
grunt.registerTask('default', ['test']);
|
||||
|
|
|
@ -45,7 +45,8 @@
|
|||
"grunt-contrib-concat": "^0.5.0",
|
||||
"grunt-contrib-jshint": "^0.10.0",
|
||||
"grunt-contrib-uglify": "^0.6.0",
|
||||
"grunt-conventional-changelog": "^1.1.0",
|
||||
"grunt-conventional-changelog": "^4.0.0",
|
||||
"grunt-conventional-github-releaser": "^0.3.0",
|
||||
"grunt-jscs": "^1.2.0",
|
||||
"grunt-simple-mocha": "^0.4.0",
|
||||
"js-beautify": "^1.5.6",
|
||||
|
|
Loading…
Reference in New Issue
Block a user