@decohere/create 0.0.1-dev.20261106.158 → 0.0.1-dev.20261106.179

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 (2) hide show
  1. package/README.md +10 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ Scaffolding always runs somewhere that already has its tools, so nothing gets in
10
10
  | Your machine, or another container with Docker access | Runs in the `ghcr.io/typesmiths/decohere/create` image, then copies the project out | Says to open the project's Dev Container |
11
11
  | Another container with no Docker access | Says Docker is needed | Says to open the project's Dev Container |
12
12
 
13
- The scaffolder image gets no folders from your machine, and it can't see `~/.npmrc` or your Auth0 login. It works in its own folder, and the project is copied out only if it succeeds, so a failed run or Ctrl-C leaves your folder as it was. The container is always removed. A new project needs an empty folder (a `.git` folder is fine). This works the same from your machine, from inside a container, and against a remote Docker.
13
+ The scaffolder image gets no folders from your machine, and it can't see `~/.npmrc` or your Auth0 login. It works in its own folder, and the project is copied out only if it succeeds, so a failed run or Ctrl-C leaves your folder as it was. The container is always removed. A new project needs an empty folder (a `.git` folder is fine). The image is the bare minimum, plain Alpine with Node, the scaffolder and the Auth0 CLI, so a new project gets formatted by Biome the first time its Dev Container installs dependencies. Outside a Dev Container, run `pnpm lint` once after installing. This works the same from your machine, from inside a container, and against a remote Docker.
14
14
 
15
15
  With Auth0 and Postgres, `create` also makes an admin user with a generated password. The password isn't printed or kept in the project, and it's only for logging in. On Linux with a key store (GNOME Keyring or KWallet, through `secret-tool`), it's saved there, and `create` prints the command to read it. Anywhere else it goes in `~/.config/decohere/<project>.env`, readable only by you. Run inside a container, that file is in the container, so copy it if the container may be rebuilt.
16
16
 
@@ -42,7 +42,7 @@ Target directory is `webapi`'s optional argument or `-d` (default `.`). `npm cre
42
42
 
43
43
  A first token that isn't a command (`webapi`, `create`, `add`, `auth0`, `help`) or a flag is the project's folder, so a mistyped command starts a project with that name.
44
44
 
45
- The scaffolded Dev Container asks no questions. `gh` is installed in it: run `gh auth login` yourself if you want it, and the login persists in `.devcontainer/gh-auth/` (gitignored).
45
+ The scaffolded Dev Container asks no questions. `gh` is installed in it: run `gh auth login` yourself if you want it, and the login persists in `~/.config/decohere/gh/<project>/`, outside the project and readable only by you. Each project has its own, so a project can use a different GitHub account. To use a token instead, put `GH_TOKEN=…` in `~/.config/decohere/gh/<project>.env`.
46
46
 
47
47
  ## Commands
48
48
 
@@ -91,6 +91,14 @@ Every API gets its own `projects/<name>/Dockerfile`; that folder is the Docker b
91
91
 
92
92
  The app Dev Container is a thin `FROM ghcr.io/typesmiths/decohere/devcontainer:<version>` (pinned to the scaffolder version). Shared layers (bash history, pnpm, `gh`, js-debug bootloader fix) update via `docker pull` / Dev Container rebuild — Compose mounts and lifecycle scripts stay in the app repo. Rebuild with pull after upgrading `@decohere/create`.
93
93
 
94
+ The base image is `node:24-trixie-slim`, with no compilers. If an npm package has to compile on install because it has no prebuilt binary, add what it needs to your project's `.devcontainer/Dockerfile`:
95
+
96
+ ```dockerfile
97
+ USER root
98
+ RUN apt-get update && apt-get install -y --no-install-recommends g++ make python3 && rm -rf /var/lib/apt/lists/*
99
+ USER node
100
+ ```
101
+
94
102
  #### Scripts
95
103
 
96
104
  | Script | Command | When |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decohere/create",
3
- "version": "0.0.1-dev.20261106.158",
3
+ "version": "0.0.1-dev.20261106.179",
4
4
  "description": "Download the Decohere scaffolder image and run it (npm create @decohere)",
5
5
  "keywords": [
6
6
  "decohere",