-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
43 lines (38 loc) · 830 Bytes
/
Gruntfile.coffee
File metadata and controls
43 lines (38 loc) · 830 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
34
35
36
37
38
39
40
41
42
43
module.exports = (grunt) ->
require("matchdep").filterDev("grunt-*").forEach grunt.loadNpmTasks
grunt.initConfig
jshint:
all: [
"freefocus.js",
"jquery.freefocus.js",
"test/*.js"
]
options:
jshintrc: '.jshintrc'
karma:
continuos:
configFile: "karma.conf.coffee"
check:
configFile: "karma.conf.coffee"
singleRun: true
uglify:
vanilla:
files:
"freefocus.min.js": [
"freefocus.js"
]
jquery:
files:
"jquery.freefocus.min.js": [
"freefocus.js",
"jquery.freefocus.js"
]
grunt.registerTask "test", [
"jshint",
"karma:continuos"
]
grunt.registerTask "default", [
"jshint",
"karma:check",
"uglify"
]