Commit fbd41bc2 authored by Nikolay Gromov's avatar Nikolay Gromov

создание блоков автоматом

parent 17eb35d2
...@@ -18,6 +18,15 @@ if(blockName) { ...@@ -18,6 +18,15 @@ if(blockName) {
console.error('---------- Отмена операции: ' + err); console.error('---------- Отмена операции: ' + err);
} }
else { else {
let dirImagesPath = dirPath + 'img';
// mkdirp(dirImagesPath, function(err){
// if(err) {
// console.error('---------- Папка для изображений не создана: ' + err);
// }
// else {
// console.error('---------- Папка для изображений создана: ' + dirImagesPath);
// }
// });
extensions.forEach(function(extention){ extensions.forEach(function(extention){
let filePath = dirPath + blockName + '.' + extention; let filePath = dirPath + blockName + '.' + extention;
let fileContent = ''; let fileContent = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment