1 | module.exports = (grunt) ->
|
2 |
|
3 | grunt.initConfig
|
4 | 'auto-release':
|
5 | options:
|
6 | checkTravisBuild: false
|
7 |
|
8 | 'npm-contributors':
|
9 | options:
|
10 | commitMessage: 'chore: update contributors'
|
11 |
|
12 | grunt.loadTasks 'tasks'
|
13 | grunt.loadNpmTasks 'grunt-npm'
|
14 | grunt.loadNpmTasks 'grunt-auto-release'
|
15 |
|
16 | grunt.registerTask 'release', 'Build, bump and publish to NPM.', (type) ->
|
17 | grunt.task.run [
|
18 | 'npm-contributors',
|
19 | "bump:#{type||'patch'}",
|
20 | 'npm-publish'
|
21 | ]
|