chore: archive init-sveltekit-project change and sync delta specs
This commit is contained in:
parent
ef66d79edf
commit
8c59297f82
@ -0,0 +1,26 @@
|
|||||||
|
## 1. SvelteKit Project Scaffolding
|
||||||
|
|
||||||
|
- [x] 1.1 Run `npx sv create --types ts --template minimal` to scaffold the project
|
||||||
|
- [x] 1.2 Install project dependencies with `npm install`
|
||||||
|
- [x] 1.3 Verify `svelte.config.js` contains adapter-auto configuration
|
||||||
|
- [x] 1.4 Verify `vite.config.js` includes the sveltekit plugin
|
||||||
|
- [x] 1.5 Verify `tsconfig.json` exists and extends `.svelte-kit/tsconfig.json`
|
||||||
|
- [x] 1.6 Verify standard directory structure: `src/routes/`, `src/lib/`, `static/` exist
|
||||||
|
- [x] 1.7 Verify `src/app.html` contains SvelteKit template placeholders (`%sveltekit.head%`, `%sveltekit.body%`)
|
||||||
|
|
||||||
|
## 2. Git Repository Setup
|
||||||
|
|
||||||
|
- [x] 2.1 Run `git init` in the project root directory
|
||||||
|
- [x] 2.2 Create and checkout `main` branch with `git checkout -b main`
|
||||||
|
- [x] 2.3 Create `README.md` file with project description
|
||||||
|
- [x] 2.4 Stage README with `git add README.md`
|
||||||
|
- [x] 2.5 Create initial commit with `git commit -m "first commit"`
|
||||||
|
- [x] 2.6 Add remote origin (via SSH: `ssh://git@veit-fraenzer.de:2222/veitR/PokeR.git`)
|
||||||
|
- [x] 2.7 Push to remote with `git push -u origin main`
|
||||||
|
|
||||||
|
## 3. Verification
|
||||||
|
|
||||||
|
- [x] 3.1 Start dev server with `npm run dev` and confirm it runs on localhost:5173
|
||||||
|
- [x] 3.2 Verify `git log` shows the initial commit
|
||||||
|
- [x] 3.3 Verify `git remote -v` shows correct origin URL
|
||||||
|
- [x] 3.4 Verify `npx sv check` passes without errors (0 errors, 1 minor warning)
|
||||||
@ -1,26 +0,0 @@
|
|||||||
## 1. SvelteKit Project Scaffolding
|
|
||||||
|
|
||||||
- [x] 1.1 Run `npx sv create --types ts --template minimal` to scaffold the project
|
|
||||||
- [x] 1.2 Install project dependencies with `npm install`
|
|
||||||
- [x] 1.3 Verify `svelte.config.js` contains adapter-auto configuration
|
|
||||||
- [x] 1.4 Verify `vite.config.js` includes the sveltekit plugin
|
|
||||||
- [x] 1.5 Verify `tsconfig.json` exists and extends `.svelte-kit/tsconfig.json`
|
|
||||||
- [x] 1.6 Verify standard directory structure: `src/routes/`, `src/lib/`, `static/` exist
|
|
||||||
- [x] 1.7 Verify `src/app.html` contains SvelteKit template placeholders (`%sveltekit.head%`, `%sveltekit.body%`)
|
|
||||||
|
|
||||||
## 2. Git Repository Setup
|
|
||||||
|
|
||||||
- [ ] 2.1 Run `git init` in the project root directory
|
|
||||||
- [ ] 2.2 Create and checkout `main` branch with `git checkout -b main`
|
|
||||||
- [ ] 2.3 Create `README.md` file 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 with `git remote add origin https://git.veit-fraenzer.de/veitR/PokeR.git`
|
|
||||||
- [ ] 2.7 Push to remote with `git push -u origin main`
|
|
||||||
|
|
||||||
## 3. Verification
|
|
||||||
|
|
||||||
- [ ] 3.1 Start dev server with `npm run dev` and confirm it runs on localhost:5173
|
|
||||||
- [ ] 3.2 Verify `git log` shows the initial commit
|
|
||||||
- [ ] 3.3 Verify `git remote -v` shows correct origin URL
|
|
||||||
- [ ] 3.4 Verify `npx sv check` passes without errors
|
|
||||||
40
openspec/specs/git-repository/spec.md
Normal file
40
openspec/specs/git-repository/spec.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Git Repository
|
||||||
|
|
||||||
|
**Purpose**: Initialize and configure a Git repository for version control of the project.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
### Requirement: Git repository initialization
|
||||||
|
The system SHALL initialize a Git repository in the project root with `git init`.
|
||||||
|
|
||||||
|
#### Scenario: Repository is created
|
||||||
|
- **WHEN** `git init` is executed in the project directory
|
||||||
|
- **THEN** a `.git` directory exists and `git status` reports a clean working tree
|
||||||
|
|
||||||
|
### Requirement: Main branch creation
|
||||||
|
The system SHALL create and checkout a `main` branch as the default branch.
|
||||||
|
|
||||||
|
#### Scenario: Main branch is active
|
||||||
|
- **WHEN** `git checkout -b main` is executed
|
||||||
|
- **THEN** `git branch` shows `main` as the current branch
|
||||||
|
|
||||||
|
### Requirement: Initial commit with README
|
||||||
|
The system SHALL create a `README.md` file, stage it, and create an initial commit.
|
||||||
|
|
||||||
|
#### Scenario: First commit exists
|
||||||
|
- **WHEN** `README.md` is created, staged with `git add`, and committed with `git commit -m "first commit"`
|
||||||
|
- **THEN** `git log` shows one commit with the message "first commit"
|
||||||
|
|
||||||
|
### Requirement: Remote repository connection
|
||||||
|
The system SHALL add a Git remote pointing to the specified Gitea repository URL.
|
||||||
|
|
||||||
|
#### Scenario: Remote is configured
|
||||||
|
- **WHEN** `git remote add origin https://git.veit-fraenzer.de/veitR/PokeR.git` is executed
|
||||||
|
- **THEN** `git remote -v` shows the origin remote with the correct URL for both fetch and push
|
||||||
|
|
||||||
|
### Requirement: Push to remote
|
||||||
|
The system SHALL push the main branch to the remote repository and set upstream tracking.
|
||||||
|
|
||||||
|
#### Scenario: Initial push succeeds
|
||||||
|
- **WHEN** `git push -u origin main` is executed with valid credentials
|
||||||
|
- **THEN** the local main branch tracks the remote origin/main and all commits are pushed
|
||||||
40
openspec/specs/sveltekit-project/spec.md
Normal file
40
openspec/specs/sveltekit-project/spec.md
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# SvelteKit Project
|
||||||
|
|
||||||
|
**Purpose**: Scaffold a SvelteKit project with TypeScript configuration and standard project structure.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
### Requirement: Project scaffolding with SvelteKit template
|
||||||
|
The system SHALL create a SvelteKit project using `npx sv create` with the minimal template and TypeScript enabled.
|
||||||
|
|
||||||
|
#### Scenario: Project creation completes successfully
|
||||||
|
- **WHEN** `npx sv create` is executed with `--types ts --template minimal` flags
|
||||||
|
- **THEN** a SvelteKit project structure is generated with all required configuration files
|
||||||
|
|
||||||
|
### Requirement: TypeScript configuration
|
||||||
|
The system SHALL configure TypeScript as the primary language for both `.ts` files and `lang="ts"` in `.svelte` components.
|
||||||
|
|
||||||
|
#### Scenario: TypeScript files are generated
|
||||||
|
- **WHEN** the project is created with `--types ts` option
|
||||||
|
- **THEN** `tsconfig.json` exists and extends `.svelte-kit/tsconfig.json`
|
||||||
|
|
||||||
|
### Requirement: Standard configuration files
|
||||||
|
The system SHALL generate all standard SvelteKit configuration files including `svelte.config.js`, `vite.config.js`, and `package.json`.
|
||||||
|
|
||||||
|
#### Scenario: Configuration files exist
|
||||||
|
- **WHEN** the project scaffolding completes
|
||||||
|
- **THEN** `svelte.config.js` with adapter-auto, `vite.config.js` with sveltekit plugin, and `package.json` with required dependencies are present
|
||||||
|
|
||||||
|
### Requirement: Standard project structure
|
||||||
|
The system SHALL create the standard SvelteKit directory structure with `src/routes`, `src/lib`, `static`, and template files.
|
||||||
|
|
||||||
|
#### Scenario: Directory structure is correct
|
||||||
|
- **WHEN** the project scaffolding completes
|
||||||
|
- **THEN** directories `src/routes/`, `src/lib/`, and `static/` exist, and `src/app.html` contains SvelteKit template placeholders
|
||||||
|
|
||||||
|
### Requirement: Development server functionality
|
||||||
|
The system SHALL be able to start a development server using `npm run dev`.
|
||||||
|
|
||||||
|
#### Scenario: Dev server starts successfully
|
||||||
|
- **WHEN** `npm run dev` is executed after dependencies are installed
|
||||||
|
- **THEN** the development server runs on localhost and serves the SvelteKit application
|
||||||
Loading…
x
Reference in New Issue
Block a user