-
Notifications
You must be signed in to change notification settings - Fork 251
/
gruntfile.js
65 lines (62 loc) · 2.65 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
module.exports = function(grunt) {
grunt.initConfig({
sass: {
options: {
outputStyle: 'compressed',
includePaths: [
'styles',
'scripts'
]
},
dist: {
files: {
'styles/merged.css': 'styles/merged.scss'
}
}
},
uglify: {
options: {
compress: {
drop_console: true
}
},
main: {
files: {
'scripts/filemanager.min.js': ['scripts/filemanager.js'],
'scripts/jquery-ui/jquery-ui.min.js': ['scripts/jquery-ui/jquery-ui.js'],
'scripts/jquery.fileDownload/jquery.fileDownload.min.js': ['scripts/jquery.fileDownload/jquery.fileDownload.js'],
// lazyLoad script was modified to support IE9 & IE10
'scripts/lazyload/dist/lazyload.min.js': ['scripts/lazyload/dist/lazyload.js'],
'scripts/purl/purl.min.js': ['scripts/purl/purl.js'],
'scripts/merged.js': [
'scripts/jquery-1.11.3.min.js',
'scripts/jquery-ui/jquery-ui.js',
'scripts/jquery-browser.js',
'scripts/knockout-3.4.0.js',
'scripts/jquery-mousewheel/jquery.mousewheel.min.js',
'scripts/jquery.splitter/dist/jquery-splitter.js',
'scripts/jquery.contextmenu/dist/jquery.contextMenu.min.js',
'scripts/alertify.js/dist/js/alertify.js',
'scripts/clipboard.js/dist/clipboard.min.js',
'scripts/jquery.fileDownload/jquery.fileDownload.js',
'scripts/javascript-templates/js/tmpl.min.js',
'scripts/toast/lib/toast.min.js',
'scripts/cldrjs/cldr.js',
'scripts/cldrjs/cldr/event.js',
'scripts/cldrjs/cldr/supplemental.js',
'scripts/globalizejs/globalize.js',
'scripts/globalizejs/globalize/number.js',
'scripts/globalizejs/globalize/date.js',
'scripts/purl/purl.js',
'scripts/filemanager.js'
]
}
}
}
});
// load plugins
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-sass');
// default tasks
grunt.registerTask('default', ['uglify', 'sass']);
};