@@ -80,26 +80,17 @@ module.exports = function(grunt) {
8080 ] ,
8181 dest : 'build/<%= pkg.name %>-worker.js'
8282 } ,
83- whs : {
83+ wsh : {
8484 options : {
8585 banner : '<%= banner %>\n' +
8686 //Hack for using the node version of parserlib
8787 'var exports = exports || {};\n'
8888 } ,
8989 src : [
9090 '<%= core_files %>' ,
91- 'src/cli/{common, whs }.js'
91+ 'src/cli/{common, wsh }.js'
9292 ] ,
93- dest : 'build/<%= pkg.name %>-whs.js'
94- }
95- } ,
96- uglify : {
97- options : {
98- banner : '<%= banner %>'
99- } ,
100- dist : {
101- src : '<%= concat.dist.dest %>' ,
102- dest : 'dist/<%= pkg.name %>.min.js'
93+ dest : 'build/<%= pkg.name %>-wsh.js'
10394 }
10495 } ,
10596 jshint : {
@@ -161,12 +152,11 @@ module.exports = function(grunt) {
161152
162153 // These plugins provide necessary tasks.
163154 grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
164- grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
165155 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
166156 grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
167157
168158 // Default task.
169- grunt . registerTask ( 'default' , [ 'test' ] ) ;
159+ grunt . registerTask ( 'default' , [ 'test' , 'uglify' ] ) ;
170160
171161 grunt . registerTask ( 'test' , [ 'jshint' , 'concat' , 'yuitest' ] ) ;
172162
0 commit comments