forked from redu/ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
67 lines (59 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
59
60
61
62
63
64
65
66
67
module.exports = function(grunt) {
var files = [
'js/bootstrap-util.js'
, 'js/bootstrap-transition.js'
, 'js/bootstrap-system-message.js'
, 'js/bootstrap-dropdown.js'
, 'js/bootstrap-modal.js'
, 'js/bootstrap-tooltip.js'
, 'js/bootstrap-popover.js'
, 'js/bootstrap-filter.js'
, 'js/bootstrap-forms.js'
, 'js/bootstrap-link.js'
, 'js/bootstrap-list.js'
, 'js/bootstrap-button.js'
, 'js/bootstrap-tables.js'
, 'js/bootstrap-autocomplete.js'
, 'js/bootstrap-local-nav.js'
, 'js/bootstrap-modal-redu.js'
, 'js/bootstrap-spinners.js'
, 'js/bootstrap-search-form.js'
, 'js/bootstrap-wall.js'
, 'js/bootstrap-header.js'
// , 'js/bootstrap-affix.js'
];
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
validthis: true,
laxcomma: true,
laxbreak: true,
browser: true,
debug: true,
boss: true,
expr: true,
asi: true
},
files: files
},
concat: {
dist: {
src: files,
dest: 'js/bootstrap-redu.js'
}
},
uglify: {
'js/bootstrap-redu.min.js': files
},
watch: {
files: files,
tasks: ['jshint', 'concat']
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['watch']);
};