Skip to content

Commit

Permalink
Merge pull request #81 from dduponchel/grunt-issue-80
Browse files Browse the repository at this point in the history
change the grunt config for the issue #80
  • Loading branch information
dduponchel committed Feb 1, 2014
2 parents 71eb5a1 + 8411a16 commit 7d707a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,19 @@ module.exports = function(grunt) {
},
options: {
standalone: 'JSZip',
ignore:['./lib/nodeBuffer.js','./lib/nodeBufferReader']
ignore:['./lib/nodeBuffer.js','./lib/nodeBufferReader'],
postBundleCB: function(err, src, done) {
var license = require('fs').readFileSync('lib/license_header.js');
done(err, license + src);
}
}
}
},
uglify: {
options: {
report: 'gzip',
mangle: true
mangle: true,
preserveComments: 'some'
},
all: {
src: 'dist/jszip.js',
Expand Down
7 changes: 0 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
'use strict';
/**
JSZip - A Javascript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2012 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
Usage:
zip = new JSZip();
zip.file("hello.txt", "Hello, World!").file("tempfile", "nothing");
Expand Down
8 changes: 8 additions & 0 deletions lib/license_header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*!
JSZip - A Javascript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2012 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
*/

0 comments on commit 7d707a9

Please sign in to comment.