forked from kuhnza/angular-google-places-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
114 lines (104 loc) · 2.22 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* angular-google-places-autocomplete
*
* Copyright (c) 2014 "kuhnza" David Kuhn
* Licensed under the MIT license.
* https://github.com/kuhnza/angular-google-places-autocomplete/blob/master/LICENSE
*/
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
options: {
reporter: require('jshint-stylish'),
jasmine: true,
node: true,
mocha: true,
predef: ['after', 'afterEach', 'angular', 'before', 'beforeEach',
'describe', 'expect', 'inject', 'it', 'jasmine', 'spyOn',
'xdescribe', 'xit']
},
files: [
'Gruntfile.js',
'src/**/*.js',
'test/**/*.js'
]
},
karma: {
options: {
configFile: 'karma.conf.js'
},
unit: {
browsers: ['PhantomJS'],
reporters: ['mocha'],
autoWatch: false,
singleRun: true
},
dev: {
browsers: ['PhantomJS'],
reporters: ['mocha'],
autoWatch: true,
singleRun: false
},
release: {
browsers: ['PhantomJS', 'Chrome', 'Firefox'],
reporters: ['mocha'],
autoWatch: false,
singleRun: true
},
coverage: {
browsers: ['PhantomJS'],
reporters: ['coverage'],
autoWatch: false,
singleRun: true
}
},
clean: {
dist: {
src: 'dist',
dot: true
},
lib: {
src: 'example/lib',
dot: true
},
bower: {
src: 'bower_components',
dot: true
}
},
bower: {
install: {
options: {
targetDir: 'example/lib'
}
}
},
cssmin: {
dist: {
expand: true,
cwd: 'dist/',
files: {
'dist/autocomplete.min.css': 'src/autocomplete.css'
}
}
},
uglify: {
dist: {
files: {
'dist/autocomplete.min.js': 'src/autocomplete.js'
}
}
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('default', ['build']);
grunt.registerTask('test', ['karma:unit']);
grunt.registerTask('build', [
'jshint',
'clean',
'bower',
'cssmin',
'uglify'
]);
};