From 1dc513cdeca7b0c5620d705c58323a58af031bd7 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 10 May 2018 12:16:13 -0400 Subject: [PATCH] JS generation + embark.json configuration update --- lib/modules/scaffolding-react/index.js | 2 +- lib/modules/scaffolding-react/templates/index.tpl | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 lib/modules/scaffolding-react/templates/index.tpl diff --git a/lib/modules/scaffolding-react/index.js b/lib/modules/scaffolding-react/index.js index 3457cfc4..29fea6b9 100644 --- a/lib/modules/scaffolding-react/index.js +++ b/lib/modules/scaffolding-react/index.js @@ -52,7 +52,7 @@ class ScaffoldingReact { const filename = contract.className.toLowerCase() + '.' + extension; const filePath = './app/' + filename; if (fs.existsSync(filePath)){ - throw new Error("file '" + filePath + "' already exists"); + // throw new Error("file '" + filePath + "' already exists"); } const templatePath = fs.embarkPath('lib/modules/scaffolding-react/templates/' + templateFilename); diff --git a/lib/modules/scaffolding-react/templates/index.tpl b/lib/modules/scaffolding-react/templates/index.tpl deleted file mode 100644 index 3fffecef..00000000 --- a/lib/modules/scaffolding-react/templates/index.tpl +++ /dev/null @@ -1,12 +0,0 @@ - - - - {{title}} - - - - - - - - \ No newline at end of file