forked from shama/dontkry.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.coffee
54 lines (42 loc) · 1.23 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
module.exports = ->
@initConfig
browserify:
'dist/js/bundle.js': ['src/public/js/index.js']
voxel:
src: ['src/public/js/voxel/*']
dest: 'dist/js/voxel/'
expand: true
flatten: true
compass:
css:
options:
sassDir: 'src/public/scss'
cssDir: 'dist/css'
environment: 'production'
docs: require('./docpad')()
connect:
server:
options:
base: 'dist/'
clean: ['dist/']
watch:
livereload:
options:
livereload: true
files: ['dist/**/*']
tasks: ['beep']
docs:
files: ['src/**/*', 'docpad.coffee', '!src/public/scss/*', '!src/public/js/**/*']
tasks: ['docs']
js:
files: ['src/public/js/*.js', 'Gruntfile.coffee']
tasks: ['browserify:dist/js/bundle.js', 'docs']
css:
files: ['src/public/scss/*.scss']
tasks: ['compass']
voxel:
files: ['src/public/js/voxel/*.js']
tasks: ['browserify:voxel']
@loadNpmTasks(task) for task in require('matchdep').filterDev('grunt-*')
@registerTask 'default', ['clean', 'compass', 'browserify', 'docs']
@registerTask 'dev', ['default', 'connect', 'watch']