forked from nvdnkpr/angular-localize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
54 lines (53 loc) · 1.69 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
54
/* global module */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'angular-localize.js',
'angular-localize-spec.js'
]
},
karma: {
unit: {
options: {
files: [
'bower_components/angular/angular.js',
'bower_components/angular-sanitize/angular-sanitize.js',
'angular-localize.js',
'bower_components/angular-mocks/angular-mocks.js',
'angular-localize-spec.js'
],
browsers: ['PhantomJS']
},
frameworks: ['jasmine'],
reporters: ['progress', 'coverage'],
preprocessors: {
'angular-localize.js': ['coverage']
},
singleRun: true
}
},
uglify: {
dist: {
options: {
sourceMap: true,
sourceMapName: 'angular-localize.min.js.map'
},
files: {
'angular-localize.min.js': ['angular-localize.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump-build-git');
grunt.loadNpmTasks('grunt-karma');
grunt.registerTask('test', ['jshint', 'karma']);
grunt.registerTask('default', ['test', 'uglify']);
};