create-gato-app 0.3.1 → 0.3.7
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 +4 -2
- package/dist/github.js +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -107,8 +107,10 @@ GITHUB_TOKEN=$(gh auth token) npx create-gato-app my-app
|
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
The token is only sent to `api.github.com`; it is never printed. When GitHub rejects the token (401),
|
|
110
|
-
`create-gato-app` says so and retries once without it. On a 403 or 429 (rate limit
|
|
111
|
-
|
|
110
|
+
`create-gato-app` says so and retries once without it. On a 403 or 429 (rate limit or missing access) without a
|
|
111
|
+
token, set `GITHUB_TOKEN` (or `GH_TOKEN`) or log in with `gh auth login`; with a token, check that it can read
|
|
112
|
+
`webamigos/gatojs`. Either way you can wait for the limit to reset, or pass `--kit <path>` to use a local GatoJS
|
|
113
|
+
checkout. `--kit-version` does not help here: it still calls the GitHub API.
|
|
112
114
|
|
|
113
115
|
## Not yet
|
|
114
116
|
|
package/dist/github.js
CHANGED
|
@@ -50,8 +50,11 @@ function httpErrorMessage(status, what, token) {
|
|
|
50
50
|
if (status === 401) {
|
|
51
51
|
return `${prefix} GitHub rejected the token: check GITHUB_TOKEN / GH_TOKEN or "gh auth status".`;
|
|
52
52
|
}
|
|
53
|
+
if ((status === 403 || status === 429) && token === null) {
|
|
54
|
+
return `${prefix} This is a rate limit or missing access: set GITHUB_TOKEN (or GH_TOKEN) or log in with "gh auth login", wait for the limit to reset, or pass --kit <path> to use a local GatoJS checkout.`;
|
|
55
|
+
}
|
|
53
56
|
if (status === 403 || status === 429) {
|
|
54
|
-
return `${prefix} This is a rate limit or missing access:
|
|
57
|
+
return `${prefix} This is a rate limit or missing access: wait for the limit to reset, check that your token can read ${KIT_REPO}, or pass --kit <path> to use a local GatoJS checkout.`;
|
|
55
58
|
}
|
|
56
59
|
return prefix;
|
|
57
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-gato-app",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Create a GatoJS project (Next.js kit) with one command",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/prompts": "^1.9.0",
|
|
52
|
-
"gato-cli": "0.
|
|
52
|
+
"gato-cli": "0.9.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@fast-check/vitest": "^0.5.0",
|