-
Notifications
You must be signed in to change notification settings - Fork 5
/
Gruntfile.js
65 lines (59 loc) · 1.46 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
/*
* angular-google-places-map
*
* Copyright (c) 2015 Davide Pedone
* Licensed under the MIT license.
* https://github.com/davidepedone/angular-google-places-map
*/
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
grunt.initConfig({
clean: {
js: [ 'dist/js' ],
css: [ 'dist/css' ],
build: [ 'dist/' ]
},
less: {
dist:{
options: {
paths: [ "less" ],
compress: true
},
files: {
"dist/css/ngplacesmap.min.css": [ "src/less/ngplacesmap.less" ]
}
}
},
uglify: {
dist: {
// options:{
// beautify: true,
// compress: false
// },
files: {
'dist/js/ngplacesmap.min.js': ['src/js/ngplacesmap.js']
}
}
},
jshint: {
options: {
jshintrc: '.jshintrc',
},
js: [ 'src/js/**/*.js']
},
watch: {
js: {
files: 'src/js/*.js',
tasks: [ 'clean:js', 'jshint', 'uglify' ]
},
css:{
files: 'src/less/*.less',
tasks: [ 'clean:css', 'less']
}
}
});
grunt.registerTask('build', ['clean:build', 'less', 'jshint', 'uglify']);
grunt.registerTask('default', ['build']);
};