You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add SvelteKit, Remix, and Nuxt stack detection #11
When implementing this, consider refactoring detectStack() in src/lib/stacks.ts to read package.json only once and check all JS framework dependencies together.
// Reads package.json for Next.jsif(awaitfileExists("package.json")){constpkg=JSON.parse(awaitreadFile("package.json"));if(deps.next)return"nextjs";}// ... later reads package.json again for Astroif(awaitfileExists("package.json")){constpkg=JSON.parse(awaitreadFile("package.json"));if(deps.astro)return"astro";}
Recommended pattern:
// Read package.json once and check all JS framework depsif(awaitfileExists("package.json")){try{constpkg=JSON.parse(awaitreadFile("package.json"));constdeps={ ...pkg.dependencies, ...pkg.devDependencies};if(deps.next)return"nextjs";if(deps.astro)return"astro";if(deps["@sveltejs/kit"])return"sveltekit";if(deps["@remix-run/react"])return"remix";if(deps.nuxt)return"nuxt";}catch{// Ignore parse errors}}
This reduces file I/O and improves detection performance.
Detection:svelte.config.js, svelte.config.ts, or @sveltejs/kit in package.json
Verification: Unit tests for file detection and package.json dependency detection
Dev URL:http://localhost:5173 (Vite-based)
AC-2: Detect Remix projects ✅
Detection:remix.config.js, remix.config.ts, or @remix-run/react in package.json
Verification: Unit tests for file detection and package.json dependency detection
Dev URL:http://localhost:3000
AC-3: Detect Nuxt projects ✅
Detection:nuxt.config.ts, nuxt.config.js, or nuxt in package.json
Verification: Unit tests for file detection and package.json dependency detection
Dev URL:http://localhost:3000
AC-4: Configure appropriate commands ✅
All frameworks:npm test, npm run build, npm run lint, npm run dev
Verification: Unit tests confirming command configuration
Implementation Steps
Phase
Task
Files
1
Add STACKS entries for sveltekit, remix, nuxt
src/lib/stacks.ts
2
Refactor detectStack() to read package.json once (per issue comment)
Given: Project with svelte.config.js, svelte.config.ts, OR @sveltejs/kit in package.json
When:detectStack() called
Then: Returns "sveltekit"
Dev URL:http://localhost:5173 (Vite-based)
AC-2: Detect Remix projects
Verification: Unit Test
Given: Project with remix.config.js, remix.config.ts, OR @remix-run/react in package.json
When:detectStack() called
Then: Returns "remix"
Dev URL:http://localhost:5173 (Vite-based for v2+)
AC-3: Detect Nuxt projects
Verification: Unit Test
Given: Project with nuxt.config.ts, nuxt.config.js, OR nuxt in package.json
When:detectStack() called
Then: Returns "nuxt"
Dev URL:http://localhost:3000
Activity
admarble commentedon Jan 8, 2026
Implementation Note: Optimize package.json Reading
When implementing this, consider refactoring
detectStack()insrc/lib/stacks.tsto readpackage.jsononly once and check all JS framework dependencies together.Current pattern (after Astro was added in #5):
Recommended pattern:
This reduces file I/O and improves detection performance.
admarble commentedon Jan 9, 2026
📋 Implementation Plan (Phase 1: /spec)
Acceptance Criteria with Verification
AC-1: Detect SvelteKit projects
Verification: Unit Test
svelte.config.js/.tsOR@sveltejs/kitin package.jsondetectStack()called"sveltekit"AC-2: Detect Remix projects
Verification: Unit Test
remix.config.js/.tsOR@remix-run/reactin package.jsondetectStack()called"remix"AC-3: Detect Nuxt projects
Verification: Unit Test
nuxt.config.ts/.jsORnuxtin package.jsondetectStack()called"nuxt"AC-4: Configure appropriate commands
Verification: Unit Test
http://localhost:5173http://localhost:5173http://localhost:3000Implementation Plan
Phase 1: Add Stack Configurations
sveltekitconfig toSTACKSinsrc/lib/stacks.tsremixconfig toSTACKSnuxtconfig toSTACKSPhase 2: Refactor detectStack() (per @admarble comment)
4. Refactor to read
package.jsononly once and check all JS deps together5. Maintain priority: Next.js > Astro > SvelteKit > Remix > Nuxt > Rust > Go > Python
Phase 3: Add Unit Tests
6. Add config tests for each new stack
7. Add detection tests (file + package.json)
8. Add priority tests
Assumptions to Validate
@sveltejs/kit(notsvelte) as dependency marker@remix-run/reactas canonical dependencynuxtpackage nameConflict Analysis
In-flight: #6 (bun package manager) may touch
stacks.tsResolution: Orthogonal concerns - proceed, rebase if needed
Recommended Workflow
Phases:
exec → qaQuality Loop: disabled
Reasoning: Clear patterns exist (Astro implementation), good test coverage, no UI changes
🤖 Generated with Claude Code via
/specadmarble commentedon Jan 9, 2026
📋 Implementation Plan
Acceptance Criteria with Verification
AC-1: Detect SvelteKit projects ✅
svelte.config.js,svelte.config.ts, or@sveltejs/kitin package.jsonhttp://localhost:5173(Vite-based)AC-2: Detect Remix projects ✅
remix.config.js,remix.config.ts, or@remix-run/reactin package.jsonhttp://localhost:3000AC-3: Detect Nuxt projects ✅
nuxt.config.ts,nuxt.config.js, ornuxtin package.jsonhttp://localhost:3000AC-4: Configure appropriate commands ✅
npm test,npm run build,npm run lint,npm run devImplementation Steps
src/lib/stacks.tsdetectStack()to read package.json once (per issue comment)src/lib/stacks.tssrc/commands/init.tssrc/lib/stacks.test.tsDetection Priority Order
Next.js > Astro > SvelteKit > Remix > Nuxt > Rust > Go > Python
Additional Note
Also adding Astro to the
init.tschoices list (currently missing despite being in STACKS).Effort Estimate
Plan generated by
/specworkflowadmarble commentedon Jan 10, 2026
📋 Implementation Plan (Phase 1: /spec)
Acceptance Criteria with Verification
AC-1: Detect SvelteKit projects
Verification: Unit Test
svelte.config.js,svelte.config.ts, OR@sveltejs/kitin package.jsondetectStack()called"sveltekit"http://localhost:5173(Vite-based)AC-2: Detect Remix projects
Verification: Unit Test
remix.config.js,remix.config.ts, OR@remix-run/reactin package.jsondetectStack()called"remix"http://localhost:5173(Vite-based for v2+)AC-3: Detect Nuxt projects
Verification: Unit Test
nuxt.config.ts,nuxt.config.js, ORnuxtin package.jsondetectStack()called"nuxt"http://localhost:3000AC-4: Configure appropriate commands
Verification: Unit Test
http://localhost:5173http://localhost:5173http://localhost:3000Implementation Plan
Phase 1: Add Stack Configurations
sveltekit,remix,nuxtconfigs toSTACKSinsrc/lib/stacks.tsPhase 2: Refactor detectStack() (per owner comment)
2. Consolidate package.json reading - read once, check all JS framework deps together
3. Priority order: Next.js > Astro > SvelteKit > Remix > Nuxt > Rust > Go > Python
Phase 3: Update Interactive Init
4. Add SvelteKit, Remix, Nuxt, Astro to choices in
src/commands/init.tsPhase 4: Add Unit Tests
5. Add config tests for each new stack
6. Add detection tests (file + package.json variants)
7. Add priority tests
Phase 5: Verification
8. Run
npm test,npm run lint,npm run buildConflict Analysis
stacks.tsAssumptions Validated
@sveltejs/kitas canonical dependency@remix-run/reactas canonical dependencynuxtpackage nameRecommended Workflow
Phases:
exec → qaQuality Loop: disabled
Reasoning: Clear patterns from Astro implementation, good test coverage, no UI changes
🤖 Generated with Claude Code via
/specfeat(#11): Add SvelteKit, Remix, and Nuxt stack detection
admarble commentedon Jan 10, 2026
🚀 Implementation Complete (Phase 2: /exec)
AC Coverage Summary
Files Changed
src/lib/stacks.ts- Added 3 new stack configs, refactoreddetectStack()to read package.json oncesrc/lib/stacks.test.ts- Added 35 new tests for config, detection, and prioritysrc/commands/init.ts- Added Astro, SvelteKit, Remix, Nuxt to interactive choicesDev URLs Configured
Detection Priority Order
Next.js > Astro > SvelteKit > Remix > Nuxt > Rust > Go > Python
Test Results
PR Status
Created: #45
🤖 Generated with Claude Code via
/execadmarble commentedon Jan 10, 2026
🔍 QA Review (Phase 3)
AC Coverage
svelte.config.js,svelte.config.ts) + package.json (@sveltejs/kit) implemented with 4 unit testsremix.config.js,remix.config.ts) + package.json (@remix-run/react) implemented with 4 unit testsnuxt.config.ts,nuxt.config.js) + package.json (nuxt) implemented with 4 unit testsnpm run build/dev/test/lintcommands with correct devUrls (SvelteKit/Remix: 5173, Nuxt: 3000)Coverage: 4/4 AC items fully met
Quality Metrics
any)Code Review
Strengths:
detectStack()now readspackage.jsononly once and checks all JS framework deps together (per owner comment)Issues:
Verdict: ✅ READY_FOR_MERGE
The implementation fully satisfies all acceptance criteria with high code quality. All 188 tests pass and build succeeds.
Next Steps
/docs 11to generate feature documentation before merging🤖 Generated with Claude Code via
/qachore: bump version to 1.2.0
chore(#687): relocate /release what-weve-built version-stamp check po…
feat(#11): Add SvelteKit, Remix, and Nuxt stack detection
chore(#687): relocate /release what-weve-built version-stamp check po…