mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-10-16 07:25:43 -04:00
- Replace per-framework template files (`eslint.config.next.mjs`, `eslint.config.tanstack.mjs`) with a single `eslint.config.mjs` that branches via Handlebars `{{#if peers.framework}}` conditionals; add `handlebars` as a direct dependency to `@stanza/registry`, `apps/cli`, and `apps/web`
- Extend the template render context with a `peers: Partial<Record<CategoryId, string>>` map so any template can inspect the active framework, auth provider, etc.; thread it through `buildRenderContext`, `synthesizeTemplates`, the CLI `codemod-runner`, and the web `getBuilderState` server function
- Extract and export `activePeerIds(manifest, appId?)` from `@stanza/registry` to derive the peer map from a manifest (app-scoped for `home: app` categories); add `selectedPeerIds(selections)` in `apps/web/src/lib/selection.ts` as the URL-params-derived equivalent
- Add integration tests verifying framework-conditional eslint-prettier output for `default`, `next`, and `tanstack-start` adapters; expand resolver tests for `activePeerIds` app-scoping and for modules that declare both a `default` adapter and a framework-specific override
67 lines
1.4 KiB
JSON
67 lines
1.4 KiB
JSON
{
|
|
"name": "stanza-cli",
|
|
"version": "0.1.0",
|
|
"description": "Modular monorepo template CLI — shadcn for stacks.",
|
|
"keywords": [
|
|
"boilerplate",
|
|
"cli",
|
|
"monorepo",
|
|
"scaffold",
|
|
"shadcn",
|
|
"template"
|
|
],
|
|
"homepage": "https://stanza.tools",
|
|
"bugs": "https://github.com/jakejarvis/stanza/issues",
|
|
"license": "MIT",
|
|
"author": "Jake Jarvis <jake@jarv.is>",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jakejarvis/stanza.git",
|
|
"directory": "apps/cli"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"bin": {
|
|
"stanza": "./dist/bin.mjs"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"default": "./dist/index.mjs"
|
|
}
|
|
},
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts"
|
|
},
|
|
"scripts": {
|
|
"build": "vp pack"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.4.0",
|
|
"citty": "^0.2.2",
|
|
"handlebars": "^4.7.9",
|
|
"picocolors": "^1.1.1",
|
|
"semver": "^7.8.1",
|
|
"ts-morph": "^28.0.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@stanza/codemods": "workspace:*",
|
|
"@stanza/registry": "workspace:*",
|
|
"@types/node": "^25.9.1",
|
|
"@types/semver": "^7.7.1",
|
|
"typescript": "^6.0.3",
|
|
"vite-plus": "catalog:",
|
|
"vitest": "catalog:"
|
|
}
|
|
}
|