1.3 KiB
1.3 KiB
1. SvelteKit Project Scaffolding
- 1.1 Run
npx sv create --types ts --template minimalto scaffold the project - 1.2 Install project dependencies with
npm install - 1.3 Verify
svelte.config.jscontains adapter-auto configuration - 1.4 Verify
vite.config.jsincludes the sveltekit plugin - 1.5 Verify
tsconfig.jsonexists and extends.svelte-kit/tsconfig.json - 1.6 Verify standard directory structure:
src/routes/,src/lib/,static/exist - 1.7 Verify
src/app.htmlcontains SvelteKit template placeholders (%sveltekit.head%,%sveltekit.body%)
2. Git Repository Setup
- 2.1 Run
git initin the project root directory - 2.2 Create and checkout
mainbranch withgit checkout -b main - 2.3 Create
README.mdfile with project description - 2.4 Stage README with
git add README.md - 2.5 Create initial commit with
git commit -m "first commit" - 2.6 Add remote origin (via SSH:
ssh://git@veit-fraenzer.de:2222/veitR/PokeR.git) - 2.7 Push to remote with
git push -u origin main
3. Verification
- 3.1 Start dev server with
npm run devand confirm it runs on localhost:5173 - 3.2 Verify
git logshows the initial commit - 3.3 Verify
git remote -vshows correct origin URL - 3.4 Verify
npx sv checkpasses without errors (0 errors, 1 minor warning)