-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
35 lines (31 loc) · 1.09 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
/**
* Created by Nitin on 08-11-2015.
*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
karma: {
unit: {
options: {
frameworks: ['jasmine'],
singleRun: true,
browsers: ['PhantomJS'],
files: [
"https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.7/angular.js",
"https://code.angularjs.org/1.3.5/angular-mocks.js",
"http://angular-ui.github.io/ui-router/release/angular-ui-router.js",
"bower_components/underscore/underscore-min.js",
"app.js",
"js/service/user-service.js",
'test/spec/**/*Spec.js'
]
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-karma');
// Default task(s).
grunt.registerTask('test', ['karma']);
};