create-githat-app 0.5.0 → 0.5.1
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/dist/cli.js +24 -7
- package/package.json +21 -6
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import gradient from "gradient-string";
|
|
|
11
11
|
import chalk from "chalk";
|
|
12
12
|
|
|
13
13
|
// src/constants.ts
|
|
14
|
-
var VERSION = "0.5.
|
|
14
|
+
var VERSION = "0.5.1";
|
|
15
15
|
var DEFAULT_API_URL = "https://api.githat.io";
|
|
16
16
|
var DASHBOARD_URL = "https://githat.io/dashboard/apps";
|
|
17
17
|
var BRAND_COLORS = ["#7c3aed", "#6366f1", "#8b5cf6"];
|
|
@@ -21,7 +21,7 @@ var DEPS = {
|
|
|
21
21
|
next: "^16.0.0",
|
|
22
22
|
react: "^19.0.0",
|
|
23
23
|
"react-dom": "^19.0.0",
|
|
24
|
-
"@githat/nextjs": "^0.
|
|
24
|
+
"@githat/nextjs": "^0.5.0"
|
|
25
25
|
},
|
|
26
26
|
devDependencies: {
|
|
27
27
|
typescript: "^5.9.0",
|
|
@@ -35,7 +35,7 @@ var DEPS = {
|
|
|
35
35
|
react: "^19.0.0",
|
|
36
36
|
"react-dom": "^19.0.0",
|
|
37
37
|
"react-router-dom": "^7.0.0",
|
|
38
|
-
"@githat/nextjs": "^0.
|
|
38
|
+
"@githat/nextjs": "^0.5.0"
|
|
39
39
|
},
|
|
40
40
|
devDependencies: {
|
|
41
41
|
vite: "^7.0.0",
|
|
@@ -123,7 +123,7 @@ function sectionHeader(title) {
|
|
|
123
123
|
console.log(dim(` \u2500\u2500\u2500 ${title} ${"\u2500".repeat(lineLen)}`));
|
|
124
124
|
console.log("");
|
|
125
125
|
}
|
|
126
|
-
function displaySuccess(projectName, packageManager, framework) {
|
|
126
|
+
function displaySuccess(projectName, packageManager, framework, hasPublishableKey = true) {
|
|
127
127
|
const devCmd = packageManager === "npm" ? "npm run dev" : `${packageManager} dev`;
|
|
128
128
|
const port = framework === "react-vite" ? "5173" : "3000";
|
|
129
129
|
console.log("");
|
|
@@ -140,6 +140,11 @@ function displaySuccess(projectName, packageManager, framework) {
|
|
|
140
140
|
`${violet("/sign-up")} Create account`,
|
|
141
141
|
`${violet("/dashboard")} Protected dashboard`,
|
|
142
142
|
"",
|
|
143
|
+
...hasPublishableKey ? [] : [
|
|
144
|
+
chalk.yellow("No key configured \u2014 auth works on localhost."),
|
|
145
|
+
`For production: ${violet("githat.io/dashboard/apps")}`,
|
|
146
|
+
""
|
|
147
|
+
],
|
|
143
148
|
dim("Docs \u2192 https://githat.io/docs/sdk")
|
|
144
149
|
]);
|
|
145
150
|
console.log("");
|
|
@@ -305,8 +310,8 @@ async function promptGitHat(existingKey) {
|
|
|
305
310
|
}
|
|
306
311
|
publishableKey = pastedKey || "";
|
|
307
312
|
} else if (connectChoice === "skip") {
|
|
308
|
-
p3.log.info("
|
|
309
|
-
p3.log.info("
|
|
313
|
+
p3.log.info("Auth works on localhost without a key (CORS bypass for development).");
|
|
314
|
+
p3.log.info("Sign up at githat.io \u2014 a publishable key is auto-created for you.");
|
|
310
315
|
}
|
|
311
316
|
}
|
|
312
317
|
const authFeatures = await p3.multiselect({
|
|
@@ -629,7 +634,19 @@ async function scaffold(context, options) {
|
|
|
629
634
|
);
|
|
630
635
|
}
|
|
631
636
|
p7.outro("Setup complete!");
|
|
632
|
-
displaySuccess(context.projectName, context.packageManager, context.framework);
|
|
637
|
+
displaySuccess(context.projectName, context.packageManager, context.framework, !!context.publishableKey);
|
|
638
|
+
const starPrompt = await p7.confirm({
|
|
639
|
+
message: "Star GitHat on GitHub? (helps us grow!)",
|
|
640
|
+
initialValue: false
|
|
641
|
+
});
|
|
642
|
+
if (!p7.isCancel(starPrompt) && starPrompt) {
|
|
643
|
+
try {
|
|
644
|
+
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
645
|
+
execSync3(`${cmd} "https://github.com/GitHat-IO/githat"`, { stdio: "ignore" });
|
|
646
|
+
} catch {
|
|
647
|
+
p7.log.info("Visit https://github.com/GitHat-IO/githat to star us!");
|
|
648
|
+
}
|
|
649
|
+
}
|
|
633
650
|
}
|
|
634
651
|
|
|
635
652
|
// src/commands/skills/index.ts
|
package/package.json
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-githat-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "GitHat CLI — scaffold apps and manage the skills marketplace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-githat-app": "./bin/index.js",
|
|
8
8
|
"githat": "./bin/index.js"
|
|
9
9
|
},
|
|
10
|
-
"files": [
|
|
10
|
+
"files": [
|
|
11
|
+
"bin",
|
|
12
|
+
"dist",
|
|
13
|
+
"templates"
|
|
14
|
+
],
|
|
11
15
|
"scripts": {
|
|
12
16
|
"build": "tsup",
|
|
13
17
|
"dev": "tsup --watch",
|
|
14
18
|
"test": "node bin/index.js --help"
|
|
15
19
|
},
|
|
16
20
|
"dependencies": {
|
|
17
|
-
"@clack/prompts": "^0.
|
|
21
|
+
"@clack/prompts": "^1.0.1",
|
|
18
22
|
"chalk": "^5.4.1",
|
|
19
|
-
"commander": "^
|
|
23
|
+
"commander": "^14.0.3",
|
|
20
24
|
"figlet": "^1.8.0",
|
|
21
25
|
"fs-extra": "^11.2.0",
|
|
22
26
|
"gradient-string": "^3.0.0",
|
|
23
27
|
"handlebars": "^4.7.8",
|
|
24
|
-
"ora": "^
|
|
28
|
+
"ora": "^9.3.0",
|
|
25
29
|
"unzipper": "^0.12.3"
|
|
26
30
|
},
|
|
27
31
|
"devDependencies": {
|
|
@@ -32,7 +36,18 @@
|
|
|
32
36
|
"tsup": "^8.4.0",
|
|
33
37
|
"typescript": "^5.9.0"
|
|
34
38
|
},
|
|
35
|
-
"keywords": [
|
|
39
|
+
"keywords": [
|
|
40
|
+
"githat",
|
|
41
|
+
"nextjs",
|
|
42
|
+
"react",
|
|
43
|
+
"vite",
|
|
44
|
+
"create-app",
|
|
45
|
+
"cli",
|
|
46
|
+
"auth",
|
|
47
|
+
"identity",
|
|
48
|
+
"mcp",
|
|
49
|
+
"ai-agents"
|
|
50
|
+
],
|
|
36
51
|
"license": "SEE LICENSE IN LICENSE",
|
|
37
52
|
"publishConfig": {
|
|
38
53
|
"access": "public",
|