@jskit-ai/create-app 0.1.40 → 0.1.41
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/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/create-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "Scaffold minimal JSKIT app shells.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"bin",
|
|
8
8
|
"src",
|
|
9
|
-
"templates"
|
|
10
|
-
"README.md"
|
|
9
|
+
"templates"
|
|
11
10
|
],
|
|
12
11
|
"scripts": {
|
|
13
12
|
"test": "node --test test/*.test.js"
|
package/src/server/index.js
CHANGED
|
@@ -48,12 +48,15 @@ function normalizeTenancyMode(value, { showUsage = true } = {}) {
|
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
function
|
|
51
|
+
function buildInitialSetupCommands(initialBundles) {
|
|
52
52
|
const normalizedPreset = normalizeInitialBundlesPreset(initialBundles, { showUsage: false });
|
|
53
53
|
|
|
54
54
|
const commands = [];
|
|
55
55
|
if (normalizedPreset === "auth") {
|
|
56
|
-
commands.push(
|
|
56
|
+
commands.push(
|
|
57
|
+
"npx jskit add package auth-provider-supabase-core --auth-supabase-url \"https://YOUR-PROJECT.supabase.co\" --auth-supabase-publishable-key \"sb_publishable_...\" --app-public-url \"http://localhost:5173\""
|
|
58
|
+
);
|
|
59
|
+
commands.push("npx jskit add bundle auth-base");
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
return commands;
|
|
@@ -555,7 +558,7 @@ export async function createApp({
|
|
|
555
558
|
template: String(template),
|
|
556
559
|
initialBundles: resolvedInitialBundles,
|
|
557
560
|
tenancyMode: resolvedTenancyMode,
|
|
558
|
-
|
|
561
|
+
selectedSetupCommands: buildInitialSetupCommands(resolvedInitialBundles),
|
|
559
562
|
targetDirectory,
|
|
560
563
|
dryRun,
|
|
561
564
|
touchedFiles
|
|
@@ -626,15 +629,16 @@ export async function runCli(
|
|
|
626
629
|
stdout.write("- npm run dev\n");
|
|
627
630
|
|
|
628
631
|
stdout.write("\n");
|
|
629
|
-
if (result.
|
|
630
|
-
stdout.write(`Initial framework
|
|
631
|
-
for (const command of result.
|
|
632
|
+
if (result.selectedSetupCommands.length > 0) {
|
|
633
|
+
stdout.write(`Initial framework setup commands (${result.initialBundles}):\n`);
|
|
634
|
+
for (const command of result.selectedSetupCommands) {
|
|
632
635
|
stdout.write(`- ${command}\n`);
|
|
633
636
|
}
|
|
634
637
|
} else {
|
|
635
638
|
stdout.write("First of all run npm install.:\n");
|
|
636
639
|
stdout.write("Then add framework capabilities:\n");
|
|
637
|
-
stdout.write("- npx jskit add auth-
|
|
640
|
+
stdout.write("- npx jskit add package auth-provider-supabase-core --auth-supabase-url \"https://YOUR-PROJECT.supabase.co\" --auth-supabase-publishable-key \"sb_publishable_...\" --app-public-url \"http://localhost:5173\"\n");
|
|
641
|
+
stdout.write("- npx jskit add bundle auth-base\n");
|
|
638
642
|
stdout.write("- npx jskit list\n");
|
|
639
643
|
stdout.write("Run server and client to see it in action:\n");
|
|
640
644
|
stdout.write("- npm run dev\n");
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# __APP_TITLE__
|
|
2
|
-
|
|
3
|
-
Generated with `jskit-create-app` (template: `base-shell`).
|
|
4
|
-
|
|
5
|
-
## Quickstart
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install
|
|
9
|
-
npm run dev
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Refresh JSKIT dependencies to the latest published versions:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
npm run jskit:update
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Automate update + PR + merge release flow:
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm run release
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Server
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
npm run server
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
App configuration files:
|
|
31
|
-
|
|
32
|
-
- `config/public.js` for client-visible feature toggles, including surface definitions.
|
|
33
|
-
- `config/server.js` for server-only toggles/secrets wiring.
|
|
34
|
-
|
|
35
|
-
## Add Capabilities
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npx jskit add auth-base
|
|
39
|
-
```
|