create-chess2go
v0.2.0
Published
Create a React, Vite, TypeScript, Chessground, and chess.js starter project.
Maintainers
Readme
create-chess2go
Create a React, Vite, TypeScript, Chessground, and chess.js starter project.
npm create chess2go@latest my-appThe generated app starts with a small puzzle page instead of Vite's counter demo. Chessground renders the board, and chess.js validates legal moves.
Features
- React 19, Vite 8, and TypeScript 6
- Chessground 9 board integration
- chess.js 1 move validation
- Optional Tailwind CSS
- Brown, blue, and green board themes
- Optional Stockfish WASM engine panel
- Interactive
@clack/promptscreation flow
Local Development
Install this creator locally:
npm install
npm linkCreate a test app:
npm create chess2go my-app
cd my-app
npm run devYou can also run the executable directly:
node bin/create-chess2go.js my-appScriptable options are available for quick testing:
node bin/create-chess2go.js my-app --tailwind --board brown --engine stockfish --no-installPublishing
Publish this package to npm as create-chess2go.
npm publishAfter publishing, npm maps:
npm create chess2go@latest my-appto the create-chess2go package.
Generated App Commands
npm install
npm run dev
npm run build
npm run preview