@devrouter/cli 0.0.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.
Files changed (3) hide show
  1. package/README.md +194 -0
  2. package/dist/dev.js +2772 -0
  3. package/package.json +45 -0
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@devrouter/cli",
3
+ "version": "0.0.1",
4
+ "description": "Local dev routing CLI with shared Traefik on macOS",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/rschlaefli/devrouter.git"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "type": "commonjs",
14
+ "engines": {
15
+ "node": ">=22"
16
+ },
17
+ "bin": {
18
+ "dev": "dist/dev.js"
19
+ },
20
+ "dependencies": {
21
+ "commander": "^12.1.0",
22
+ "dockerode": "^4.0.9",
23
+ "yaml": "^2.5.1"
24
+ },
25
+ "devDependencies": {
26
+ "@types/dockerode": "^3.3.35",
27
+ "@types/node": "^22.10.1",
28
+ "tsup": "^8.3.5",
29
+ "tsx": "^4.19.2",
30
+ "typescript": "^5.7.2"
31
+ },
32
+ "volta": {
33
+ "node": "22.22.0",
34
+ "pnpm": "10.28.2"
35
+ },
36
+ "scripts": {
37
+ "build": "tsup",
38
+ "dev": "tsx src/cli.ts",
39
+ "demo:smoke": "./scripts/smoke-demo.sh",
40
+ "bench:startup": "zsh -lc 'set -euo pipefail; echo \"=== dev --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/dev.js --help >/dev/null; done; echo \"=== dev app add --help (x5) ===\"; for i in {1..5}; do /usr/bin/time -p node dist/dev.js app add --help >/dev/null; done; echo \"=== dev status --json (x3, best effort) ===\"; for i in {1..3}; do /usr/bin/time -p node dist/dev.js status --json >/dev/null || true; done'",
41
+ "typecheck": "tsc --noEmit",
42
+ "install:local": "./scripts/install-local.sh",
43
+ "uninstall:local": "./scripts/uninstall-local.sh"
44
+ }
45
+ }