Skip to content

Commit 917f351

Browse files
nschonnijzaefferer
authored andcommitted
Switch zipping package for Grunt release task. Closes jquery-validationgh-768
grunt-zipstream isn't supported on Node 0.10 and grunt-contrib-compress is the recommended replacement
1 parent 714cc6a commit 917f351

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Gruntfile.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ grunt.initConfig({
3030
}
3131
}
3232
},
33-
zip: {
33+
compress: {
3434
dist: {
35+
options: {
36+
mode: 'zip',
37+
level: 1,
38+
archive: 'dist/<%= pkg.name %>-<%= pkg.version %>.zip',
39+
pretty: true
40+
},
3541
src: [
3642
'dist/*.js',
3743
'README.md',
@@ -42,13 +48,7 @@ grunt.initConfig({
4248
'lib/**/*.*',
4349
'src/localization/**/*.*',
4450
'test/**/*.*'
45-
],
46-
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.zip'
47-
},
48-
options: {
49-
zlib: {
50-
level: 1
51-
}
51+
]
5252
}
5353
},
5454
qunit: {
@@ -129,10 +129,10 @@ grunt.loadNpmTasks('grunt-contrib-jshint');
129129
grunt.loadNpmTasks('grunt-contrib-qunit');
130130
grunt.loadNpmTasks('grunt-contrib-uglify');
131131
grunt.loadNpmTasks('grunt-contrib-concat');
132-
grunt.loadNpmTasks('grunt-zipstream');
132+
grunt.loadNpmTasks('grunt-contrib-compress');
133133
grunt.loadNpmTasks('grunt-contrib-watch');
134134

135135
grunt.registerTask('default', ['concat', 'jshint', 'qunit']);
136-
grunt.registerTask('release', ['default', 'uglify', 'zip']);
136+
grunt.registerTask('release', ['default', 'uglify', 'compress']);
137137

138138
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"grunt-contrib-jshint": "~0.4.3",
3333
"grunt-contrib-uglify": "~0.1.1",
3434
"grunt-contrib-concat": "~0.1.3",
35-
"grunt-zipstream": "~0.2.2",
35+
"grunt-contrib-compress": "~0.5.2",
3636
"grunt-contrib-watch": "~0.3.1"
3737
},
3838
"keywords": [

0 commit comments

Comments
 (0)