-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
52 lines (50 loc) · 1.5 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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
css: {
src: [
'css/cssc-default.css',
'css/cssc-common.css',
'css/cssc-content.css',
'css/cssc-buttons.css',
'css/cssc-forms.css',
'css/cssc-tables.css',
'css/cssc-grid.css',
'css/cssc-push.css',
'css/cssc-navigation.css',
'css/cssc-layouts.css',
'css/cssc-tabs.css',
'css/cssc-images.css',
'css/cssc-print.css',
'css/cssc-effects.css',
'css/cssc-triggers.css'
],
dest: 'csscommon.css'
},
},
cssmin: {
css: {
src: 'csscommon.css',
dest: 'csscommon.min.css'
}
},
shell: {
regressiontest: {
command: 'casperjs test casper.js'
},
postuglify: {
command: 'rm csscommon.css;',
stdout: true
}
}
});
grunt.registerTask('default', [
'concat:css',
'cssmin:css',
'shell:postuglify'
]);
};