-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntFile.js
93 lines (89 loc) · 3.04 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
module.exports = function (grunt) {
// #! Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
/*jshint: {
files: {
src: ['js/withPricelist/main.js', 'js/withPricelist/withPricelist.js']
},
options: {
curly: true,
eqeqeq: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
},
},
},*/
/*concat: {
target: {
src: [
'<%= baseUrl %>bower_components/bootstrap/dist/css/bootstrap.min.css',
'<%= baseUrl %>bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css'
],
dest: '<%= baseUrl %>css/bower_components.min.css',
},
},*/
cssmin: {
options: {
mergeIntoShorthands: false,
roundingPrecision: -1,
sourceMap: true
},
target: {
files: {
'<%= baseUrl %>css/withPricelist.min.css': [
'<%= baseUrl %>bower_components/bootstrap/dist/css/bootstrap.min.css',
'<%= baseUrl %>bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css',
'<%= baseUrl %>css/main.css',
]
}
},
main: {
files: {
'<%= baseUrl %>css/main.min.css': [
'<%= baseUrl %>css/main.css',
]
}
},
skinLtb: {
files: {
'<%= baseUrl %>css-skins/listTb.min.css': [
'<%= baseUrl %>css-skins/listTb.css',
]
}
},
skinLtbmain: {
files: {
'<%= baseUrl %>css-skins/listTb_main.min.css': [
'<%= baseUrl %>css-skins/listTb.css',
'<%= baseUrl %>css/main.css',
]
}
}
},
copy: {
main: {
files: [
// includes files within path
{
expand: true,
cwd: '<%= baseUrl %>bower_components/bootstrap/fonts',
src: '**',
dest: '<%= baseUrl %>fonts/',
filter: 'isFile'
},
]
}
},
baseUrl: 'js/withPricelist/'
});
// #! Load the plugin that provides the "jshint" task and other
// grunt.loadNpmTasks('grunt-contrib-jshint');
// grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
// #! Default task(s).
grunt.registerTask('default', ['cssmin', 'copy']);
};