@hypersonic-js/core 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.
- package/Readme.md +9 -31
- package/package.json +4 -3
package/Readme.md
CHANGED
|
@@ -1,52 +1,30 @@
|
|
|
1
|
-
# @hypersonic/
|
|
1
|
+
# @hypersonic-js/complete
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Hypersonic.js** — everything in one installation. This package re-exports the full public API of every Hypersonic package so you don't have to manage individual package versions.
|
|
4
4
|
|
|
5
5
|
📖 **[hypersonic-js.com](https://hypersonic-js.com)**
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @hypersonic/
|
|
10
|
+
npm install @hypersonic-js/complete
|
|
11
11
|
npm install --save-dev prisma @prisma/client
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## When to use this
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Use `@hypersonic-js/complete` if you want a single dependency that tracks the full framework. Use the individual packages (e.g. `@hypersonic-js/core`) if you need fine-grained control over which parts of the framework you include.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
## Quick start
|
|
19
19
|
|
|
20
20
|
```ts
|
|
21
|
-
import { defineConfig } from '@hypersonic/
|
|
22
|
-
|
|
23
|
-
export default defineConfig({
|
|
24
|
-
server: { port: 3000, host: 'localhost' },
|
|
25
|
-
auth: { trustedOrigins: ['http://localhost:3000'] },
|
|
26
|
-
inertia: { ssr: true },
|
|
27
|
-
})
|
|
21
|
+
import { defineConfig, createApp, loadConfig } from '@hypersonic-js/complete'
|
|
28
22
|
```
|
|
29
23
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
DATABASE_URL="postgresql://localhost:5432/myapp"
|
|
34
|
-
BETTER_AUTH_SECRET="your-secret-at-least-32-characters-long"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**`server.ts`**:
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
import { PrismaClient } from '@prisma/client'
|
|
41
|
-
import { createApp, loadConfig } from '@hypersonic/core'
|
|
42
|
-
|
|
43
|
-
const { config, env } = await loadConfig()
|
|
44
|
-
const app = await createApp({ config, env, prisma: new PrismaClient() })
|
|
45
|
-
await app.start()
|
|
46
|
-
```
|
|
24
|
+
Everything exported by `@hypersonic-js/complete` is identical to the same export from its source package — no wrappers, no overhead.
|
|
47
25
|
|
|
48
26
|
Full documentation at **[hypersonic-js.com](https://hypersonic-js.com)**.
|
|
49
27
|
|
|
50
28
|
## License
|
|
51
29
|
|
|
52
|
-
MIT © [
|
|
30
|
+
MIT © [Joaquim Dalton-Pereira](https://github.com/Zesuperaker)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypersonic-js/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "The core of Hypersonic.js — a modern Django-inspired full-stack TypeScript framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "
|
|
19
|
+
"url": "https://github.com/hypersonic-js/hypersonic-js"
|
|
20
20
|
},
|
|
21
|
-
"author": "
|
|
21
|
+
"author": "Joaquim Dalton-Pereira",
|
|
22
22
|
"license": "MIT",
|
|
23
|
+
"homepage": "https://hypersonic-js.com",
|
|
23
24
|
"publishConfig": {
|
|
24
25
|
"access": "public"
|
|
25
26
|
},
|