-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
42 lines (40 loc) · 1.04 KB
/
Gruntfile.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
dev:
options:
bare: true
files: [
expand: true
cwd: 'tasks/'
src: ['*.coffee']
dest: 'tasks/'
ext: '.js'
]
watch:
coffee:
files: ['tasks/*.coffee']
tasks: ['coffee']
gitcommit:
compiled:
options:
ignoreEmpty: true
files:
src: ['tasks/heroku.js']
bump:
options:
files: ['package.json']
commit: true
commitMessage: 'Release v%VERSION%'
commitFiles: ['package.json']
createTag: true
tagName: 'v%VERSION%'
push: true
pushTo: 'origin'
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-bump')
grunt.loadNpmTasks('grunt-git')
grunt.registerTask('deploy', ['coffee:dev', 'gitcommit:compiled', 'bump'])
grunt.registerTask('default', ['coffee:dev', 'watch'])