Installation
Create a Vite + TypeScript starter using the official helper:
npx create-tscratch-app@latest my-project
cd my-project
npm install
Common commands (from the starter):
npm run dev # start local dev server (default port 5173)
npm run build # produce production bundle in dist/
npm run preview # serve the production build locally
Deployment
Deploying a TScratch-based project to platforms like Vercel is straightforward:
- Push the project to a GitHub repository.
- Create a new project on Vercel and import the repo.
- Configure the build command (typically
npm run build) and the publish directory (dist). - Deploy.
Your project will be available on a public URL after deployment.