Skip to content

Commit d317b78

Browse files
committed
Remove Uglify task
No files are currently minified in the project. Fixed typo in "wsh" file building
1 parent abb2741 commit d317b78

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

Gruntfile.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"grunt": "~0.4.1",
3838
"grunt-contrib-jshint": "~0.3.0",
3939
"grunt-contrib-concat": "~0.1.3",
40-
"grunt-contrib-uglify": "~0.2.0",
4140
"grunt-contrib-watch": "~0.3.1",
4241
"yuitest": "~0.7.8"
4342
}

0 commit comments

Comments
 (0)