forked from litecart/litecart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
79 lines (75 loc) · 3.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = function(grunt) {
grunt.initConfig({
less: {
litecart_admin_template_minified: {
options: {
compress: true,
sourceMap: true,
sourceMapBasepath: 'public_html/includes/templates/default.admin/less/',
sourceMapRootpath: '../less/',
relativeUrls: true
},
files: {
'public_html/includes/templates/default.admin/css/app.min.css' : 'public_html/includes/templates/default.admin/less/app.less',
'public_html/includes/templates/default.admin/css/framework.min.css' : 'public_html/includes/templates/default.admin/less/framework.less',
'public_html/includes/templates/default.admin/css/printable.min.css' : 'public_html/includes/templates/default.admin/less/printable.less',
}
},
litecart_catalog_template_minified: {
options: {
compress: true,
sourceMap: true,
sourceMapBasepath: 'public_html/includes/templates/default.catalog/less/',
sourceMapRootpath: '../less/',
relativeUrls: true
},
files: {
'public_html/includes/templates/default.catalog/css/app.min.css' : 'public_html/includes/templates/default.catalog/less/app.less',
'public_html/includes/templates/default.catalog/css/checkout.min.css' : 'public_html/includes/templates/default.catalog/less/checkout.less',
'public_html/includes/templates/default.catalog/css/framework.min.css' : 'public_html/includes/templates/default.catalog/less/framework.less',
'public_html/includes/templates/default.catalog/css/printable.min.css' : 'public_html/includes/templates/default.catalog/less/printable.less',
}
},
featherlight_minified: {
options: {
compress: true,
sourceMap: true,
sourceMapBasepath: 'public_html/ext/featherlight/',
sourceMapRootpath: '/',
relativeUrls: true
},
files: {
'public_html/ext/featherlight/featherlight.min.css' : 'public_html/ext/featherlight/featherlight.less',
}
},
responsiveslides_minified: {
options: {
compress: true,
sourceMap: true,
sourceMapBasepath: 'public_html/ext/responsiveslides/',
sourceMapRootpath: '/',
relativeUrls: true
},
files: {
'public_html/ext/responsiveslides/responsiveslides.min.css' : 'public_html/ext/responsiveslides/responsiveslides.less',
}
},
},
uglify: {
litecart: {
files: {
'public_html/includes/templates/default.admin/js/app.min.js' : ['public_html/includes/templates/default.admin/js/app.js'],
'public_html/includes/templates/default.catalog/js/app.min.js' : ['public_html/includes/templates/default.catalog/js/app.js'],
}
},
featherlight: {
files: {
'public_html/ext/featherlight/featherlight.min.js' : ['public_html/ext/featherlight/featherlight.js'],
}
},
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['less', 'uglify']);
};