-
Notifications
You must be signed in to change notification settings - Fork 12
/
grunt.js
36 lines (31 loc) · 805 Bytes
/
grunt.js
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
module.exports = function(grunt) {
// Configure Grunt
grunt.initConfig({
requirejs: {
compile: {
options: {
mainConfigFile: "build.js"
}
}
},
// minify the optimized library file
min: {
"dist/skeleton.min.js": "dist/skeleton.js"
},
// kick off jasmine, showing results at the cli
jasmine: {
all: ['test/runner.html']
},
// run jasmine tests any time watched files change
watch: {
files: ['lib/**/*','test/spec/**/*'],
tasks: ['jasmine']
}
});
// Load external tasks
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-jasmine-task');
// Make task shortcuts
grunt.registerTask('default', 'jasmine requirejs min');
grunt.registerTask('test', 'jasmine');
};