@rip-lang/server 1.2.0 → 1.2.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 +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -331,7 +331,7 @@ When `RIP_SETUP_MODE=1` is set, the same file runs the one-time setup phase. Whe
|
|
|
331
331
|
Two layers of hot reload work together in development:
|
|
332
332
|
|
|
333
333
|
- **API changes** (`-w` flag) — The Manager watches for `.rip` file changes in the API directory and triggers rolling worker restarts (zero downtime, server-side).
|
|
334
|
-
- **UI changes** (`watch: true` in `
|
|
334
|
+
- **UI changes** (`watch: true` in `serve`) — Workers register their app's component directories with the Manager via the control socket. The Manager watches those directories and broadcasts SSE reload events to connected browsers (client-side). SSE connections are held by the long-lived Server process, not by workers.
|
|
335
335
|
|
|
336
336
|
Use `--static` in production to disable hot reload entirely.
|
|
337
337
|
|
|
@@ -478,8 +478,8 @@ The dashboard uses the same mDNS infrastructure as your app, so it's always avai
|
|
|
478
478
|
|
|
479
479
|
## Serving Rip UI Apps
|
|
480
480
|
|
|
481
|
-
Rip Server works seamlessly with
|
|
482
|
-
reactive web applications with hot reload. The `
|
|
481
|
+
Rip Server works seamlessly with the `serve` middleware for serving
|
|
482
|
+
reactive web applications with hot reload. The `serve` middleware handles
|
|
483
483
|
framework files, page manifests, and SSE hot-reload — rip-server adds HTTPS,
|
|
484
484
|
mDNS, multi-worker load balancing, and rolling restarts on top.
|
|
485
485
|
|
|
@@ -489,11 +489,11 @@ Create `index.rip`:
|
|
|
489
489
|
|
|
490
490
|
```coffee
|
|
491
491
|
import { get, use, start, notFound } from '@rip-lang/api'
|
|
492
|
-
import {
|
|
492
|
+
import { serve } from '@rip-lang/api/serve'
|
|
493
493
|
|
|
494
494
|
dir = import.meta.dir
|
|
495
495
|
|
|
496
|
-
use
|
|
496
|
+
use serve dir: dir, components: 'routes', includes: ['ui'], watch: true, title: 'My App'
|
|
497
497
|
|
|
498
498
|
get '/css/*', -> @send "#{dir}/css/#{@req.path.slice(5)}"
|
|
499
499
|
|
|
@@ -510,7 +510,7 @@ rip-server -w
|
|
|
510
510
|
|
|
511
511
|
This gives you:
|
|
512
512
|
|
|
513
|
-
- **Framework bundle** served at `/rip/rip
|
|
513
|
+
- **Framework bundle** served at `/rip/rip.min.js`
|
|
514
514
|
- **App bundle** auto-generated at `/{app}/bundle`
|
|
515
515
|
- **Hot reload** via SSE at `/{app}/watch` — save a `.rip` file and the browser
|
|
516
516
|
updates instantly
|
|
@@ -565,5 +565,5 @@ MIT
|
|
|
565
565
|
|
|
566
566
|
- [Rip Language](https://github.com/shreeve/rip-lang)
|
|
567
567
|
- [@rip-lang/api](../api/README.md) — API framework (routing, middleware, `@send`)
|
|
568
|
-
- [
|
|
568
|
+
- [Rip](https://github.com/shreeve/rip-lang) — Compiler + reactive UI framework
|
|
569
569
|
- [Report Issues](https://github.com/shreeve/rip-lang/issues)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Pure Rip application server — multi-worker, hot reload, HTTPS, mDNS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.rip",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"rip-lang": "^3.12.0",
|
|
42
|
-
"@rip-lang/api": "^1.2.
|
|
42
|
+
"@rip-lang/api": "^1.2.6"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"bin/",
|