File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 22module . exports = function ( grunt ) {
33 grunt . initConfig ( {
44 pkg : grunt . file . readJSON ( 'package.json' ) ,
5+ clean : {
6+ all : [ 'build' , 'test/ui/*.html.json' ]
7+ } ,
58 jasmine : {
69 src : [
710 'node_modules/rasterizehtml/dist/rasterizeHTML.allinone.js' ,
@@ -243,6 +246,7 @@ module.exports = function (grunt) {
243246 grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
244247 grunt . loadNpmTasks ( 'grunt-contrib-cssmin' ) ;
245248 grunt . loadNpmTasks ( 'grunt-contrib-csslint' ) ;
249+ grunt . loadNpmTasks ( 'grunt-contrib-clean' ) ;
246250 grunt . loadNpmTasks ( 'grunt-shell' ) ;
247251
248252 grunt . registerTask ( 'test' , [
@@ -252,11 +256,15 @@ module.exports = function (grunt) {
252256 'shell:runPhantomTests'
253257 ] ) ;
254258
255- grunt . registerTask ( 'default' , [
256- 'test' ,
259+ grunt . registerTask ( 'build' , [
257260 'concat' ,
258261 'uglify' ,
259262 'cssmin'
260263 ] ) ;
261264
265+ grunt . registerTask ( 'default' , [
266+ 'test' ,
267+ 'build'
268+ ] ) ;
269+
262270} ;
Original file line number Diff line number Diff line change 3737 "grunt-shell" : " ~0.6.1" ,
3838 "jasmine-core" : " ~2.0.0" ,
3939 "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"
4142 },
4243 "scripts" : {
4344 "test" : " bash go --verbose"
You can’t perform that action at this time.
0 commit comments