@@ -28,7 +28,7 @@ module.exports = function (grunt) {
28
28
concat : {
29
29
options : {
30
30
banner : '<%= banner.full %>' ,
31
- process : function ( src ) {
31
+ process : function ( src ) {
32
32
// remove jslint/jshint options and 'use strict' declaration
33
33
return src
34
34
. replace ( / \/ \* j s [ h l ] i n t .* ?\* \/ \n / g, '' )
@@ -53,11 +53,6 @@ module.exports = function (grunt) {
53
53
dest : 'dist/jquery.<%= pkg.name %>.extra.js'
54
54
} ,
55
55
56
- simple : {
57
- src : [ 'src/jquery.<%= pkg.name %>.simple.js' ] ,
58
- dest : 'dist/jquery.<%= pkg.name %>.simple.js'
59
- } ,
60
-
61
56
autoload : {
62
57
src : [ 'src/jquery.<%= pkg.name %>.autoload.js' ] ,
63
58
dest : 'dist/jquery.<%= pkg.name %>.autoload.js'
@@ -105,11 +100,6 @@ module.exports = function (grunt) {
105
100
dest : 'dist/jquery.<%= pkg.name %>.extra.min.js'
106
101
} ,
107
102
108
- simple : {
109
- src : '<%= concat.simple.dest %>' ,
110
- dest : 'dist/jquery.<%= pkg.name %>.simple.min.js'
111
- } ,
112
-
113
103
autoload : {
114
104
src : '<%= concat.autoload.dest %>' ,
115
105
dest : 'dist/jquery.<%= pkg.name %>.autoload.min.js'
@@ -143,6 +133,18 @@ module.exports = function (grunt) {
143
133
dest : 'dist/jquery.<%= pkg.name %>.widget.min.js'
144
134
}
145
135
} ,
136
+ cssmin : {
137
+ minify : {
138
+ options : {
139
+ banner : '<%= banner.short %>' ,
140
+ report : 'gzip'
141
+ } ,
142
+ files : [
143
+ { src : 'src/jquery.<%= pkg.name %>.spinner.css' , dest : 'dist/jquery.<%= pkg.name %>.spinner.min.css' } ,
144
+ { src : 'src/jquery.<%= pkg.name %>.fadein.css' , dest : 'dist/jquery.<%= pkg.name %>.fadein.min.css' }
145
+ ]
146
+ }
147
+ } ,
146
148
qunit : {
147
149
files : [ 'test/**/*.html' ]
148
150
} ,
@@ -188,10 +190,11 @@ module.exports = function (grunt) {
188
190
grunt . loadNpmTasks ( 'grunt-contrib-copy' ) ;
189
191
grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
190
192
grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
193
+ grunt . loadNpmTasks ( 'grunt-contrib-cssmin' ) ;
191
194
grunt . loadNpmTasks ( 'grunt-contrib-qunit' ) ;
192
195
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
193
196
194
197
// Default task.
195
- grunt . registerTask ( 'default' , [ 'jshint' , 'clean' , 'copy' , 'concat' , 'uglify' , 'qunit' ] ) ;
198
+ grunt . registerTask ( 'default' , [ 'jshint' , 'clean' , 'copy' , 'concat' , 'uglify' , 'cssmin' , ' qunit'] ) ;
196
199
197
200
} ;
0 commit comments