create-patties 0.0.10 → 0.0.12-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/package.json +6 -3
  4. package/src/index.ts +349 -137
  5. package/src/prompts.ts +62 -17
  6. package/src/readme.ts +12 -5
  7. package/src/ui.ts +93 -0
  8. package/templates/_backend/app/routes/api/todos.ts +30 -0
  9. package/templates/_claude/.claude/commands/patties-init.md +33 -0
  10. package/templates/_claude/.claude/skills/patties/SKILL.md +104 -0
  11. package/templates/_codex/.codex/rules/patties-patterns.md +105 -0
  12. package/templates/_codex/AGENTS.md +1 -0
  13. package/templates/_container/.dockerignore +7 -0
  14. package/templates/_container/Dockerfile +27 -0
  15. package/templates/_monorepo/packages/README.md +18 -0
  16. package/templates/_shared/patties-patterns.md +105 -0
  17. package/templates/default/README-template.md +85 -71
  18. package/templates/default/app/routes/api/health.ts +8 -0
  19. package/templates/ui-starter/_internal/cn.ts +6 -0
  20. package/templates/ui-starter/_internal/slot.ts +50 -0
  21. package/templates/ui-starter/_internal/variants.ts +1 -0
  22. package/templates/ui-starter/button.tsx +60 -0
  23. package/templates/ui-starter/card.tsx +92 -0
  24. package/templates/ui-starter/demo/TodoApp.tsx +86 -0
  25. package/templates/ui-starter/demo/index.tsx +41 -0
  26. package/templates/ui-starter/input.tsx +20 -0
  27. package/templates/ui-starter/label.tsx +18 -0
  28. package/templates/ui-starter/themes/neutral/tokens.css +46 -0
  29. package/templates/ui-starter/themes/slate/tokens.css +46 -0
  30. package/templates/ui-starter/themes/stone/tokens.css +46 -0
  31. package/templates/ui-starter/themes/zinc/tokens.css +46 -0
  32. package/templates/ui-starter/tokens.css +46 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # create-patties
2
2
 
3
+ ## 0.0.12-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - a99d1bf: Redesign the scaffolder prompt flow (cli specs 18 + 19): coding agent moves
8
+ earlier; a new **project type** (frontend / backend / fullstack) drives gated
9
+ sub-prompts for **Patties UI** and **monorepo** and the deploy-target option
10
+ set. Adds `--type`, `--ui`/`--no-ui`, `--monorepo`/`--no-monorepo`, `--theme`,
11
+ and a `container` target (emits a `Dockerfile`). When Patties UI is chosen, a
12
+ vendored starter set (button/card/input/label + tokens) is stamped so the demo
13
+ renders with real components. Claude / Codex projects now ship the `/patties`
14
+ skill + `/patties-init` command (Codex: a `patties-patterns` rule), generated
15
+ from one source so they can't drift, and the next-steps output hands off to
16
+ `claude --permission-mode plan "/patties-init"`. Stays zero-dependency.
17
+
3
18
  ## 0.0.8
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -49,5 +49,5 @@ guide.
49
49
 
50
50
  ## Requires
51
51
 
52
- Bun 1.0+. `bunx create-patties@latest` won't work under Node — install
52
+ Bun 1.3+. `bunx create-patties@latest` won't work under Node — install
53
53
  Bun first from [bun.sh](https://bun.sh).
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "create-patties",
3
- "version": "0.0.10",
3
+ "version": "0.0.12-next.0",
4
4
  "type": "module",
5
5
  "description": "Scaffolder for new Patties projects.",
6
+ "license": "MIT",
6
7
  "bin": {
7
8
  "create-patties": "./bin/create-patties.ts"
8
9
  },
@@ -19,9 +20,11 @@
19
20
  "scripts": {
20
21
  "test": "bun test",
21
22
  "typecheck": "tsc --noEmit",
22
- "lint": "biome check ."
23
+ "lint": "biome check .",
24
+ "generate:patties-skill": "bun run scripts/gen-patties-skill.ts",
25
+ "check:patties-skill": "bun run scripts/gen-patties-skill.ts --check"
23
26
  },
24
27
  "engines": {
25
- "bun": ">=1.0.0"
28
+ "bun": ">=1.3.0"
26
29
  }
27
30
  }