-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
33 lines (29 loc) · 758 Bytes
/
Gruntfile.coffee
File metadata and controls
33 lines (29 loc) · 758 Bytes
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
module.exports = (grunt) ->
grunt.loadNpmTasks 'grunt-concurrent'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-nodemon'
grunt.initConfig
watch:
coffeeServer:
files: 'src/*.coffee'
tasks: ['coffee:compileServer']
coffee:
compileServer:
expand: true
flatten: true
options:
sourceMap: true
cwd: 'src/'
src: ['*.coffee']
dest: 'lib/'
ext: '.js'
nodemon:
dev:
script: 'lib/server.js'
watch: 'lib'
ext: '*'
options:
nodeArgs: ['--debug']
grunt.registerTask('build', ['coffee'])
grunt.registerTask('default', ['build'])