Replace .npmrc with bunfig.toml for Bun-native registry config
Also bump git app's @because/toes dependency to 0.0.10 for VALID_NAME export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
21e300df90
commit
50fb57a9ca
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/clock/bunfig.toml
Normal file
2
apps/clock/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/code/bunfig.toml
Normal file
2
apps/code/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/cron/bunfig.toml
Normal file
2
apps/cron/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
1
apps/env/.npmrc
vendored
1
apps/env/.npmrc
vendored
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/env/bunfig.toml
vendored
Normal file
2
apps/env/bunfig.toml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/git/bunfig.toml
Normal file
2
apps/git/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
"toes": {
|
"toes": {
|
||||||
"tool": true,
|
"tool": true,
|
||||||
"dashboard": true,
|
"dashboard": true,
|
||||||
"share": true,
|
|
||||||
"icon": "🔀"
|
"icon": "🔀"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/metrics/bunfig.toml
Normal file
2
apps/metrics/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
2
apps/truisms/bunfig.toml
Normal file
2
apps/truisms/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
2
bunfig.toml
Normal file
2
bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
|
|
@ -85,7 +85,7 @@ A generated SSR app looks like this:
|
||||||
```
|
```
|
||||||
my-app/
|
my-app/
|
||||||
.gitignore # Files to exclude from sync and deploy
|
.gitignore # Files to exclude from sync and deploy
|
||||||
.npmrc # Points to the private registry
|
bunfig.toml # Points to the private registry
|
||||||
package.json # Must have scripts.toes
|
package.json # Must have scripts.toes
|
||||||
tsconfig.json # TypeScript config
|
tsconfig.json # TypeScript config
|
||||||
index.tsx # Entry point (re-exports from src/server)
|
index.tsx # Entry point (re-exports from src/server)
|
||||||
|
|
@ -127,10 +127,11 @@ Every app needs three things:
|
||||||
|
|
||||||
The `scripts.toes` field is how Toes discovers your app. The `toes.icon` field sets the emoji shown in the dashboard.
|
The `scripts.toes` field is how Toes discovers your app. The `toes.icon` field sets the emoji shown in the dashboard.
|
||||||
|
|
||||||
**.npmrc:**
|
**bunfig.toml:**
|
||||||
|
|
||||||
```
|
```toml
|
||||||
registry=https://npm.nose.space
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
```
|
```
|
||||||
|
|
||||||
Required for installing `@because/*` packages.
|
Required for installing `@because/*` packages.
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
registry=https://npm.nose.space
|
|
||||||
|
|
@ -10,7 +10,7 @@ Runtime is **Bun**.
|
||||||
|
|
||||||
Every toes app/tool must have:
|
Every toes app/tool must have:
|
||||||
|
|
||||||
1. **`.npmrc`** pointing to `registry=https://npm.nose.space` (the private registry for `@because/*` packages)
|
1. **`bunfig.toml`** pointing to the private registry for `@because/*` packages
|
||||||
2. **`package.json`** with a `scripts.toes` entry (this is how toes discovers and runs apps)
|
2. **`package.json`** with a `scripts.toes` entry (this is how toes discovers and runs apps)
|
||||||
3. **HTTP `GET /ok`** returning 200 (health check endpoint — toes polls this every 30s and restarts unresponsive apps)
|
3. **HTTP `GET /ok`** returning 200 (health check endpoint — toes polls this every 30s and restarts unresponsive apps)
|
||||||
|
|
||||||
|
|
@ -22,11 +22,12 @@ A **tool** renders as a tab inside the dashboard (in an iframe). It receives `?a
|
||||||
|
|
||||||
## Required Files
|
## Required Files
|
||||||
|
|
||||||
Every app needs `.npmrc`, `tsconfig.json`, `package.json`, and `index.tsx`.
|
Every app needs `bunfig.toml`, `tsconfig.json`, `package.json`, and `index.tsx`.
|
||||||
|
|
||||||
**.npmrc** -- always this exact content:
|
**bunfig.toml** -- always this exact content:
|
||||||
```
|
```toml
|
||||||
registry=https://npm.nose.space
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
```
|
```
|
||||||
|
|
||||||
**tsconfig.json** -- use exactly, do not improvise:
|
**tsconfig.json** -- use exactly, do not improvise:
|
||||||
|
|
|
||||||
2
templates/bunfig.toml
Normal file
2
templates/bunfig.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[install]
|
||||||
|
registry = "https://npm.nose.space"
|
||||||
Loading…
Reference in New Issue
Block a user