spine-framework 0.1.0 → 0.1.2

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.
@@ -41,6 +41,21 @@
41
41
 
42
42
  import './env-loader.ts'
43
43
  import { Command } from 'commander'
44
+ import { createRequire } from 'module'
45
+ import { resolve, dirname } from 'path'
46
+ import { fileURLToPath } from 'url'
47
+
48
+ const __filename = fileURLToPath(import.meta.url)
49
+ const __dirname = dirname(__filename)
50
+
51
+ function printWelcome() {
52
+ const require = createRequire(import.meta.url)
53
+ try {
54
+ require(resolve(__dirname, 'welcome.cjs'))
55
+ } catch {
56
+ console.log('Spine Framework — run `spine-framework --help` for commands.')
57
+ }
58
+ }
44
59
 
45
60
  const program = new Command()
46
61
 
@@ -100,6 +115,12 @@ registerInstallAppCommands(program)
100
115
  registerStatusCommands(program)
101
116
  registerUninstallAppCommands(program)
102
117
 
118
+ // Show welcome when run with no arguments
119
+ if (process.argv.length === 2) {
120
+ printWelcome()
121
+ process.exit(0)
122
+ }
123
+
103
124
  program.parseAsync(process.argv).catch((err) => {
104
125
  console.error('Error:', err.message)
105
126
  process.exit(1)
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "description": "Spine — enterprise application framework built on Supabase + Netlify + React",
6
6
  "type": "module",
7
7
  "license": "MIT",
8
- "keywords": ["spine", "framework", "supabase", "netlify", "react", "enterprise", "agentic"],
8
+ "keywords": [
9
+ "spine",
10
+ "framework",
11
+ "supabase",
12
+ "netlify",
13
+ "react",
14
+ "enterprise",
15
+ "agentic"
16
+ ],
9
17
  "homepage": "https://github.com/art-mojo-admin/spine#readme",
10
18
  "bugs": {
11
19
  "url": "https://github.com/art-mojo-admin/spine/issues"
@@ -74,7 +82,7 @@
74
82
  "test:integration": "vitest run .framework/tests/integration",
75
83
  "test:boundary": "bash scripts/boundary-check.sh",
76
84
  "test:custom": "vitest run custom/tests",
77
- "postinstall": "node -e \"try{require('./.framework/cli/welcome.cjs')}catch(e){}\"",
85
+ "postinstall": "node .framework/cli/welcome.cjs || true",
78
86
  "docs": "typedoc --config config/typedoc.json"
79
87
  },
80
88
  "dependencies": {
@@ -92,11 +100,21 @@
92
100
  "vite": "^5.0.0 || ^6.0.0"
93
101
  },
94
102
  "peerDependenciesMeta": {
95
- "@netlify/functions": { "optional": false },
96
- "react": { "optional": false },
97
- "react-dom": { "optional": false },
98
- "react-router-dom": { "optional": false },
99
- "vite": { "optional": true }
103
+ "@netlify/functions": {
104
+ "optional": false
105
+ },
106
+ "react": {
107
+ "optional": false
108
+ },
109
+ "react-dom": {
110
+ "optional": false
111
+ },
112
+ "react-router-dom": {
113
+ "optional": false
114
+ },
115
+ "vite": {
116
+ "optional": true
117
+ }
100
118
  },
101
119
  "devDependencies": {
102
120
  "@base-ui/react": "^1.4.1",