create-sordo 0.4.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.
- package/CHANGELOG.md +5 -119
- package/README.md +3 -49
- package/bin/create-sordo.ts +1 -10
- package/package.json +7 -13
- package/src/index.ts +0 -667
- package/src/probes.ts +0 -28
- package/src/prompts.ts +0 -141
- package/src/readme.ts +0 -74
- package/src/ui.ts +0 -151
- package/src/versions.ts +0 -3
- package/templates/_backend/app/routes/api/todos.ts +0 -27
- package/templates/_claude/.claude/commands/sordo-init.md +0 -64
- package/templates/_claude/.claude/hooks/biome-check.sh +0 -17
- package/templates/_claude/.claude/rules/build-time-discovery.md +0 -17
- package/templates/_claude/.claude/rules/bun-native.md +0 -28
- package/templates/_claude/.claude/rules/filesystem-routing.md +0 -31
- package/templates/_claude/.claude/rules/islands.md +0 -46
- package/templates/_claude/.claude/rules/optional-ai.md +0 -16
- package/templates/_claude/.claude/rules/web-standards-boundary.md +0 -25
- package/templates/_claude/.claude/settings.json +0 -22
- package/templates/_claude/.claude/skills/sordo/SKILL.md +0 -120
- package/templates/_claude/.claude/skills/sordo-cli/SKILL.md +0 -112
- package/templates/_claude/CLAUDE.md +0 -28
- package/templates/_codex/.codex/README.md +0 -10
- package/templates/_codex/.codex/rules/build-time-discovery.md +0 -17
- package/templates/_codex/.codex/rules/bun-native.md +0 -28
- package/templates/_codex/.codex/rules/filesystem-routing.md +0 -31
- package/templates/_codex/.codex/rules/islands.md +0 -46
- package/templates/_codex/.codex/rules/optional-ai.md +0 -15
- package/templates/_codex/.codex/rules/sordo-cli.md +0 -108
- package/templates/_codex/.codex/rules/sordo-patterns.md +0 -121
- package/templates/_codex/.codex/rules/web-standards-boundary.md +0 -25
- package/templates/_codex/AGENTS.md +0 -27
- package/templates/_container/.dockerignore +0 -7
- package/templates/_container/Dockerfile +0 -27
- package/templates/_monorepo/packages/README.md +0 -18
- package/templates/_shared/sordo-patterns.md +0 -121
- package/templates/default/README-template.md +0 -172
- package/templates/default/app/islands/TodoApp.tsx +0 -83
- package/templates/default/app/routes/api/health.ts +0 -8
- package/templates/default/app/routes/index.tsx +0 -29
- package/templates/default/app/server.ts +0 -28
- package/templates/default/gitignore +0 -8
- package/templates/default/sordo.config.ts +0 -5
- package/templates/default/tsconfig.json +0 -14
- package/templates/ui-shadcn/components/button.tsx +0 -63
- package/templates/ui-shadcn/components/dialog.tsx +0 -158
- package/templates/ui-shadcn/demo/index.tsx +0 -58
- package/templates/ui-starter/_internal/cn.ts +0 -6
- package/templates/ui-starter/_internal/slot.ts +0 -50
- package/templates/ui-starter/_internal/variants.ts +0 -1
- package/templates/ui-starter/button.tsx +0 -60
- package/templates/ui-starter/card.tsx +0 -92
- package/templates/ui-starter/demo/TodoApp.tsx +0 -86
- package/templates/ui-starter/demo/index.tsx +0 -41
- package/templates/ui-starter/input.tsx +0 -20
- package/templates/ui-starter/label.tsx +0 -18
- package/templates/ui-starter/themes/neutral/tokens.css +0 -46
- package/templates/ui-starter/themes/slate/tokens.css +0 -46
- package/templates/ui-starter/themes/stone/tokens.css +0 -46
- package/templates/ui-starter/themes/zinc/tokens.css +0 -46
- package/templates/ui-starter/tokens.css +0 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,126 +1,12 @@
|
|
|
1
1
|
# create-sordo
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 1.0.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Major Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
## 0.3.0
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 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`.
|
|
14
|
-
|
|
15
|
-
## 0.1.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 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`.
|
|
20
|
-
- 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`.
|
|
21
|
-
|
|
22
|
-
## 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.
|
|
23
8
|
|
|
24
9
|
### Patch Changes
|
|
25
10
|
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
- **Wire Tailwind for UI projects.** A `--ui` scaffold previously rendered
|
|
29
|
-
unstyled — `app/styles/app.css` was written but never compiled or linked. Now
|
|
30
|
-
the scaffolder ships a `css` script (`@tailwindcss/cli`, run by `dev`/`build`),
|
|
31
|
-
a `app/routes/api/styles.ts` route that serves the compiled sheet, and a shared
|
|
32
|
-
`app/components/_head.tsx` each page re-exports so styles load in dev and the
|
|
33
|
-
compiled binary alike. The generated CSS is gitignored.
|
|
34
|
-
- **Typecheck cleanly out of the box.** A fresh app failed `tsc --noEmit`: the
|
|
35
|
-
`tsconfig` lacked `allowImportingTsExtensions`/`noEmit` (every `.ts`/`.tsx`
|
|
36
|
-
extension import errored TS5097), and templates used the global `JSX.Element`
|
|
37
|
-
namespace that React 19 removed (TS2503). Both fixed, plus a `typecheck` script
|
|
38
|
-
and a `css` module type for the stylesheet import.
|
|
39
|
-
- **`/sordo-init` starts clean.** The command now removes the placeholder
|
|
40
|
-
TodoApp demo before scaffolding the first real feature, and carries the stable
|
|
41
|
-
framework constraints (pages get only `ctx.params`; `.ts` routes live under
|
|
42
|
-
`api/`; middleware gates pages; styling is opt-in per page) so the agent
|
|
43
|
-
doesn't re-derive them from source. The `/sordo` recipes encode the same.
|
|
44
|
-
- **Ignore build output.** `sordo-gen` (written at build time) is now in the
|
|
45
|
-
default gitignore.
|
|
46
|
-
|
|
47
|
-
## 0.0.12
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- a99d1bf: Redesign the scaffolder prompt flow (cli specs 18 + 19): coding agent moves
|
|
52
|
-
earlier; a new **project type** (frontend / backend / fullstack) drives gated
|
|
53
|
-
sub-prompts for **Patties UI** and **monorepo** and the deploy-target option
|
|
54
|
-
set. Adds `--type`, `--ui`/`--no-ui`, `--monorepo`/`--no-monorepo`, `--theme`,
|
|
55
|
-
and a `container` target (emits a `Dockerfile`). When Patties UI is chosen, a
|
|
56
|
-
vendored starter set (button/card/input/label + tokens) is stamped so the demo
|
|
57
|
-
renders with real components. Claude / Codex projects now ship the `/sordo`
|
|
58
|
-
skill + `/sordo-init` command (Codex: a `sordo-patterns` rule), generated
|
|
59
|
-
from one source so they can't drift, and the next-steps output hands off to
|
|
60
|
-
`claude --permission-mode plan "/sordo-init"`. Stays zero-dependency.
|
|
61
|
-
|
|
62
|
-
## 0.0.12-next.0
|
|
63
|
-
|
|
64
|
-
### Patch Changes
|
|
65
|
-
|
|
66
|
-
- a99d1bf: Redesign the scaffolder prompt flow (cli specs 18 + 19): coding agent moves
|
|
67
|
-
earlier; a new **project type** (frontend / backend / fullstack) drives gated
|
|
68
|
-
sub-prompts for **Patties UI** and **monorepo** and the deploy-target option
|
|
69
|
-
set. Adds `--type`, `--ui`/`--no-ui`, `--monorepo`/`--no-monorepo`, `--theme`,
|
|
70
|
-
and a `container` target (emits a `Dockerfile`). When Patties UI is chosen, a
|
|
71
|
-
vendored starter set (button/card/input/label + tokens) is stamped so the demo
|
|
72
|
-
renders with real components. Claude / Codex projects now ship the `/sordo`
|
|
73
|
-
skill + `/sordo-init` command (Codex: a `sordo-patterns` rule), generated
|
|
74
|
-
from one source so they can't drift, and the next-steps output hands off to
|
|
75
|
-
`claude --permission-mode plan "/sordo-init"`. Stays zero-dependency.
|
|
76
|
-
|
|
77
|
-
## 0.0.8
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- 3b3f80d: Scaffolder DX overhaul (specs 09 + 10).
|
|
82
|
-
|
|
83
|
-
- **Tool probes** — fail fast with a clear message when `bun` is missing
|
|
84
|
-
from PATH; skip-and-warn when `git` is missing instead of silently
|
|
85
|
-
swallowing failures.
|
|
86
|
-
- **Interactive prompts** — when stdin is a TTY and flags were not passed,
|
|
87
|
-
prompt for project name, target, deploy, and agent. Add `--yes` / `-y`
|
|
88
|
-
to accept all defaults non-interactively.
|
|
89
|
-
- **`--agent` alias** — the spec-05 `--agent claude-code` form is kept as
|
|
90
|
-
a backwards-compatible alias for `--template claude`.
|
|
91
|
-
- **Expanded agent overlays** — `_claude` now ships
|
|
92
|
-
`.claude/settings.json` (with `bun`/`bunx`/`sordo` permissions and a
|
|
93
|
-
Biome PostToolUse hook), `.claude/hooks/biome-check.sh` (no-ops when
|
|
94
|
-
Biome is not installed), and empty `.claude/agents/` /
|
|
95
|
-
`.claude/commands/` directories with README pointers. `_codex` now
|
|
96
|
-
ships a `.codex/README.md`.
|
|
97
|
-
- **Templated README** — `templates/default/README-template.md` is now a
|
|
98
|
-
real onboarding doc with `{{name}}` / `{{agent}}` / `{{target}}` /
|
|
99
|
-
`{{deploy}}` placeholders and HTML-comment conditional blocks. A
|
|
100
|
-
generic templating pass also interpolates `{{name}}` into CLAUDE.md
|
|
101
|
-
and AGENTS.md.
|
|
102
|
-
|
|
103
|
-
- **Todo demo template** — the default scaffold now ships a `TodoApp.tsx`
|
|
104
|
-
island and a route that mounts it. The README explains that buttons
|
|
105
|
-
don't react under `bun dev` today (dev hydration lands with framework
|
|
106
|
-
spec 18) and tells the user to `bun run build && bun start` to see the
|
|
107
|
-
island work; it also includes a "Remove the demo" section for when the
|
|
108
|
-
user is ready to start their real app.
|
|
109
|
-
- **`--blank` flag** — `bunx create-sordo@latest <name> --blank`
|
|
110
|
-
(alias: `--empty`) scaffolds a hello-world page with no demo and no
|
|
111
|
-
`app/islands/` directory.
|
|
112
|
-
- **Demo prompt** — interactive flow asks "Include the interactive
|
|
113
|
-
todo demo? [Y/n]" right after the agent question.
|
|
114
|
-
- **Git is now opt-in** — `git init` no longer runs by default. Pass
|
|
115
|
-
`--git` to opt in. The success output reminds the user how to
|
|
116
|
-
initialise a repo when they're ready. `--no-git` is kept as a no-op
|
|
117
|
-
for back-compat.
|
|
118
|
-
- **`_claude` overlay restructured.** The empty `.claude/agents/` and
|
|
119
|
-
`.claude/commands/` placeholders are gone. Replaced with:
|
|
120
|
-
- `.claude/skills/sordo-cli/SKILL.md` — a real skill teaching
|
|
121
|
-
Claude how to use the project CLI (`sordo dev/build/start/deploy/secret`).
|
|
122
|
-
- `.claude/rules/` — scaffolded meta-framework knowledge:
|
|
123
|
-
`bun-native.md`, `web-standards-boundary.md`,
|
|
124
|
-
`filesystem-routing.md`, `islands.md`, `build-time-discovery.md`,
|
|
125
|
-
`optional-ai.md`. Mirrors the framework's own rules but tuned
|
|
126
|
-
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
|
-
|
|
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
|
|
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).
|
package/bin/create-sordo.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
|
|
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.
|
|
4
|
-
"description": "
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
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"
|