-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.coffee
48 lines (41 loc) · 1.01 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
42
43
44
45
46
47
48
module.exports = (grunt) ->
# load grunt tasks automatically
require('load-grunt-tasks')(grunt);
# time how long tasks take. can help when optimizing build times
require('time-grunt')(grunt);
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
banner: """
/**
* <%= _.titleize(pkg.name) %> v<%= pkg.version %>
*
* @author: <%= pkg.author %>
* @date: <%= grunt.template.today("yyyy-mm-dd") %>
*/\n\n
"""
grunt.loadTasks 'grunt'
grunt.registerTask 'default', 'Running development environment...', [
'build'
'connect'
'watch'
]
grunt.registerTask 'build', 'Running development tasks...', [
'clean:dev'
'concat:i18n'
'coffee:dev'
'jade:dev'
'stylus:dev'
'concat:dev'
'copy:dev'
'chalkboard:src'
]
grunt.registerTask 'deploy', 'Running deployment task...', [
'clean:prod'
'coffee:prod'
'concat:prod'
'uglify:prod'
]
grunt.registerTask 'pages', 'Running pages tasks...', [
'build'
'gh-pages'
]