create-what
v0.5.4
Published
Scaffold a new What Framework project
Maintainers
Readme
create-what
Scaffold a new What Framework project with one command.
Usage
npx create-what my-app
cd my-app
npm install
npm run devOr with Bun:
bun create what@latest my-appSkip prompts
npx create-what my-app --yesOptions
The scaffolder prompts you for:
- Project name -- directory to create
- React compat -- include
what-reactfor using React libraries (zustand, TanStack Query, etc.) - CSS approach -- vanilla CSS, Tailwind CSS v4, or StyleX
What You Get
my-app/
src/
main.jsx # App entry point with counter example
styles.css # Styles (vanilla, Tailwind, or StyleX)
public/
favicon.svg # What Framework logo
index.html # HTML entry
vite.config.js # Pre-configured Vite (What compiler or React compat)
tsconfig.json # TypeScript config
package.json
.gitignoreWith React compat enabled
The scaffold includes a working zustand demo showing a React state library running on What's signal engine.
With Tailwind CSS
Tailwind v4 is configured via @tailwindcss/vite. The counter example uses utility classes.
With StyleX
StyleX is configured via vite-plugin-stylex. The counter example uses stylex.create() and stylex.props().
Scripts
| Script | Command |
|---|---|
| npm run dev | Start Vite dev server |
| npm run build | Production build |
| npm run preview | Preview production build |
Links
License
MIT
