karma-coffee-preprocessor
Version:
A Karma plugin. Compile coffee script on the fly.
51 lines (47 loc) • 1.03 kB
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
pkgFile: 'package.json',
'npm-contributors': {
options: {
commitMessage: 'chore: update contributors'
}
},
bump: {
options: {
commitMessage: 'chore: release v%VERSION%',
pushTo: 'upstream',
commitFiles: [
'package.json',
'CHANGELOG.md'
]
}
},
conventionalChangelog: {
release: {
options: {
changelogOpts: {
preset: 'angular'
}
},
src: 'CHANGELOG.md'
}
},
eslint: {
target: [
'index.js',
'gruntfile.js'
]
}
})
require('load-grunt-tasks')(grunt)
grunt.registerTask('default', ['eslint'])
grunt.registerTask('release', 'Bump the version and publish to NPM.', function (type) {
grunt.task.run([
'npm-contributors',
'bump-only:' + (type || 'patch'),
'conventionalChangelog',
'bump-commit',
'npm-publish'
])
})
}