forked from Trained-to-Glory/design
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
37 lines (34 loc) · 1.07 KB
/
gruntfile.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
37
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
injector: {
local_dependencies: {
files: {
'www/index.html': [['www/lib/angular/angular.min.js', 'www/lib/angular/jquery.min.js'],
['www/js/**/*.js', 'www/css/**/*.css']]
},
options:{
ignorePath:[
'www/'
],
}
}
},
karma: {
unit: {
configFile: 'karma.conf.js'
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-injector');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-mocha-phantomjs');
// Default task.
grunt.registerTask('default', ['injector']);
grunt.registerTask('unit', ['karma']);
//grunt.registerTask('changes', ['watch']);
};