orbitpush 0.0.0-stage → 0.1.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 +320 -2
- package/dist/cli.js +175 -0
- package/package.json +62 -4
- package/schema.json +135 -0
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orbitpush",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Deploy static sites to your own bunny.net storage zone and pull zone",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"bunny.net",
|
|
7
|
+
"bunnycdn",
|
|
8
|
+
"cdn",
|
|
9
|
+
"cli",
|
|
10
|
+
"deploy",
|
|
11
|
+
"netlify",
|
|
12
|
+
"static-site"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/lgraubner/orbitpush#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/lgraubner/orbitpush/issues"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": "Lars Graubner",
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/lgraubner/orbitpush.git"
|
|
23
|
+
},
|
|
24
|
+
"bin": {
|
|
25
|
+
"orbitpush": "dist/cli.js"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"schema.json"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"typecheck": "tsc",
|
|
34
|
+
"build": "esbuild src/cli.ts --bundle --minify --platform=node --format=esm --target=node22 --banner:js=\"import { createRequire } from \\\"node:module\\\"; const require = createRequire(import.meta.url);\" --outfile=dist/cli.js",
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"format": "oxfmt",
|
|
37
|
+
"format:check": "oxfmt --check",
|
|
38
|
+
"lint": "oxlint --type-aware",
|
|
39
|
+
"check": "npm run format:check && npm run lint && npm run typecheck && npm test && npm run build",
|
|
40
|
+
"prepare": "lefthook install",
|
|
41
|
+
"prepack": "npm run typecheck && npm run build",
|
|
42
|
+
"test:e2e": "npm run build && playwright test -c e2e"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@commitlint/cli": "21.2.3",
|
|
46
|
+
"@commitlint/config-conventional": "21.2.3",
|
|
47
|
+
"@inquirer/prompts": "8.7.3",
|
|
48
|
+
"@playwright/test": "1.64.1",
|
|
49
|
+
"@types/node": "24.19.2",
|
|
50
|
+
"esbuild": "0.28.2",
|
|
51
|
+
"lefthook": "2.2.2",
|
|
52
|
+
"mri": "1.2.0",
|
|
53
|
+
"oxfmt": "0.73.0",
|
|
54
|
+
"oxlint": "1.88.0",
|
|
55
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
56
|
+
"smol-toml": "1.9.0",
|
|
57
|
+
"typescript": "5.9.3",
|
|
58
|
+
"vitest": "5.0.5",
|
|
59
|
+
"zod": "4.6.7"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=22"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/schema.json
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "orbitpush.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": ["name", "outputDir", "region", "replicationRegions", "geoZones", "pullZoneId"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Name of the storage zone and pull zone."
|
|
14
|
+
},
|
|
15
|
+
"outputDir": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Build output directory that gets deployed."
|
|
18
|
+
},
|
|
19
|
+
"domain": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"format": "hostname",
|
|
22
|
+
"description": "Primary domain: the hostname that serves the site; aliases redirect to it. Change it with `orbitpush domains add <host> --primary`. Added with a free SSL certificate on deploy; removing it here does not remove it from bunny.net."
|
|
23
|
+
},
|
|
24
|
+
"aliases": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": "hostname"
|
|
29
|
+
},
|
|
30
|
+
"uniqueItems": true,
|
|
31
|
+
"description": "Hostnames, added with a free SSL certificate, that 301-redirect to domain. Requires domain and must not repeat it or each other."
|
|
32
|
+
},
|
|
33
|
+
"region": {
|
|
34
|
+
"enum": ["DE", "UK", "SE", "NY", "LA", "SG", "SYD", "BR", "JH"],
|
|
35
|
+
"description": "Main storage region. Cannot be changed after init."
|
|
36
|
+
},
|
|
37
|
+
"replicationRegions": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"enum": ["DE", "UK", "SE", "NY", "LA", "SG", "SYD", "BR", "JH"]
|
|
41
|
+
},
|
|
42
|
+
"description": "Storage replication regions. bunny.net does not allow removing them."
|
|
43
|
+
},
|
|
44
|
+
"geoZones": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"minItems": 1,
|
|
47
|
+
"items": {
|
|
48
|
+
"enum": ["EU", "US", "ASIA", "SA", "AF"]
|
|
49
|
+
},
|
|
50
|
+
"description": "CDN delivery regions of the pull zone."
|
|
51
|
+
},
|
|
52
|
+
"trailingSlash": {
|
|
53
|
+
"enum": ["always", "never", "ignore"],
|
|
54
|
+
"description": "Redirect extensionless paths to their trailing slash form (always), away from it (never), or not at all (ignore). Defaults to always, or ignore in SPA mode."
|
|
55
|
+
},
|
|
56
|
+
"redirects": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"description": "Redirects in the shape of [[redirects]] in netlify.toml. Each becomes an edge rule; the first match wins. {\"from\": \"/*\", \"to\": \"/index.html\", \"status\": 200} turns on SPA mode instead.",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": ["from", "to"],
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"from": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Path to match, such as /blog/:slug or /docs/*, or a full URL to match one host."
|
|
67
|
+
},
|
|
68
|
+
"to": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Target path or URL. :name and :splat insert what the placeholder and * matched."
|
|
71
|
+
},
|
|
72
|
+
"status": {
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"default": 301,
|
|
75
|
+
"description": "301 or 302. 303 and 307 are sent as 302, 308 as 301. Only 200 for SPA mode."
|
|
76
|
+
},
|
|
77
|
+
"force": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"description": "Accepted for Netlify compatibility. Every redirect behaves as forced."
|
|
80
|
+
},
|
|
81
|
+
"query": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"additionalProperties": { "type": "string" },
|
|
84
|
+
"description": "Not supported: the redirect is skipped with a warning."
|
|
85
|
+
},
|
|
86
|
+
"conditions": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"description": "Only Country is supported. Other conditions skip the redirect with a warning.",
|
|
89
|
+
"properties": {
|
|
90
|
+
"Country": {
|
|
91
|
+
"type": "array",
|
|
92
|
+
"minItems": 1,
|
|
93
|
+
"items": { "type": "string", "pattern": "^[A-Za-z]{2}$" },
|
|
94
|
+
"description": "Two-letter country codes, such as [\"de\", \"at\"]."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"minItems": 1,
|
|
100
|
+
"items": { "type": "string" }
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"headers": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"description": "Response headers in the shape of [[headers]] in netlify.toml. Each entry becomes an edge rule; when several match, the last one wins.",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "object",
|
|
111
|
+
"required": ["for", "values"],
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"properties": {
|
|
114
|
+
"for": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"description": "Path to match. * matches any characters, also inside a segment, such as /assets/*.css."
|
|
117
|
+
},
|
|
118
|
+
"values": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": { "type": "string" },
|
|
121
|
+
"description": "Header names and values. Basic-Auth, CDN-* and headers bunny.net sets itself are skipped with a warning."
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"storageZoneId": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"deprecated": true,
|
|
129
|
+
"description": "No longer used: orbitpush reads the storage zone from the pull zone. Older files keep it, and it is ignored."
|
|
130
|
+
},
|
|
131
|
+
"pullZoneId": {
|
|
132
|
+
"type": "integer"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|