Skip to content

Commit 159e129

Browse files
Merge pull request #101 from Create-Python-App/fix/42-cpa-vs-cna-config
docs: cpa.config.json vs cna.config.json (#42)
2 parents ca88a6a + 3e436a1 commit 159e129

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/cpa-vs-cna-config.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# `cpa.config.json` vs `cna.config.json`
2+
3+
| Concern | CNA | CPA |
4+
|---------|-----|-----|
5+
| Config file | `cna.config.json` | `cpa.config.json` |
6+
| Manifest | `package.json` | `pyproject.toml` |
7+
| Installer | npm/yarn/pnpm/bun | `uv sync` |
8+
| Lint defaults | ESLint | Ruff |
9+
| Custom options | `customOptions[]` | same shape |
10+
11+
See also [cpa-config-schema.md](./cpa-config-schema.md).
12+
13+
## Minimal FastAPI stub example
14+
15+
```json
16+
{
17+
"name": "fastapi-starter",
18+
"customOptions": [
19+
{"key": "projectName", "type": "string", "default": "my-api"}
20+
]
21+
}
22+
```

0 commit comments

Comments
 (0)