-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.coffee
76 lines (76 loc) · 2.32 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = (grunt) =>
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
jade:
compile:
options:
pretty: true
files: [
expand: true
cwd: 'src'
src: 'index.jade'
dest: 'dest/'
ext: '.html'
]
stylus:
compile:
options:
compress: false
files: [
expand: true
cwd: 'src'
src: 'index.styl'
dest: 'dest/'
ext: '.css'
]
coffee:
compile:
options:
bare: true
files: [
expand: true
cwd: 'src'
src: ['index.coffee']
dest: 'dest/'
ext: '.js'
]
bower:
install:
options:
targetDir: 'dest/lib'
layout: 'byType'
install: true
cleanTargetDir: true
cleanBowerDir: false
connect:
server:
options:
port: 3000
hostname: "*"
base: './dest/'
livereload: 35729
esteWatch:
options:
dirs: [
"src/**"
"dest/**"
]
livereload:
enabled: true
extensions: ['js', 'html', 'css']
port: 35729
"coffee": (path) ->
['coffee']
"jade": (path) ->
['jade']
"styl": (path) ->
['stylus']
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-stylus'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-bower-task'
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-este-watch'
grunt.loadNpmTasks 'grunt-newer'
grunt.registerTask 'make', ['bower', 'coffee', 'stylus', 'jade']
grunt.registerTask 'default', ['make', 'connect', 'esteWatch']