forked from luisfarzati/ng-bs-daterangepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
58 lines (48 loc) · 1.44 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
55
56
57
58
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['src/ng-bs-daterangepicker.js', 'test/**/*.js']
},
karma: {
unit: {
options: {
basePath: './',
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
autoWatch: true,
singleRun: true,
files: [
'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/momentjs/min/moment.min.js',
'bower_components/bootstrap-daterangepicker/daterangepicker.js',
'src/ng-bs-daterangepicker.js',
'test/**/*.js'
]
}
}
},
uglify: {
options: {
preserveComments: 'some',
sourceMap: 'dist/ng-bs-daterangepicker.min.js.map',
sourceMappingURL: 'ng-bs-daterangepicker.min.js.map',
report: 'min'
},
dist: {
files: {
'dist/ng-bs-daterangepicker.min.js': ['src/ng-bs-daterangepicker.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['jshint', 'karma']);
};