A CLI tool to create projects with ease.
npm install create-leeais-buildernpx:
bash
npx create-leeais-builder@latest
`
Or install it globally:
`bash
npm install -g create-leeais-builder
`
Usage
$3
Simply run the command without arguments to start the interactive wizard:
`bash
create-leeais-builder
`
You will be prompted for:
1. Project Name: The name of your new folder.
2. Template: Choose the tech stack (React, etc.).
3. Package Manager: npm, yarn, pnpm, or bun.
4. Install Dependencies: Whether to run install automatically.
$3
You can also bypass prompts by providing arguments:
`bash
create-leeais-builder [options]
`
#### Options
- -t, --template : Specify template (react, react-native, next, nest, node).
- --install: Automatically install dependencies.
- --no-install: Skip dependency installation.
- --pm : Specify package manager (npm, yarn, pnpm, bun).
- -V, --version: Output the version number.
- -h, --help: Display help for command.
$3
Create a React app named my-dream-app using pnpm and install dependencies:
`bash
create-leeais-builder my-dream-app --template react --pm pnpm --install
`
Project Structure
The generated project will have a standard structure based on the selected template.
Git Integration
The generated project comes with Husky configured for git hooks (pre-commit, commit-msg, etc.).
Since the CLI does not automatically initialize a git repository, you should run the following commands to set up git and hooks:
`bash
git init
npm run prepare
`
_Note: If you use a different package manager, run yarn prepare, pnpm prepare, or bun run prepare` accordingly._