diff --git a/bemy.js b/bemy.js index b920f58..5409059 100644 --- a/bemy.js +++ b/bemy.js @@ -118,6 +118,8 @@ function rename(nodePath, originNode){ fs.writeFileSync(newChildPath, file); } + + if (config.logging === true) console.log('Renamed:\n' + newChildPath + '\n to \n' + currentChildPath); } else { rename(newChildPath, originNode); } @@ -311,6 +313,8 @@ function createFile(file, type, trg, modVal, cursorPos){ if (!fs.existsSync(p)) { fs.writeFileSync(p, file); + if (config.logging === true) console.log('\nCreated:\n' + p); + if (options.g) gitAddTrg(trg, p); if (options.o) { diff --git a/config.json b/config.json index b41a2a0..0ecb084 100644 --- a/config.json +++ b/config.json @@ -41,5 +41,6 @@ }, "deps_task": { "files": [ "css" ] - } + }, + "logging": false } diff --git a/package.json b/package.json index 1cf553a..7f9e191 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "type": "git", "url": "https://github.com/f0rmat1k/bemy.git" }, - "version": "2.1.4", + "version": "2.2.0", "keywords": [ "bem", "BEM Tools"