create-dapp-se2
v0.0.5
Published
Create SE-2 dapp with ease
Downloads
366
Maintainers
Readme
🏗️ create-dapp-se2 :
Scaffold a new Scaffold-ETH 2 project.
yarn create dapp-se2
You can also pass flags to skip prompts.
yarn create dapp-se2 my-se2-dapp --template se-2-hardhat
# or
yarn create dapp-se2 my-se2-dapp --yes
Understanding the structure :
src/cli.ts
is the entry point for the cli.
src/main.ts
defines the task using listr and executes them.
src/tasks
holds each task logic for example one of the task in src/main.ts
is "Initialize git repo" and the logic for it is present at src/tasks/init-git-repo
src/utils
holds utility / helpers function like parsing cli args, checking for correct template name, showing welcome and outro messages etc.
src/types.ts
holds all the type
Trying out locally :
Clone and get into working directory :
git clone https://github.com/technophile-04/create-dapp-se2.git
cd create-dapp-se2
Linking package locally and running watch mode:
# Make sure you are in create-dapp-se2 directory
yarn link
# This will watch and compile as you edit files
yarn dev
Testing :
# In new terminal
cd ..
mkdir test-dapp-se2
# Running this will execute the local bin file
create-dapp-se2