File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 2
2
module . exports = function ( grunt ) {
3
3
grunt . initConfig ( {
4
4
pkg : grunt . file . readJSON ( 'package.json' ) ,
5
+ clean : {
6
+ all : [ 'build' , 'test/ui/*.html.json' ]
7
+ } ,
5
8
jasmine : {
6
9
src : [
7
10
'node_modules/rasterizehtml/dist/rasterizeHTML.allinone.js' ,
@@ -243,6 +246,7 @@ module.exports = function (grunt) {
243
246
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
244
247
grunt . loadNpmTasks ( 'grunt-contrib-cssmin' ) ;
245
248
grunt . loadNpmTasks ( 'grunt-contrib-csslint' ) ;
249
+ grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
246
250
grunt . loadNpmTasks ( 'grunt-shell' ) ;
247
251
248
252
grunt . registerTask ( 'test' , [
@@ -252,11 +256,15 @@ module.exports = function (grunt) {
252
256
'shell:runPhantomTests'
253
257
] ) ;
254
258
255
- grunt . registerTask ( 'default' , [
256
- 'test' ,
259
+ grunt . registerTask ( 'build' , [
257
260
'concat' ,
258
261
'uglify' ,
259
262
'cssmin'
260
263
] ) ;
261
264
265
+ grunt . registerTask ( 'default' , [
266
+ 'test' ,
267
+ 'build'
268
+ ] ) ;
269
+
262
270
} ;
Original file line number Diff line number Diff line change 37
37
"grunt-shell" : " ~0.6.1" ,
38
38
"jasmine-core" : " ~2.0.0" ,
39
39
"jasmine-jquery" : " git://github.com/velesin/jasmine-jquery" ,
40
- "jquery" : " ~2.1.0"
40
+ "jquery" : " ~2.1.0" ,
41
+ "grunt-contrib-clean" : " ~0.5.0"
41
42
},
42
43
"scripts" : {
43
44
"test" : " bash go --verbose"
You can’t perform that action at this time.
0 commit comments