Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var archive = archiver('zip');
- var output = fs.createWriteStream(projectName + '.zip');
- archive.pipe(output);
- archive.on('error', function(err) {
- throw err;
- });
- output.on('close', function() {
- console.log('Package complete!');
- });
- archive.bulk([
- {expand: true, cwd: projectPath, src:['**/*'], data: {mode: 0755}}
- ]).finalize();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement