-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
64 lines (59 loc) · 2.36 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
module.exports = function (grunt) {
grunt.initConfig({
qunit: {
all: ['tests/tests-js/index.html']
},
jshint: {
all: ['Gruntfile.js', 'tests/tests-js/tests']
},
concat: {
options: {
separator: ';'
},
js: {
src: ['resources/assets/js/*.js', 'resources/assets/js/revpdf/*.js'],
dest: 'web/assets/js/scripts.js'
},
css: {
src: ['resources/assets/css/*.css'],
dest: 'web/assets/css/styles.css'
},
css_cerulean: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/cerulean/*.css'],
dest: 'web/assets/css/styles-cerulean.css'
},
css_cyborg: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/cyborg/*.css'],
dest: 'web/assets/css/styles-cyborg.css'
},
css_journal: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/journal/*.css'],
dest: 'web/assets/css/styles-journal.css'
},
css_slate: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/slate/*.css'],
dest: 'web/assets/css/styles-slate.css'
},
css_spacelab: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/spacelab/*.css'],
dest: 'web/assets/css/styles-spacelab.css'
},
css_united: {
src: ['resources/assets/css/*.css', 'resources/assets/css/themes/united/*.css'],
dest: 'web/assets/css/styles-united.css'
}
},
uglify: {
dist: {
files: {
'web/assets/js/scripts.js': ['web/assets/js/scripts.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['jshint', 'qunit', 'concat:js', 'concat:css', 'concat:css_cerulean', 'concat:css_cyborg', 'concat:css_journal', 'concat:css_slate', 'concat:css_spacelab', 'concat:css_united', 'uglify']);
};