-
Notifications
You must be signed in to change notification settings - Fork 251
/
gruntfile.js
73 lines (70 loc) · 3.13 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
module.exports = function(grunt) {
grunt.initConfig({
sass: {
options: {
outputStyle: 'compressed',
includePaths: [
'src/css',
'libs'
]
},
dist: {
files: {
'src/css/libs-main.css': 'src/scss/libs-main.scss',
'src/css/filemanager.min.css': 'src/css/filemanager.css'
}
}
},
uglify: {
options: {
compress: {
drop_console: true
}
},
main: {
files: {
// lazyLoad script was modified to support IE9 & IE10
'libs/lazyload/dist/lazyload.min.js': ['libs/lazyload/dist/lazyload.js'],
'src/js/filemanager.min.js': ['src/js/filemanager.js'],
'src/js/libs-main.js': [
'libs/jquery-1.11.3.min.js',
<!-- drag&drop + selectable build (includes customizations for RichFilemanager) -->
'libs/jquery-ui/jquery-ui.js',
'libs/jquery-browser.js',
'libs/knockout-3.4.0.js',
'libs/jquery-mousewheel/jquery.mousewheel.min.js',
'libs/jquery.splitter/dist/jquery-splitter.js',
'libs/jquery.contextmenu/dist/jquery.contextMenu.min.js',
'libs/alertify.js/dist/js/alertify.js',
'libs/clipboard.js/dist/clipboard.min.js',
'libs/jquery.fileDownload/jquery.fileDownload.js',
'libs/javascript-templates/js/tmpl.min.js',
'libs/toast/lib/toast.min.js',
'libs/cldrjs/cldr.js',
'libs/cldrjs/cldr/event.js',
'libs/cldrjs/cldr/supplemental.js',
'libs/globalizejs/globalize.js',
'libs/globalizejs/globalize/number.js',
'libs/globalizejs/globalize/date.js',
'libs/purl/purl.js'
],
'src/js/libs-fileupload.js': [
'libs/jQuery-File-Upload/js/vendor/jquery.ui.widget.js',
'libs/jQuery-File-Upload/js/canvas-to-blob.min.js',
'libs/jQuery-File-Upload/js/load-image.all.min.js',
'libs/jQuery-File-Upload/js/jquery.iframe-transport.js',
'libs/jQuery-File-Upload/js/jquery.fileupload.js',
'libs/jQuery-File-Upload/js/jquery.fileupload-process.js',
'libs/jQuery-File-Upload/js/jquery.fileupload-image.js',
'libs/jQuery-File-Upload/js/jquery.fileupload-validate.js'
]
}
}
}
});
// load plugins
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
// default tasks
grunt.registerTask('default', ['uglify', 'sass']);
};