portcall 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +97 -2
- package/dist/portcall.mjs +2886 -0
- package/package.json +49 -3
- package/schema.json +71 -0
package/package.json
CHANGED
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "portcall",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Run your local dev servers in the background, on fixed ports, with logs your coding agents can read",
|
|
6
|
+
"author": "Joris Gallot",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/joris-gallot/portcall#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/joris-gallot/portcall.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/joris-gallot/portcall/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"dev-server",
|
|
16
|
+
"ports",
|
|
17
|
+
"process-manager",
|
|
18
|
+
"logs",
|
|
19
|
+
"agents",
|
|
20
|
+
"cli"
|
|
21
|
+
],
|
|
22
|
+
"bin": {
|
|
23
|
+
"portcall": "./dist/portcall.mjs"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"schema.json"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=20.19"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@antfu/eslint-config": "^9.5.1",
|
|
37
|
+
"@types/node": "^26.6.6",
|
|
38
|
+
"eslint": "^10.14.0",
|
|
39
|
+
"tsdown": "^0.23.7",
|
|
40
|
+
"typescript": "~6.0.3",
|
|
41
|
+
"vitest": "^5.1.0",
|
|
42
|
+
"zod": "^4.6.7"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsdown",
|
|
46
|
+
"typecheck": "tsc --noEmit",
|
|
47
|
+
"lint": "eslint .",
|
|
48
|
+
"lint:fix": "eslint . --fix",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"schema": "node scripts/schema.ts"
|
|
51
|
+
}
|
|
6
52
|
}
|
package/schema.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"pattern": "^\\w[\\w.-]*$",
|
|
11
|
+
"description": "Project name, used by `portcall -p <name>` and in the logs folder."
|
|
12
|
+
},
|
|
13
|
+
"services": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"propertyNames": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^\\w[\\w.-]*$"
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"command": {
|
|
23
|
+
"description": "Shell command that runs the service. Omit it for an external service (a database in Docker...): portcall then only checks its port.",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"port": {
|
|
28
|
+
"type": "integer",
|
|
29
|
+
"minimum": 1,
|
|
30
|
+
"maximum": 65535,
|
|
31
|
+
"description": "Port the service listens on. Also passed to the command as PORT."
|
|
32
|
+
},
|
|
33
|
+
"cwd": {
|
|
34
|
+
"description": "Directory to run the command in, relative to portcall.json. Default: the project root.",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"env": {
|
|
38
|
+
"description": "Extra environment. {port} is this service's port, {ports.<service>} another service's.",
|
|
39
|
+
"type": "object",
|
|
40
|
+
"propertyNames": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"additionalProperties": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"readyTimeout": {
|
|
48
|
+
"description": "Seconds `portcall up` waits for the port. Default: 60.",
|
|
49
|
+
"type": "number",
|
|
50
|
+
"exclusiveMinimum": 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"port"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false
|
|
57
|
+
},
|
|
58
|
+
"description": "The project's services, by name."
|
|
59
|
+
},
|
|
60
|
+
"worktrees": {
|
|
61
|
+
"description": "Let each git worktree of the project run its services at the same time, on ports offset from the declared ones (external services keep theirs). Commands must take their port from PORT and {ports.<service>}. Default: false, all checkouts share the declared ports.",
|
|
62
|
+
"type": "boolean"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"name",
|
|
67
|
+
"services"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"title": "portcall.json"
|
|
71
|
+
}
|