@eutobias/serenojs 0.1.0 → 0.1.1
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 +42 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -56,14 +56,54 @@ consumed by any frontend.
|
|
|
56
56
|
|
|
57
57
|
Peer dependencies: `waku`, `react`, `react-dom`.
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## Getting started
|
|
60
|
+
|
|
61
|
+
### Create a new project (recommended)
|
|
62
|
+
|
|
63
|
+
The fastest way to start is the official starter. It generates a Waku app with
|
|
64
|
+
the admin panel, REST API, auth, media, backups, SQLite configuration, a small
|
|
65
|
+
todos example app and agent skills already wired up.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npm create start-serenojs@latest my-app
|
|
69
|
+
# or
|
|
70
|
+
pnpm create start-serenojs my-app
|
|
71
|
+
# or
|
|
72
|
+
yarn create start-serenojs my-app
|
|
73
|
+
# or
|
|
74
|
+
bun create start-serenojs my-app
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
The CLI prompts for the directory and asks whether to install dependencies and
|
|
78
|
+
initialize a git repository. For automation it accepts `--yes`, `--no-install`,
|
|
79
|
+
`--no-git` and `--pm <pnpm|npm|yarn|bun>`. See the
|
|
80
|
+
[`create-start-serenojs`](https://github.com/eutobias/serenojs/tree/main/packages/create-start-serenojs)
|
|
81
|
+
package for the full option list.
|
|
82
|
+
|
|
83
|
+
Then start the app:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
cd my-app
|
|
87
|
+
pnpm dev
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Open <http://localhost:3000/admin> and sign in with `admin@example.com` /
|
|
91
|
+
`admin123`. The example app is at <http://localhost:3000>.
|
|
92
|
+
|
|
93
|
+
The generated project points at the published `@eutobias/serenojs` range, so
|
|
94
|
+
there is nothing else to install manually.
|
|
95
|
+
|
|
96
|
+
### Add to an existing project (manual)
|
|
97
|
+
|
|
98
|
+
If you already have a Waku app and want to add the CMS yourself:
|
|
60
99
|
|
|
61
100
|
```sh
|
|
62
101
|
pnpm add @eutobias/serenojs
|
|
63
102
|
```
|
|
64
103
|
|
|
65
104
|
The package is ESM-only and ships compiled `dist/` plus the prebuilt
|
|
66
|
-
`admin-dist/` SPA.
|
|
105
|
+
`admin-dist/` SPA. Continue with the [Setup](#setup) steps below to create
|
|
106
|
+
`serenojs.config.ts` and mount the middleware.
|
|
67
107
|
|
|
68
108
|
## Setup
|
|
69
109
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eutobias/serenojs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "SerenoJS — schema-driven CMS for Waku: auto-generated admin SPA + Hono REST API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Tobias Taurian <eutobias@gmail.com>",
|
|
8
|
-
"homepage": "https://github.com/eutobias/
|
|
8
|
+
"homepage": "https://github.com/eutobias/serenojs#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/eutobias/
|
|
11
|
+
"url": "git+https://github.com/eutobias/serenojs.git",
|
|
12
12
|
"directory": "packages/serenojs"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/eutobias/
|
|
15
|
+
"url": "https://github.com/eutobias/serenojs/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"cms",
|