0.0.5 • Published 9 months ago

create-dapp-se2 v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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

9 months ago

0.0.4

9 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago