forked from solita/perfgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
54 lines (45 loc) · 1.07 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
compile:
files: [
expand: true
cwd: "app/"
src: ["**/*.coffee"]
dest: "public/"
ext: ".js"
]
options:
flatten: false
bare: false
jade:
compile:
files:
"public/index.html": "app/**/*.jade"
stylus:
compile:
files: [
expand: true
cwd: "app/"
src: ["**/*.styl"]
dest: "public/css/"
ext: ".css"
flatten: true
]
options:
compress: true
watch:
coffee:
files: ["app/**/*.coffee"]
tasks: ["coffee"]
stylus:
files: ["app/**/*.styl"]
tasks: ["stylus"]
jade:
files: ["app/**/*.jade"]
tasks: ["jade"]
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-jade"
grunt.loadNpmTasks "grunt-contrib-stylus"
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.registerTask "default", ["coffee", "jade", "stylus", "watch"]