Skip to content

Commit

Permalink
Fix zip in grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
humphd committed Apr 2, 2014
1 parent a84653b commit 7b8105e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
module.exports = function(grunt) {

grunt.initConfig({
compress: {
main: {
options: {
archive: 'test.zip',
mode: 'zip'
},
files: [
{expand: true, src: ['test/*.*'], dest: './'}
]
}
clean: ['test.zip'],

zip: {
'test.zip': [ 'test/**/*' ]
},

jshint: {
Expand All @@ -19,7 +13,8 @@ module.exports = function(grunt) {
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', ['jshint', 'compress']);
grunt.registerTask('default', ['jshint', 'clean', 'zip']);
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-requirejs": "~0.4.0",
"grunt-contrib-uglify": "~0.1.2",
"grunt-contrib-compress": "~0.4.1",
"grunt-zip": "~0.13.0",
"grunt-contrib-connect": "~0.1.2",
"grunt-contrib-jshint": "~0.7.1"
}
Expand Down
Binary file modified test.zip
Binary file not shown.

0 comments on commit 7b8105e

Please sign in to comment.