@@ -80,26 +80,17 @@ module.exports = function(grunt) {
80
80
] ,
81
81
dest : 'build/<%= pkg.name %>-worker.js'
82
82
} ,
83
- whs : {
83
+ wsh : {
84
84
options : {
85
85
banner : '<%= banner %>\n' +
86
86
//Hack for using the node version of parserlib
87
87
'var exports = exports || {};\n'
88
88
} ,
89
89
src : [
90
90
'<%= core_files %>' ,
91
- 'src/cli/{common, whs }.js'
91
+ 'src/cli/{common, wsh }.js'
92
92
] ,
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'
103
94
}
104
95
} ,
105
96
jshint : {
@@ -161,12 +152,11 @@ module.exports = function(grunt) {
161
152
162
153
// These plugins provide necessary tasks.
163
154
grunt . loadNpmTasks ( 'grunt-contrib-concat' ) ;
164
- grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
165
155
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
166
156
grunt . loadNpmTasks ( 'grunt-contrib-watch' ) ;
167
157
168
158
// Default task.
169
- grunt . registerTask ( 'default' , [ 'test' ] ) ;
159
+ grunt . registerTask ( 'default' , [ 'test' , 'uglify' ] ) ;
170
160
171
161
grunt . registerTask ( 'test' , [ 'jshint' , 'concat' , 'yuitest' ] ) ;
172
162
0 commit comments