Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/hapi 509 base layout #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MaksImKan
Copy link
Contributor

No description provided.

@@ -0,0 +1 @@
REACT_APP_ENVIRONMENT=testnet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output directory shouldn't be commited to the directory. It should be in the root directory .gitignore. This way we can generate arbitrary outputs without messing with the project Git tree.

@@ -0,0 +1,51 @@
// SPDX-License-Identifier: MIT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need the contract source code in the output directory. Please add the contracts directory removal to the generator script after it's done with ABI and typings generation.

@@ -0,0 +1,48 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add package.json and package-lock.json to template directory so we can populate it every time we run the generator.

@@ -0,0 +1,9 @@
import { HardhatUserConfig } from "hardhat/config";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardhat config should be in the root directory of the project, as it's not a part of the output.
Rememeber, output should only contain files we need to deploy to show the interface.

@@ -0,0 +1,43 @@
<!DOCTYPE html>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the contents of public directory to the template.

@@ -0,0 +1,26 @@
import React from 'react';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move the contents of src directory to the template. It should not contain artifacts and contracts. Please copy those as a part of generation script. It's okay if the code in template/src complains about missing ABI.

@@ -0,0 +1,13 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tsconfig.json should be a part of the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants