JS generation + embark.json configuration update

This commit is contained in:
Richard Ramos 2018-05-10 12:16:13 -04:00 committed by Pascal Precht
parent 3d9dc2abe9
commit 1dc513cdec
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 1 additions and 13 deletions

View File

@ -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);

View File

@ -1,12 +0,0 @@
<!doctype html>
<html lang="en" dir="ltr">
<head>
<title>{{title}}</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
</body>
</html>