diff --git a/README.md b/README.md index a57287c..af32bde 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,4 @@ $ conda install cookiecutter ### To start a new project, run: ------------ - cookiecutter -c v1 https://github.com/jaehunkim/cookiecutter-eth-app + cookiecutter -c v1.0.0 https://github.com/jaehunkim/cookiecutter-eth-app diff --git a/{{ cookiecutter.repo_name }}/.vscode/settings.json b/{{ cookiecutter.repo_name }}/.vscode/settings.json new file mode 100644 index 0000000..596cc97 --- /dev/null +++ b/{{ cookiecutter.repo_name }}/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "eslint.workingDirectories": ["ui", "contracts"] +} diff --git a/{{ cookiecutter.repo_name }}/contracts/src/index.ts b/{{ cookiecutter.repo_name }}/contracts/src/index.ts new file mode 100644 index 0000000..d71feef --- /dev/null +++ b/{{ cookiecutter.repo_name }}/contracts/src/index.ts @@ -0,0 +1 @@ +export * from "../typechain"; diff --git a/{{ cookiecutter.repo_name }}/contracts/tsconfig.json b/{{ cookiecutter.repo_name }}/contracts/tsconfig.json index feae8cd..f2b8ca4 100644 --- a/{{ cookiecutter.repo_name }}/contracts/tsconfig.json +++ b/{{ cookiecutter.repo_name }}/contracts/tsconfig.json @@ -9,6 +9,6 @@ "skipLibCheck": true, "rootDir": "./" }, - "include": ["./scripts", "./test", "./typechain"], + "include": ["./scripts", "./test", "./typechain", "./src"], "files": ["./hardhat.config.ts"] } diff --git a/{{ cookiecutter.repo_name }}/ui/src/App.tsx b/{{ cookiecutter.repo_name }}/ui/src/App.tsx index a53698a..c5a53a1 100644 --- a/{{ cookiecutter.repo_name }}/ui/src/App.tsx +++ b/{{ cookiecutter.repo_name }}/ui/src/App.tsx @@ -1,6 +1,7 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; +import { Greeter__factory } from "contracts"; function App() { return (