crex
Advanced tools
Comparing version 1.5.2 to 1.6.0
@@ -52,2 +52,3 @@ #!/usr/bin/env node | ||
.option('-c, --compress <directories>', 'specify directories to be compressed', list) | ||
.option('-o, --omit <globs>', 'specify globs to be ommited when creating zip', list) | ||
.option('-i, --inspect', 'inspect package') | ||
@@ -68,2 +69,4 @@ .option('-e, --env <name>', 'specify environment from auth.json') | ||
var creds = program.env ? auth[program.env] : auth; | ||
var omit = program.omit ? program.omit : '**/node_modules/**'; | ||
if (typeof creds === 'undefined') { | ||
@@ -111,3 +114,4 @@ console.log(chalk.red(util.format('No such environment as "%s" in Auth file', program.env))); | ||
zip.glob(path + '/**/*', { | ||
ignore: '**/node_modules/**' | ||
dot: true, | ||
ignore: omit | ||
}); | ||
@@ -114,0 +118,0 @@ }); |
{ | ||
"name": "crex", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"description": "Creative Exchange SDK for Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Mateusz Luczak <mateusz.luczak@outlook.com>", |
2076823
48196