spine-framework 0.3.2 → 0.3.3
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/bin/welcome.cjs +28 -15
- package/package.json +1 -1
package/bin/welcome.cjs
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
// Tells the agent (or developer) exactly what to do next.
|
|
4
4
|
// Uses only Node built-ins — no dependencies.
|
|
5
5
|
|
|
6
|
+
const path = require('path')
|
|
7
|
+
const fs = require('fs')
|
|
8
|
+
|
|
9
|
+
let version = '0.x'
|
|
10
|
+
try {
|
|
11
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'))
|
|
12
|
+
version = pkg.version || version
|
|
13
|
+
} catch { /* ignore */ }
|
|
14
|
+
|
|
15
|
+
const versionLabel = ('Framework v' + version).padEnd(14)
|
|
16
|
+
|
|
6
17
|
const lines = [
|
|
7
18
|
'',
|
|
8
19
|
'╭──────────────────────────────────────────────────────────────╮',
|
|
@@ -12,31 +23,33 @@ const lines = [
|
|
|
12
23
|
'│ ███████╗██████╔╝██║██╔██╗ ██║█████╗ │',
|
|
13
24
|
'│ ╚════██║██╔═══╝ ██║██║╚██╗██║██╔══╝ │',
|
|
14
25
|
'│ ███████║██║ ██║██║ ╚████║███████╗ │',
|
|
15
|
-
|
|
26
|
+
`│ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ${versionLabel}│`,
|
|
16
27
|
'│ │',
|
|
17
28
|
'╰──────────────────────────────────────────────────────────────╯',
|
|
18
29
|
'',
|
|
19
30
|
' Spine Framework installed successfully!',
|
|
20
31
|
'',
|
|
21
|
-
'
|
|
32
|
+
' Next steps:',
|
|
22
33
|
' ─────────────────────────────────────────────',
|
|
23
|
-
'
|
|
34
|
+
' 1. Run init to scaffold the project:',
|
|
24
35
|
'',
|
|
25
|
-
'
|
|
26
|
-
' --url https://<project>.supabase.co \\',
|
|
27
|
-
' --anon-key <anon-key> \\',
|
|
28
|
-
' --service-role-key <service-role-key>',
|
|
36
|
+
' npx spine-framework init',
|
|
29
37
|
'',
|
|
30
|
-
'
|
|
31
|
-
'
|
|
38
|
+
' 2. Fill in your Supabase credentials in .env',
|
|
39
|
+
' (get them from Supabase Dashboard → Project → Settings → API)',
|
|
32
40
|
'',
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
41
|
+
' 3. Apply database migrations:',
|
|
42
|
+
'',
|
|
43
|
+
' npx spine-framework migrate',
|
|
44
|
+
'',
|
|
45
|
+
' 4. Install apps (optional):',
|
|
46
|
+
'',
|
|
47
|
+
' npx spine-framework install-app spine-framework-cortex@latest',
|
|
48
|
+
' npx spine-framework install-app spine-framework-portal@latest',
|
|
49
|
+
'',
|
|
50
|
+
' 5. Start the dev server:',
|
|
36
51
|
'',
|
|
37
|
-
'
|
|
38
|
-
' spine-framework install-app <app-slug> # optional apps',
|
|
39
|
-
' npm run assemble && netlify dev # start dev server',
|
|
52
|
+
' npm run assemble && netlify dev',
|
|
40
53
|
'',
|
|
41
54
|
' Docs: https://github.com/spine-framework/spine-framework',
|
|
42
55
|
'',
|