rip-lang 3.13.33 → 3.13.34
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 +1 -1
- package/bin/rip +5 -5
- package/docs/RIP-LANG.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
|
-
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.
|
|
12
|
+
<a href="CHANGELOG.md"><img src="https://img.shields.io/badge/version-3.13.34-blue.svg" alt="Version"></a>
|
|
13
13
|
<a href="#zero-dependencies"><img src="https://img.shields.io/badge/dependencies-ZERO-brightgreen.svg" alt="Dependencies"></a>
|
|
14
14
|
<a href="#"><img src="https://img.shields.io/badge/tests-1%2C300%2F1%2C300-brightgreen.svg" alt="Tests"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
|
package/bin/rip
CHANGED
|
@@ -42,7 +42,7 @@ Options:
|
|
|
42
42
|
-v, --version Show version number
|
|
43
43
|
|
|
44
44
|
Subcommands:
|
|
45
|
-
rip
|
|
45
|
+
rip server [flags] [app] Start server (watches *.rip, HTTPS, mDNS)
|
|
46
46
|
rip check [dir] Type-check all .rip files in directory
|
|
47
47
|
|
|
48
48
|
Serve flags:
|
|
@@ -56,9 +56,9 @@ Examples:
|
|
|
56
56
|
rip # Interactive REPL (terminal)
|
|
57
57
|
rip script.rip # Execute script directly
|
|
58
58
|
rip script.rip arg1 arg2 # Execute with arguments
|
|
59
|
-
rip
|
|
60
|
-
rip
|
|
61
|
-
rip
|
|
59
|
+
rip server # Serve ./index.rip (watches *.rip)
|
|
60
|
+
rip server http # Serve HTTP-only
|
|
61
|
+
rip server myapp # Serve with mDNS name
|
|
62
62
|
rip -c example.rip # Compile and show JavaScript
|
|
63
63
|
rip -o output.js example.rip # Compile and save to file
|
|
64
64
|
rip -s example.rip # Show ONLY s-expressions
|
|
@@ -128,7 +128,7 @@ async function main() {
|
|
|
128
128
|
process.exit(exitCode);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
if (args[0] === '
|
|
131
|
+
if (args[0] === 'server') {
|
|
132
132
|
let serverPath;
|
|
133
133
|
try {
|
|
134
134
|
serverPath = fileURLToPath(import.meta.resolve('@rip-lang/server/server'));
|
package/docs/RIP-LANG.md
CHANGED
|
@@ -1278,7 +1278,7 @@ bun add @rip-lang/csv # CSV parser + writer
|
|
|
1278
1278
|
|
|
1279
1279
|
## @rip-lang/server — Web Framework & Production Server
|
|
1280
1280
|
|
|
1281
|
-
Sinatra-style routing with `@` context magic and built-in validators. Run with `rip
|
|
1281
|
+
Sinatra-style routing with `@` context magic and built-in validators. Run with `rip server` for multi-worker production deployment with hot reload, HTTPS, and mDNS.
|
|
1282
1282
|
|
|
1283
1283
|
```coffee
|
|
1284
1284
|
import { get, post, use, read, start, notFound } from '@rip-lang/server'
|
|
@@ -1315,10 +1315,10 @@ start port: 3000
|
|
|
1315
1315
|
### Serving
|
|
1316
1316
|
|
|
1317
1317
|
```bash
|
|
1318
|
-
rip
|
|
1319
|
-
rip
|
|
1320
|
-
rip
|
|
1321
|
-
rip
|
|
1318
|
+
rip server # Start (uses ./index.rip)
|
|
1319
|
+
rip server --static # No watching, no hot reload (production)
|
|
1320
|
+
rip server myapp # Named (accessible at myapp.local)
|
|
1321
|
+
rip server http:3000 # HTTP on specific port
|
|
1322
1322
|
```
|
|
1323
1323
|
|
|
1324
1324
|
### read() Validators
|