@decohere/create 0.0.1-dev.20261106.158 → 0.0.1-dev.20261106.175
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 +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -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
|
|
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 |
|