-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
52 lines (41 loc) · 1.03 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
module.exports = (grunt) ->
grunt.initConfig
clean: ["build"]
copy:
images:
expand: true
cwd: 'source/images/'
src: ['**']
dest: 'build/images/'
jade:
run:
files:
"build/index.html": "source/pages/index.jade"
coffee:
compile:
files:
'build/main.js': 'source/scripts/main.coffee'
stylus:
options:
'include css': true
compile:
files:
'build/main.css': 'source/styles/main.styl'
connect:
server:
options:
base: 'build'
open: true
watch:
options:
livereload: true
files: ['source/**/*']
tasks: ['clean', 'copy', 'jade', 'coffee', 'stylus']
grunt.loadNpmTasks('grunt-contrib-clean')
grunt.loadNpmTasks('grunt-contrib-copy')
grunt.loadNpmTasks('grunt-contrib-jade')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-stylus')
grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.registerTask('default', ['clean', 'copy', 'jade', 'coffee', 'stylus', 'connect', 'watch'])