create-daloy 0.1.16 → 0.1.18
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/README.md +15 -0
- package/bin/create-daloy.mjs +581 -98
- package/package.json +1 -1
- package/templates/bun-basic/AGENTS.md +20 -0
- package/templates/bun-basic/SKILL.md +68 -0
- package/templates/cloudflare-worker/AGENTS.md +20 -0
- package/templates/cloudflare-worker/SKILL.md +68 -0
- package/templates/cloudflare-worker/package.json +1 -1
- package/templates/deno-basic/AGENTS.md +22 -0
- package/templates/deno-basic/SKILL.md +71 -0
- package/templates/node-basic/AGENTS.md +22 -0
- package/templates/node-basic/SKILL.md +70 -0
- package/templates/node-basic/package.json +4 -4
- package/templates/vercel-edge/AGENTS.md +20 -0
- package/templates/vercel-edge/SKILL.md +64 -0
- package/templates/vercel-edge/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,11 @@ The CLI is interactive when arguments are missing. It will ask you for:
|
|
|
19
19
|
- Whether to install dependencies
|
|
20
20
|
- Whether to initialize a git repository
|
|
21
21
|
|
|
22
|
+
Interactive runs use a polished terminal UI with a DaloyJS welcome banner,
|
|
23
|
+
arrow-key template and package-manager pickers, progress indicators, and a
|
|
24
|
+
boxed completion summary. Non-TTY environments and `--yes` mode keep a plain,
|
|
25
|
+
script-friendly transcript with the same decisions and next steps.
|
|
26
|
+
|
|
22
27
|
## Non-interactive usage
|
|
23
28
|
|
|
24
29
|
```bash
|
|
@@ -113,8 +118,18 @@ re-run with `--minimal`, or delete the marked blocks by hand later.
|
|
|
113
118
|
## What the CLI guarantees
|
|
114
119
|
|
|
115
120
|
- Zero runtime dependencies (uses only Node built-ins) for a clean supply-chain footprint.
|
|
121
|
+
- A modern terminal experience with Unicode/color capability detection and ASCII fallbacks.
|
|
116
122
|
- Templates are copied verbatim from this package's `templates/` directory.
|
|
117
123
|
- Files prefixed with `_` are renamed (`_gitignore` → `.gitignore`, `_npmrc` → `.npmrc`) to survive npm packing.
|
|
118
124
|
- pnpm-specific `.npmrc` hardening is kept only when you choose `pnpm`; other package managers get a clean project without unsupported config warnings.
|
|
119
125
|
- pnpm projects ship with `ignore-scripts=true`, `minimum-release-age=1440`, `verify-store-integrity=true`, `prefer-frozen-lockfile=true`, and `strict-peer-dependencies=true` by default.
|
|
120
126
|
- The CLI never executes template scripts and never makes network calls beyond the package manager you select.
|
|
127
|
+
|
|
128
|
+
## AI agent helper files
|
|
129
|
+
|
|
130
|
+
Every scaffolded project ships with two files at the repo root that help AI coding agents (Copilot, Claude Code, Cursor, Codex, etc.) understand and work in your project:
|
|
131
|
+
|
|
132
|
+
- `AGENTS.md` — a small, top-of-context file (per the open [AGENTS.md](https://agents.md) convention): one-line project description, package manager / runtime, and the few commands an agent needs. It points to `SKILL.md` for the rest.
|
|
133
|
+
- `SKILL.md` — operational guidance for AI agents: when to use the skill, project structure, core workflows (adding routes, regenerating the OpenAPI spec and client), decision rules, and pitfalls to avoid.
|
|
134
|
+
|
|
135
|
+
Both files are tailored to the chosen template (Node, Bun, Deno, Vercel Edge, or Cloudflare Workers), and Node-style templates rewrite their commands to match your selected package manager. They follow the "instruction budget" advice — small root file, progressive disclosure for the rest — so they don't waste agent tokens. Edit or delete them freely; the framework does not depend on them at runtime.
|