@catmint/adapter-node 0.0.0-prealpha.1 → 0.0.0-prealpha.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/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # @catmint/adapter-node
2
+
3
+ Node.js production server adapter for [Catmint](https://github.com/darylcecile/catmint).
4
+
5
+ Generates a standalone Node.js server entry point that can be started with `node dist/server/index.js`.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @catmint/adapter-node
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ // catmint.config.ts
17
+ import { defineConfig } from "catmint/config";
18
+ import nodeAdapter from "@catmint/adapter-node";
19
+
20
+ export default defineConfig({
21
+ mode: "fullstack",
22
+ adapter: nodeAdapter({
23
+ port: 6468,
24
+ host: "0.0.0.0",
25
+ }),
26
+ });
27
+ ```
28
+
29
+ ## Options
30
+
31
+ | Option | Type | Default | Description |
32
+ | ------ | -------- | ----------- | ----------------- |
33
+ | `port` | `number` | `3000` | Port to listen on |
34
+ | `host` | `string` | `"0.0.0.0"` | Host to bind to |
35
+
36
+ ## Deploy
37
+
38
+ ```bash
39
+ catmint build
40
+ node dist/server/index.js
41
+ ```
42
+
43
+ ## License
44
+
45
+ GNU General Public License v2
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { generateServerEntry } from "./server-template.js";
17
17
  * ```
18
18
  */
19
19
  export default function nodeAdapter(options) {
20
- const port = options?.port ?? 3000;
20
+ const port = options?.port ?? 6468;
21
21
  const host = options?.host ?? "0.0.0.0";
22
22
  return {
23
23
  name: "@catmint/adapter-node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catmint/adapter-node",
3
- "version": "0.0.0-prealpha.1",
3
+ "version": "0.0.0-prealpha.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "dependencies": {
17
- "catmint": "0.0.0-prealpha.1"
17
+ "catmint": "0.0.0-prealpha.3"
18
18
  },
19
19
  "devDependencies": {
20
20
  "typescript": "^5.7.0"