create-sordo 0.5.0 → 1.0.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 (62) hide show
  1. package/CHANGELOG.md +5 -125
  2. package/README.md +3 -49
  3. package/bin/create-sordo.ts +1 -10
  4. package/package.json +7 -13
  5. package/src/index.ts +0 -697
  6. package/src/probes.ts +0 -28
  7. package/src/prompts.ts +0 -141
  8. package/src/readme.ts +0 -74
  9. package/src/ui.ts +0 -152
  10. package/src/versions.ts +0 -3
  11. package/templates/_backend/app/routes/api/todos.ts +0 -27
  12. package/templates/_claude/.claude/commands/sordo-init.md +0 -64
  13. package/templates/_claude/.claude/hooks/biome-check.sh +0 -17
  14. package/templates/_claude/.claude/rules/build-time-discovery.md +0 -17
  15. package/templates/_claude/.claude/rules/bun-native.md +0 -28
  16. package/templates/_claude/.claude/rules/filesystem-routing.md +0 -31
  17. package/templates/_claude/.claude/rules/islands.md +0 -46
  18. package/templates/_claude/.claude/rules/optional-ai.md +0 -16
  19. package/templates/_claude/.claude/rules/web-standards-boundary.md +0 -25
  20. package/templates/_claude/.claude/settings.json +0 -22
  21. package/templates/_claude/.claude/skills/sordo/SKILL.md +0 -120
  22. package/templates/_claude/.claude/skills/sordo-cli/SKILL.md +0 -112
  23. package/templates/_claude/CLAUDE.md +0 -28
  24. package/templates/_codex/.codex/README.md +0 -10
  25. package/templates/_codex/.codex/rules/build-time-discovery.md +0 -17
  26. package/templates/_codex/.codex/rules/bun-native.md +0 -28
  27. package/templates/_codex/.codex/rules/filesystem-routing.md +0 -31
  28. package/templates/_codex/.codex/rules/islands.md +0 -46
  29. package/templates/_codex/.codex/rules/optional-ai.md +0 -15
  30. package/templates/_codex/.codex/rules/sordo-cli.md +0 -108
  31. package/templates/_codex/.codex/rules/sordo-patterns.md +0 -121
  32. package/templates/_codex/.codex/rules/web-standards-boundary.md +0 -25
  33. package/templates/_codex/AGENTS.md +0 -27
  34. package/templates/_container/.dockerignore +0 -7
  35. package/templates/_container/Dockerfile +0 -27
  36. package/templates/_monorepo/packages/README.md +0 -18
  37. package/templates/_shared/sordo-patterns.md +0 -121
  38. package/templates/default/README-template.md +0 -174
  39. package/templates/default/app/islands/TodoApp.tsx +0 -83
  40. package/templates/default/app/routes/api/health.ts +0 -8
  41. package/templates/default/app/routes/index.tsx +0 -29
  42. package/templates/default/app/server.ts +0 -28
  43. package/templates/default/gitignore +0 -8
  44. package/templates/default/sordo.config.ts +0 -5
  45. package/templates/default/tsconfig.json +0 -14
  46. package/templates/ui-shadcn/components/button.tsx +0 -63
  47. package/templates/ui-shadcn/components/dialog.tsx +0 -158
  48. package/templates/ui-shadcn/demo/index.tsx +0 -58
  49. package/templates/ui-starter/_internal/cn.ts +0 -6
  50. package/templates/ui-starter/_internal/slot.ts +0 -50
  51. package/templates/ui-starter/_internal/variants.ts +0 -1
  52. package/templates/ui-starter/button.tsx +0 -60
  53. package/templates/ui-starter/card.tsx +0 -92
  54. package/templates/ui-starter/demo/TodoApp.tsx +0 -86
  55. package/templates/ui-starter/demo/index.tsx +0 -41
  56. package/templates/ui-starter/input.tsx +0 -20
  57. package/templates/ui-starter/label.tsx +0 -18
  58. package/templates/ui-starter/themes/neutral/tokens.css +0 -46
  59. package/templates/ui-starter/themes/slate/tokens.css +0 -46
  60. package/templates/ui-starter/themes/stone/tokens.css +0 -46
  61. package/templates/ui-starter/themes/zinc/tokens.css +0 -46
  62. package/templates/ui-starter/tokens.css +0 -46
package/CHANGELOG.md CHANGED
@@ -1,132 +1,12 @@
1
1
  # create-sordo
2
2
 
3
- ## 0.5.0
3
+ ## 1.0.0
4
4
 
5
- ### Patch Changes
6
-
7
- - 5a49288: Fix the gaps found verifying the Cloudflare recipe. The UI starter now installs `tailwindcss`, and `--deploy cloudflare` on edge adds `@sordo/deploy-cloudflare` plus a `plugins` entry to `sordo.config.ts`. Edge builds in the default inline mode now serve `public/` files at `/_sordo/assets/<name>`. Build failures report the bundler's logs instead of a bare "Bundle failed", and a css build that cannot resolve a package names it. The generated edge `fetch` is typed so it passes a strict tsconfig. The README augments `SordoBindings` through `sordo/middleware` and no longer claims the scaffold's `build` script generates CSS.
8
-
9
- ## 0.4.0
10
-
11
- ### Minor Changes
12
-
13
- - 10e162a: UI starters use sordo's `css` build entry: the generated `sordo.config.ts` sets `css: "app/styles/app.css"` and `bun-plugin-tailwind` replaces `@tailwindcss/cli`. The `css` / `css:watch` scripts, `app.generated.css`, `css.d.ts`, the `/api/styles` route and `_head.tsx` (plus the `head` re-exports) are gone.
14
-
15
- ## 0.3.0
16
-
17
- ### Patch Changes
18
-
19
- - c9b3d98: New apps pin `sordo@^0.3.0`, so they get the optional `css` build entry and a production server that serves client chunks (`bun run start`). `create-sordo` now releases in lockstep with `sordo`, so the version it pins always matches the latest `sordo`.
20
-
21
- ## 0.1.0
22
-
23
- ### Minor Changes
5
+ ### Major Changes
24
6
 
25
- - 37f5e14: Add `--ui shadcn`: upstream shadcn/ui components on a whole-tree hydrated demo page. Scaffolded apps now pin `sordo` to the release create-sordo shipped with (`^<version>`) and `bun-types` to `^1.3.0` instead of `latest`.
26
- - c5c1020: Remove the `patties-ui` package and its built-in 60-component catalog. `sordo add` now takes upstream shadcn/ui (`@shadcn/<name>`), local paths, URLs, and `ui.registries`; `sordo add <name>` for a non-catalog name points at `@shadcn/<name>`. The registry schema, `_internal` helpers, tokens, and theme presets now ship inside `sordo`, so `bun add -D patties-ui` is no longer needed. Scaffolded apps no longer depend on `patties-ui`.
27
-
28
- ## 0.0.13
7
+ - 7f48eb7: The framework now publishes as `@sordo/core` and the scaffolder as `@sordo/create`; `sordo` and `create-sordo` remain as thin re-export shims for a deprecation window. Imports change from `sordo/*` to `@sordo/core/*` (run `sordo migrate scope` to rewrite imports and `package.json`), and `sordo upgrade` now tracks `@sordo/core`. The `sordo` CLI binary keeps its name.
29
8
 
30
9
  ### Patch Changes
31
10
 
32
- - c606a1f: Fix scaffold UX gaps surfaced by dogfooding the UI + `/sordo-init` flow:
33
-
34
- - **Wire Tailwind for UI projects.** A `--ui` scaffold previously rendered
35
- unstyled — `app/styles/app.css` was written but never compiled or linked. Now
36
- the scaffolder ships a `css` script (`@tailwindcss/cli`, run by `dev`/`build`),
37
- a `app/routes/api/styles.ts` route that serves the compiled sheet, and a shared
38
- `app/components/_head.tsx` each page re-exports so styles load in dev and the
39
- compiled binary alike. The generated CSS is gitignored.
40
- - **Typecheck cleanly out of the box.** A fresh app failed `tsc --noEmit`: the
41
- `tsconfig` lacked `allowImportingTsExtensions`/`noEmit` (every `.ts`/`.tsx`
42
- extension import errored TS5097), and templates used the global `JSX.Element`
43
- namespace that React 19 removed (TS2503). Both fixed, plus a `typecheck` script
44
- and a `css` module type for the stylesheet import.
45
- - **`/sordo-init` starts clean.** The command now removes the placeholder
46
- TodoApp demo before scaffolding the first real feature, and carries the stable
47
- framework constraints (pages get only `ctx.params`; `.ts` routes live under
48
- `api/`; middleware gates pages; styling is opt-in per page) so the agent
49
- doesn't re-derive them from source. The `/sordo` recipes encode the same.
50
- - **Ignore build output.** `sordo-gen` (written at build time) is now in the
51
- default gitignore.
52
-
53
- ## 0.0.12
54
-
55
- ### Patch Changes
56
-
57
- - a99d1bf: Redesign the scaffolder prompt flow (cli specs 18 + 19): coding agent moves
58
- earlier; a new **project type** (frontend / backend / fullstack) drives gated
59
- sub-prompts for **Patties UI** and **monorepo** and the deploy-target option
60
- set. Adds `--type`, `--ui`/`--no-ui`, `--monorepo`/`--no-monorepo`, `--theme`,
61
- and a `container` target (emits a `Dockerfile`). When Patties UI is chosen, a
62
- vendored starter set (button/card/input/label + tokens) is stamped so the demo
63
- renders with real components. Claude / Codex projects now ship the `/sordo`
64
- skill + `/sordo-init` command (Codex: a `sordo-patterns` rule), generated
65
- from one source so they can't drift, and the next-steps output hands off to
66
- `claude --permission-mode plan "/sordo-init"`. Stays zero-dependency.
67
-
68
- ## 0.0.12-next.0
69
-
70
- ### Patch Changes
71
-
72
- - a99d1bf: Redesign the scaffolder prompt flow (cli specs 18 + 19): coding agent moves
73
- earlier; a new **project type** (frontend / backend / fullstack) drives gated
74
- sub-prompts for **Patties UI** and **monorepo** and the deploy-target option
75
- set. Adds `--type`, `--ui`/`--no-ui`, `--monorepo`/`--no-monorepo`, `--theme`,
76
- and a `container` target (emits a `Dockerfile`). When Patties UI is chosen, a
77
- vendored starter set (button/card/input/label + tokens) is stamped so the demo
78
- renders with real components. Claude / Codex projects now ship the `/sordo`
79
- skill + `/sordo-init` command (Codex: a `sordo-patterns` rule), generated
80
- from one source so they can't drift, and the next-steps output hands off to
81
- `claude --permission-mode plan "/sordo-init"`. Stays zero-dependency.
82
-
83
- ## 0.0.8
84
-
85
- ### Patch Changes
86
-
87
- - 3b3f80d: Scaffolder DX overhaul (specs 09 + 10).
88
-
89
- - **Tool probes** — fail fast with a clear message when `bun` is missing
90
- from PATH; skip-and-warn when `git` is missing instead of silently
91
- swallowing failures.
92
- - **Interactive prompts** — when stdin is a TTY and flags were not passed,
93
- prompt for project name, target, deploy, and agent. Add `--yes` / `-y`
94
- to accept all defaults non-interactively.
95
- - **`--agent` alias** — the spec-05 `--agent claude-code` form is kept as
96
- a backwards-compatible alias for `--template claude`.
97
- - **Expanded agent overlays** — `_claude` now ships
98
- `.claude/settings.json` (with `bun`/`bunx`/`sordo` permissions and a
99
- Biome PostToolUse hook), `.claude/hooks/biome-check.sh` (no-ops when
100
- Biome is not installed), and empty `.claude/agents/` /
101
- `.claude/commands/` directories with README pointers. `_codex` now
102
- ships a `.codex/README.md`.
103
- - **Templated README** — `templates/default/README-template.md` is now a
104
- real onboarding doc with `{{name}}` / `{{agent}}` / `{{target}}` /
105
- `{{deploy}}` placeholders and HTML-comment conditional blocks. A
106
- generic templating pass also interpolates `{{name}}` into CLAUDE.md
107
- and AGENTS.md.
108
-
109
- - **Todo demo template** — the default scaffold now ships a `TodoApp.tsx`
110
- island and a route that mounts it. The README explains that buttons
111
- don't react under `bun dev` today (dev hydration lands with framework
112
- spec 18) and tells the user to `bun run build && bun start` to see the
113
- island work; it also includes a "Remove the demo" section for when the
114
- user is ready to start their real app.
115
- - **`--blank` flag** — `bunx create-sordo@latest <name> --blank`
116
- (alias: `--empty`) scaffolds a hello-world page with no demo and no
117
- `app/islands/` directory.
118
- - **Demo prompt** — interactive flow asks "Include the interactive
119
- todo demo? [Y/n]" right after the agent question.
120
- - **Git is now opt-in** — `git init` no longer runs by default. Pass
121
- `--git` to opt in. The success output reminds the user how to
122
- initialise a repo when they're ready. `--no-git` is kept as a no-op
123
- for back-compat.
124
- - **`_claude` overlay restructured.** The empty `.claude/agents/` and
125
- `.claude/commands/` placeholders are gone. Replaced with:
126
- - `.claude/skills/sordo-cli/SKILL.md` — a real skill teaching
127
- Claude how to use the project CLI (`sordo dev/build/start/deploy/secret`).
128
- - `.claude/rules/` — scaffolded meta-framework knowledge:
129
- `bun-native.md`, `web-standards-boundary.md`,
130
- `filesystem-routing.md`, `islands.md`, `build-time-discovery.md`,
131
- `optional-ai.md`. Mirrors the framework's own rules but tuned
132
- for users of the framework.
11
+ - Updated dependencies [7f48eb7]
12
+ - @sordo/create@1.0.0
package/README.md CHANGED
@@ -1,53 +1,7 @@
1
- # create-sordo
1
+ # create-sordo (deprecated)
2
2
 
3
- The official scaffolder for [Sordo](https://github.com/bihaviour/sordo) —
4
- a Bun-native full-stack meta-framework with React 19 rendering.
3
+ Alias of [`@sordo/create`](https://www.npmjs.com/package/@sordo/create). Prefer:
5
4
 
6
5
  ```sh
7
- bunx create-sordo@latest my-app
6
+ bunx @sordo/create@latest my-app
8
7
  ```
9
-
10
- Runs an interactive prompt (project name, agent overlay, demo template,
11
- runtime target, deploy target), then scaffolds, installs, and gets you
12
- to `bunx sordo dev` in one shot.
13
-
14
- ## Options
15
-
16
- ```sh
17
- bunx create-sordo@latest my-app \
18
- --template claude|codex|none \
19
- --target bun|edge \
20
- --deploy cloudflare|vercel|deno|netlify|bun|none \
21
- --blank \
22
- --git \
23
- --no-install \
24
- --yes
25
- ```
26
-
27
- | Flag | Default | What it does |
28
- |---|---|---|
29
- | `--template` | `claude` | Agent-platform overlay (`claude`, `codex`, or `none`). |
30
- | `--target` | `bun` | Runtime target written into `sordo.config.ts`. |
31
- | `--deploy` | `none` | Records the intended deploy target. |
32
- | `--blank` / `--empty` | off | Skip the interactive todo demo; ship a hello-world page. |
33
- | `--git` | off | Run `git init` + initial commit (opt-in). |
34
- | `--no-install` | off | Skip `bun install`. |
35
- | `--yes` / `-y` | off | Accept all defaults; skip prompts. |
36
-
37
- `--agent claude-code` is retained as a back-compat alias for
38
- `--template claude`.
39
-
40
- ## What you get
41
-
42
- A minimal Sordo app with filesystem routing under `app/routes/`,
43
- optional client islands under `app/islands/`, and either the `_claude`
44
- or `_codex` agent overlay scaffolding conventions for your chosen
45
- coding agent.
46
-
47
- See [the Sordo docs](https://bun-patties.com) for the full framework
48
- guide.
49
-
50
- ## Requires
51
-
52
- Bun 1.3+. `bunx create-sordo@latest` won't work under Node — install
53
- Bun first from [bun.sh](https://bun.sh).
@@ -1,11 +1,2 @@
1
1
  #!/usr/bin/env bun
2
- export {};
3
-
4
- if (typeof Bun === "undefined") {
5
- console.error("create-sordo requires Bun. Install Bun first: https://bun.sh");
6
- process.exit(1);
7
- }
8
-
9
- const { run } = await import("../src/index.ts");
10
- const code = await run(process.argv.slice(2));
11
- process.exit(code);
2
+ import "@sordo/create/bin";
package/package.json CHANGED
@@ -1,35 +1,29 @@
1
1
  {
2
2
  "name": "create-sordo",
3
- "version": "0.5.0",
4
- "description": "Scaffolder for new Sordo projects.",
3
+ "version": "1.0.0",
4
+ "description": "Deprecated alias of @sordo/create.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/bihaviour/sordo.git",
8
- "directory": "packages/create-sordo"
8
+ "directory": "packages/create-sordo-compat"
9
9
  },
10
10
  "type": "module",
11
11
  "license": "MIT",
12
12
  "bin": {
13
13
  "create-sordo": "bin/create-sordo.ts"
14
14
  },
15
- "exports": {
16
- ".": "./src/index.ts"
17
- },
18
15
  "files": [
19
16
  "bin",
20
- "src",
21
- "templates",
22
17
  "README.md",
23
18
  "CHANGELOG.md"
24
19
  ],
25
20
  "scripts": {
26
21
  "test": "bun test",
27
22
  "typecheck": "tsc --noEmit",
28
- "lint": "biome check .",
29
- "generate:sordo-skill": "bun run scripts/gen-sordo-skill.ts",
30
- "check:sordo-skill": "bun run scripts/gen-sordo-skill.ts --check",
31
- "sync:versions": "bun run scripts/sync-versions.ts",
32
- "check:versions": "bun run scripts/sync-versions.ts --check"
23
+ "lint": "biome check ."
24
+ },
25
+ "dependencies": {
26
+ "@sordo/create": "^1.0.0"
33
27
  },
34
28
  "engines": {
35
29
  "bun": ">=1.3.0"