crex
Advanced tools
Comparing version 1.7.0 to 1.7.2
@@ -13,2 +13,3 @@ #!/usr/bin/env node | ||
var auth = {}; | ||
var versionsUpdated = {}; | ||
@@ -112,15 +113,9 @@ try { | ||
if (program.bump) { | ||
spinner.text = 'Bumping version...'; | ||
const info = bump(process.cwd(), program.bump); | ||
console.log(); | ||
Object.keys(info).forEach((theme) => { | ||
console.log(util.format('Theme %s version bumped to %s', chalk.green(info[theme].title.toLowerCase()), chalk.green(info[theme].version))); | ||
}); | ||
} | ||
program.compress.forEach((folder) => { | ||
const path = folder.replace(/^\/+/g, ''); | ||
spinner.text = 'Compressing package...'; | ||
if (program.bump) { | ||
versionsUpdated = Object.assign({}, versionsUpdated, bump(path, program.bump)); | ||
} | ||
program.compress.forEach((folder) => { | ||
const path = folder.replace(/^\/+/g, ''); | ||
zip.glob(path + '/**/*', { | ||
@@ -132,2 +127,4 @@ dot: true, | ||
spinner.text = 'Compressing package...'; | ||
zip.finalize(); | ||
@@ -185,3 +182,5 @@ } else { | ||
const color = (theme.themeAction.toLowerCase() === 'changed') ? chalk.green : chalk.grey; | ||
console.log(util.format(' %s %s', theme.themePath + ':',' ' + color(theme.themeAction.toLowerCase()))); | ||
const version = versionsUpdated[theme.themePath.substring(1)]; | ||
const versionInfo = (version && version.old !== version.new) ? util.format('(version %s ➔ %s)', version.old, version.new) : ''; | ||
console.log(util.format(' %s %s %s', theme.themePath + ':',' ' + color(theme.themeAction.toLowerCase()), chalk.blue(versionInfo))); | ||
}); | ||
@@ -188,0 +187,0 @@ |
{ | ||
"name": "crex", | ||
"version": "1.7.0", | ||
"version": "1.7.2", | ||
"description": "Creative Exchange SDK for Javascript", | ||
@@ -62,5 +62,5 @@ "author": "Mateusz Luczak <mateusz.luczak@outlook.com>", | ||
"superagent-proxy": "^1.0.2", | ||
"theme-bump": "^1.0.1", | ||
"theme-bump": "^1.2.3", | ||
"yazl": "^2.4.2" | ||
} | ||
} |
2078726
48240
Updatedtheme-bump@^1.2.3