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.
Files changed (2) hide show
  1. package/bin/welcome.cjs +28 -15
  2. 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
- '│ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ Framework v0.2 │',
26
+ `│ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ${versionLabel}│`,
16
27
  '│ │',
17
28
  '╰──────────────────────────────────────────────────────────────╯',
18
29
  '',
19
30
  ' Spine Framework installed successfully!',
20
31
  '',
21
- ' To complete setup you need a Supabase project.',
32
+ ' Next steps:',
22
33
  ' ─────────────────────────────────────────────',
23
- ' If you have one already, run:',
34
+ ' 1. Run init to scaffold the project:',
24
35
  '',
25
- ' spine-framework init \\',
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
- ' Your credentials are at:',
31
- ' Supabase Dashboard → Your Project → Settings → API',
38
+ ' 2. Fill in your Supabase credentials in .env',
39
+ ' (get them from Supabase Dashboard → Project → Settings → API)',
32
40
  '',
33
- ' ─────────────────────────────────────────────',
34
- ' If you need a Supabase project, create one at:',
35
- ' https://supabase.com/dashboard → New project',
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
- ' After init:',
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
  '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "private": false,
5
5
  "description": "Spine — enterprise application framework built on Supabase + Netlify + React",
6
6
  "type": "module",