forked from kuhnza/angular-google-places-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
60 lines (54 loc) · 1.17 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
/*
* 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) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.initConfig({
karma: {
unit: {
configFile: 'karma.conf.js',
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'
}
}
}
});
grunt.registerTask('test', [
'karma'
]);
grunt.registerTask('build', [
'clean',
'bower',
'cssmin',
'uglify'
]);
grunt.registerTask('default', ['build']);
};