forked from indrimuska/angular-switcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
53 lines (49 loc) · 1.07 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
module.exports = function(grunt) {
// Load plugins
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
main: {
files: {
'dist/angular-switcher.js': ['src/angular-switcher.js'],
'dist/angular-switcher.css': ['src/angular-switcher.css']
}
}
},
uglify: {
options: {
banner: '/*! angular-switcher - v<%= pkg.version %> - https://github.com/indrimuska/angular-switcher - (c) 2015 Indri Muska - MIT */\n'
},
main: {
files: {
'dist/angular-switcher.min.js': ['dist/angular-switcher.js']
}
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
main: {
files: {
'dist/angular-switcher.min.css': ['dist/angular-switcher.css']
}
}
},
'sync-json': {
options: {
include: ['name', 'description', 'version']
},
bower: {
files: {
"bower.json": "package.json"
}
}
}
});
// Default tasks.
grunt.registerTask('default', ['copy', 'uglify', 'cssmin', 'sync-json']);
};