New Web APP CLI

May 30, 2021 · Dung Huynh

Context

Vite is fast, but creating a new app requires additional setup: ESLint, Prettier, Tailwind, Storybook, React Query, React Hook Form. new-web-app CLI provides pre-configured templates so you don't have to manually add these tools.

Usage

npx new-web-app

Options

OptionDescription
-n, --nameFolder name to create
-a, --airbnbAdd ESLint + Prettier with Airbnb style
-t, --tailwindAdd Tailwind CSS
-q, --react-queryAdd React Query
-f, --react-hook-formAdd React Hook Form
-s, --storybookAdd Storybook

Examples

# Full stack with Airbnb style
npx new-web-app -n=react-app -a=yes -q=yes -t=yes

# Long form
npx new-web-app --name=react-app --airbnb=yes --react-query=yes

Demo