-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.coffee
33 lines (30 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
module.exports = (grunt) ->
grunt.initConfig
coffee:
options:
bare: false
join: true
separator: "\n\n"
static:
# the coffee source files must be concatenated before compiling to JS
files:
'static/draganddrop.js': ['static-src/draganddrop-base.coffee', 'static-src/draganddrop.coffee']
'static/feedback.js': ['static-src/draganddrop-base.coffee', 'static-src/feedback.coffee']
backend:
files:
'index.js': ['index.coffee']
uglify:
production:
options:
output:
comments: false
files:
# override the original compiled JS file
'static/draganddrop.js': ['static/draganddrop.js']
'static/feedback.js': ['static/feedback.js']
# Load the plugins (tasks "coffee", "uglify")
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-uglify-es'
# Default tasks
grunt.registerTask 'default', ['coffee', 'uglify']
grunt.registerTask 'dev', ['coffee']