-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
53 lines (47 loc) · 1.4 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* globals module:false, require:false */
module.exports = function (grunt) {
'use strict';
// Load all grunt tasks matching the 'grunt-*' pattern.
require('load-grunt-tasks')(grunt);
grunt.initConfig({
karma: {
unit: {
configFile: 'config/karma.conf.js',
singleRun: true
},
auto: {
configFile: 'config/karma.conf.js',
autoWatch: true
}
},
coveralls: {
options: {
debug: false,
coverageDir: 'coverage',
dryRun: false,
force: true,
recursive: true
}
},
uglify: {
options: {
mangle: true
},
target: {
files: {
'angular-base-class.min.js': 'angular-base-class.js'
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
commitFiles: ['-a'],
push: false
}
}
});
// Load all modules from package.json matching the pattern 'grunt-*'. Very helpful to avoid having to loadNpmTasks for every grunt module.
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.registerTask('test', ['karma:unit']);
};