-
Notifications
You must be signed in to change notification settings - Fork 20
/
Gruntfile.coffee
60 lines (51 loc) · 1.6 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
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
jst:
app:
options:
processName: (filename) ->
filename.replace('_templates/', '').replace('._', '')
namespace: "RepoList.Templates"
files:
"_includes/js/templates.js": "_templates/*._"
watch:
cs:
files: ["_cs/*"]
tasks: [ 'coffeelint', 'coffee']
options:
interrupt: true
forceWatchMethod: 'old'
jst:
files: ["_templates/*"]
tasks: 'jst'
options:
interrupt: true
forceWatchMethod: 'old'
coffeelint:
app: "_cs/**.coffee"
coffee:
app:
files:
"_includes/js/app.js": "_cs/app.coffee"
uglify:
app:
files:
"_includes/js/app.js": "_includes/js/app.js"
templates:
files:
"_includes/js/templates.js": "_includes/js/templates.js"
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-mincss'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-coffeelint'
grunt.loadNpmTasks 'grunt-jekyll'
grunt.loadNpmTasks 'grunt-contrib-imagemin'
grunt.loadNpmTasks 'grunt-css'
grunt.loadNpmTasks 'grunt-contrib-stylus'
grunt.loadNpmTasks 'grunt-contrib-jst'
grunt.registerTask 'cs', ["coffeelint", "coffee"]
grunt.registerTask 'default', ["cs", "jst", "uglify"]