You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
353 B
JavaScript

const fs = require('fs');
const archiver = require('archiver');
const output = fs.createWriteStream(__dirname + "/../mooc_node-mod5_quiz_cmd.zip");
const archive = archiver('zip', {
zlib: { level: 9 } // Sets the compression level.
});
archive.pipe(output);
archive.glob('*', {"ignore": ['node_modules', 'tests', 'README.md']});
archive.finalize();