"Scaffold the Griot web app with Vite 5 + React 18 + TypeScript and keep it healthy: npm scripts, env, build, lint, tests."
Install
npx skillscat add donartkins/griot/vite-react-setup Install via the SkillsCat registry.
SKILL.md
Vite + React Setup Skill
Scaffold
npm create vite@latest web -- --template react-ts
cd web && nvm use # .nvmrc -> 20Env
VITE_API_URL(dev:http://localhost:PORT, prod: deployed API base).- Never prefix other envs with
VITE_unless public.
Quality
- Scripts:
lint,typecheck,test(Jest+RTL),build,preview. npm run buildmust pass withtsc -b;dist/is what Vercel serves.- Dev proxy:
/api+/graphql-> backend invite.config.ts.
Rules
- No
any; strict TS. Feature folders own their hooks/types/components. - No data-crawling into components beyond the registry.