@fabrika/cli 0.5.1 → 0.5.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/package.json +12 -12
- package/src/control.ts +6 -0
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabrika/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"zod": "^3.25.76",
|
|
33
|
-
"@fabrika/app": "0.5.
|
|
34
|
-
"@fabrika/auth-core": "0.5.
|
|
35
|
-
"@fabrika/control-contract": "0.5.
|
|
36
|
-
"@fabrika/provider-contract": "0.5.
|
|
37
|
-
"@fabrika/db": "0.5.
|
|
38
|
-
"@fabrika/platform": "0.5.
|
|
39
|
-
"@fabrika/platform-node": "0.5.
|
|
40
|
-
"@fabrika/check": "0.5.
|
|
33
|
+
"@fabrika/app": "0.5.2",
|
|
34
|
+
"@fabrika/auth-core": "0.5.2",
|
|
35
|
+
"@fabrika/control-contract": "0.5.2",
|
|
36
|
+
"@fabrika/provider-contract": "0.5.2",
|
|
37
|
+
"@fabrika/db": "0.5.2",
|
|
38
|
+
"@fabrika/platform": "0.5.2",
|
|
39
|
+
"@fabrika/platform-node": "0.5.2",
|
|
40
|
+
"@fabrika/check": "0.5.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@fabrika/builder": "0.5.
|
|
44
|
-
"@fabrika/provider-cloudflare": "0.5.
|
|
45
|
-
"@fabrika/provider-zerops": "0.5.
|
|
43
|
+
"@fabrika/builder": "0.5.2",
|
|
44
|
+
"@fabrika/provider-cloudflare": "0.5.2",
|
|
45
|
+
"@fabrika/provider-zerops": "0.5.2"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|
|
48
48
|
"@fabrika/builder": {
|
package/src/control.ts
CHANGED
|
@@ -102,6 +102,12 @@ connected GitHub App, \`none\` registers an anonymous PUBLIC repository source,
|
|
|
102
102
|
installation outright. With \`none\`, control reads the repository once without a token and refuses one
|
|
103
103
|
GitHub hides: a private repository needs the GitHub App connected in the console first.
|
|
104
104
|
|
|
105
|
+
\`--trigger-ref\` is the git ref whose push deploys the environment; without it the environment deploys only
|
|
106
|
+
on \`deploy\`. A bare name is a branch: \`--trigger-ref=deploy/prod\` is stored as \`refs/heads/deploy/prod\`.
|
|
107
|
+
A full ref is kept as given: \`refs/heads/<branch>\`, \`refs/tags/<tag>\`, or a \`*\` glob such as
|
|
108
|
+
\`refs/tags/v*\`, which deploys every matching tag. A tag always needs the \`refs/tags/\` form. Each
|
|
109
|
+
environment of an app needs its own trigger ref.
|
|
110
|
+
|
|
105
111
|
Namespace placement options, each defaulting to what the preset would choose:
|
|
106
112
|
|
|
107
113
|
--project=<name> the provider project the namespace owns; on Zerops the default is
|
package/src/index.ts
CHANGED
|
@@ -45,6 +45,8 @@ Run \`fabrika app dev --help\` for its surface.
|
|
|
45
45
|
\`app register\` compiles the manifest in memory, exactly as \`app build\` would, and sends the request
|
|
46
46
|
\`control register --manifest=<path>\` sends for it. It writes no file, CREATES only, and reads the
|
|
47
47
|
control credential from FABRIKA_CONTROL_KEY alone; a changed manifest is \`control apps environments put\`.
|
|
48
|
+
A bare \`--trigger-ref\` is a branch (\`deploy/prod\` deploys on a push to \`refs/heads/deploy/prod\`); a tag needs
|
|
49
|
+
\`refs/tags/<tag>\` or a glob such as \`refs/tags/v*\`. \`fabrika control --help\` lists every form.
|
|
48
50
|
|
|
49
51
|
\`fabrika db\` manages an application's Postgres schema: migration files, applying them (the template's
|
|
50
52
|
\`run.initCommands\`), the generated types and the generated isolation tests. Run \`fabrika db --help\` for its surface.
|