create-dapp-se2

0.0.5 • Public • Published

🏗️ 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

Stack used :

  • Rollup for bundling
  • arg for parsing command line arguments
  • chalk for terminal string styling
  • inquirer for interactive command line user interface
  • listr for showing terminal task list
  • execa for executing terminal commands
  • pkg-install for installing packages

Package Sidebar

Install

npm i create-dapp-se2

Weekly Downloads

6

Version

0.0.5

License

MIT

Unpacked Size

6.35 MB

Total Files

227

Last publish

Collaborators

  • shivbhonde.eth