forked from SOCR/Resampling-Randomization-Webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
59 lines (48 loc) · 1.79 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
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
files:
"js/appController.js": "js/appController.coffee"
"js/appModel.js": "js/appModel.coffee"
"js/appView.js": "js/appView.coffee"
"js/appData.js": "js/appData.coffee"
"test/spec/modelSpec.js": "test/spec/modelSpec.coffee"
"test/spec/dataSpec.js": "test/spec/dataSpec.coffee"
concat:
css:
src:[
"css/bootstrap.css"
"css/bootstrap-responsive.css"
"css/stylePagination.css"
"css/jquery-ui.css"
"css/input/table.css"
"css/jquery.jtweetsanywhere-1.3.1.css"
"css/common.css"
"css/bootstrapSwitch.css"
"css/vis.css"
"css/default-table.css"
"css/input/jquery.handsontable.full.css"
"css/chardinjs/chardinjs.css"
"css/SOCR_Tools_style.css"
]
dest:"dist/app.css"
jasmine:
#ideally the src should concatenated files.
src: ["js/init.js","js/lib/jquery.min.js","js/utils.js","js/lib/jquery.pubsub.js","js/tools/Fcal.js","js/tools/Zcal.js","js/exp/core.js","js/appModel.js","js/appData.js"]
options:
specs: "test/spec/*Spec.js"
jshint:
files:"js/appController.js"
# Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks "grunt-contrib-jasmine"
grunt.loadNpmTasks "grunt-contrib-jshint"
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-contrib-concat"
# Default task(s).
grunt.registerTask "build" , ["coffee","concat"]
grunt.registerTask "compile", ["coffee"]
grunt.registerTask "test", ["coffee","jasmine"]
grunt.registerTask "default", ["coffee","concat"]