devlanes 0.11.3 → 0.12.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/package.json +7 -7
- package/schema.json +20 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devlanes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Development environments in Git worktree lanes",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://devlanes.run",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@devlanes/darwin-arm64": "0.
|
|
34
|
-
"@devlanes/darwin-x64": "0.
|
|
35
|
-
"@devlanes/linux-arm64": "0.
|
|
36
|
-
"@devlanes/linux-x64": "0.
|
|
37
|
-
"@devlanes/win32-arm64": "0.
|
|
38
|
-
"@devlanes/win32-x64": "0.
|
|
33
|
+
"@devlanes/darwin-arm64": "0.12.0",
|
|
34
|
+
"@devlanes/darwin-x64": "0.12.0",
|
|
35
|
+
"@devlanes/linux-arm64": "0.12.0",
|
|
36
|
+
"@devlanes/linux-x64": "0.12.0",
|
|
37
|
+
"@devlanes/win32-arm64": "0.12.0",
|
|
38
|
+
"@devlanes/win32-x64": "0.12.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/schema.json
CHANGED
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"type": "null"
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
|
-
"description": "Command replacing the image's default: a list is used as is, a string runs through `/bin/sh -c` inside the container.",
|
|
69
|
+
"description": "Command replacing the image's default: a list is used as is, a string runs through `/bin/sh -c` inside the container. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`.",
|
|
70
70
|
"examples": [
|
|
71
71
|
[
|
|
72
72
|
"server",
|
|
73
73
|
"--config=/policies/config.yaml"
|
|
74
74
|
]
|
|
75
75
|
],
|
|
76
|
-
"markdownDescription": "Command replacing the image's default: a list is used as is, a string runs through `/bin/sh -c` inside the container."
|
|
76
|
+
"markdownDescription": "Command replacing the image's default: a list is used as is, a string runs through `/bin/sh -c` inside the container. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`."
|
|
77
77
|
},
|
|
78
78
|
"env": {
|
|
79
79
|
"additionalProperties": {
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"markdownDescription": "Extra check the start waits for once the container is up (the image's healthcheck, else its first port accepting TCP), before setup, tasks and services run. Write `started` or one of `tcp`, `http`, `log` (matched against the container's logs) or `cmd` (run on the host). If it does not pass within its timeout (default 60s), the start fails."
|
|
180
180
|
},
|
|
181
181
|
"volumes": {
|
|
182
|
-
"description": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts
|
|
182
|
+
"description": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts; relative ones start at the project file's directory, in the lane's worktree for a `per_lane` container and in the primary worktree for a shared one. A bare name is a named volume kept per project or per lane.",
|
|
183
183
|
"examples": [
|
|
184
184
|
[
|
|
185
185
|
"./infra/cerbos:/policies:ro"
|
|
@@ -187,13 +187,13 @@
|
|
|
187
187
|
],
|
|
188
188
|
"items": {
|
|
189
189
|
"$ref": "#/$defs/Templated_string",
|
|
190
|
-
"description": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts
|
|
190
|
+
"description": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts; relative ones start at the project file's directory, in the lane's worktree for a `per_lane` container and in the primary worktree for a shared one. A bare name is a named volume kept per project or per lane.",
|
|
191
191
|
"examples": [
|
|
192
192
|
"./infra/cerbos:/policies:ro"
|
|
193
193
|
],
|
|
194
|
-
"markdownDescription": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts
|
|
194
|
+
"markdownDescription": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts; relative ones start at the project file's directory, in the lane's worktree for a `per_lane` container and in the primary worktree for a shared one. A bare name is a named volume kept per project or per lane."
|
|
195
195
|
},
|
|
196
|
-
"markdownDescription": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts
|
|
196
|
+
"markdownDescription": "Mounts as `source:destination[:mode]`. `./relative` and `/absolute` sources are bind mounts; relative ones start at the project file's directory, in the lane's worktree for a `per_lane` container and in the primary worktree for a shared one. A bare name is a named volume kept per project or per lane.",
|
|
197
197
|
"type": [
|
|
198
198
|
"array",
|
|
199
199
|
"null"
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
"type": "null"
|
|
794
794
|
}
|
|
795
795
|
],
|
|
796
|
-
"description": "Command to run: a string runs through `/bin/sh -c`, a list runs the program directly. Write the command you mean, such as `docker compose exec -T postgres ...`; devlanes runs it as written. Required.",
|
|
796
|
+
"description": "Command to run: a string runs through `/bin/sh -c`, a list runs the program directly. Write the command you mean, such as `docker compose exec -T postgres ...`; devlanes runs it as written. Required. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`.",
|
|
797
797
|
"examples": [
|
|
798
798
|
"pnpm dev",
|
|
799
799
|
[
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
"${{ self.port }}"
|
|
804
804
|
]
|
|
805
805
|
],
|
|
806
|
-
"markdownDescription": "Command to run: a string runs through `/bin/sh -c`, a list runs the program directly. Write the command you mean, such as `docker compose exec -T postgres ...`; devlanes runs it as written. Required."
|
|
806
|
+
"markdownDescription": "Command to run: a string runs through `/bin/sh -c`, a list runs the program directly. Write the command you mean, such as `docker compose exec -T postgres ...`; devlanes runs it as written. Required. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`."
|
|
807
807
|
},
|
|
808
808
|
"timeout": {
|
|
809
809
|
"anyOf": [
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
"type": "null"
|
|
853
853
|
}
|
|
854
854
|
],
|
|
855
|
-
"description": "Compose file, or a list of files merged like repeated `-f`, relative to the project. Its services are shared by every lane unless listed in `per_lane`; the shared project runs from the primary worktree with
|
|
855
|
+
"description": "Compose file, or a list of files merged like repeated `-f`, relative to the project. Its services are shared by every lane unless listed in `per_lane`; the shared project runs from the primary worktree with the `.env` next to the project file there as `--env-file`.",
|
|
856
856
|
"examples": [
|
|
857
857
|
"docker-compose.yml",
|
|
858
858
|
[
|
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
"docker-compose.dev.yml"
|
|
861
861
|
]
|
|
862
862
|
],
|
|
863
|
-
"markdownDescription": "Compose file, or a list of files merged like repeated `-f`, relative to the project. Its services are shared by every lane unless listed in `per_lane`; the shared project runs from the primary worktree with
|
|
863
|
+
"markdownDescription": "Compose file, or a list of files merged like repeated `-f`, relative to the project. Its services are shared by every lane unless listed in `per_lane`; the shared project runs from the primary worktree with the `.env` next to the project file there as `--env-file`."
|
|
864
864
|
},
|
|
865
865
|
"containers": {
|
|
866
866
|
"additionalProperties": {
|
|
@@ -1606,20 +1606,20 @@
|
|
|
1606
1606
|
"env": {
|
|
1607
1607
|
"additionalProperties": {
|
|
1608
1608
|
"$ref": "#/$defs/Templated_Scalar",
|
|
1609
|
-
"description": "Variables for the services this profile
|
|
1609
|
+
"description": "Variables for the services, tasks and `infra.setup` and `infra.teardown` commands of a lane while this profile is active, and for `devlanes exec` and `devlanes with` when they read neither `self` nor `replica`. They sit above each unit's own `env`, which cannot override them, so put a variable that some task must not get, such as `NODE_ENV: production` next to an install task that needs devDependencies, in `global_env` instead.",
|
|
1610
1610
|
"examples": [
|
|
1611
|
-
"
|
|
1611
|
+
"warn"
|
|
1612
1612
|
],
|
|
1613
|
-
"markdownDescription": "Variables for the services this profile
|
|
1613
|
+
"markdownDescription": "Variables for the services, tasks and `infra.setup` and `infra.teardown` commands of a lane while this profile is active, and for `devlanes exec` and `devlanes with` when they read neither `self` nor `replica`. They sit above each unit's own `env`, which cannot override them, so put a variable that some task must not get, such as `NODE_ENV: production` next to an install task that needs devDependencies, in `global_env` instead."
|
|
1614
1614
|
},
|
|
1615
1615
|
"default": {},
|
|
1616
|
-
"description": "Variables for the services this profile
|
|
1616
|
+
"description": "Variables for the services, tasks and `infra.setup` and `infra.teardown` commands of a lane while this profile is active, and for `devlanes exec` and `devlanes with` when they read neither `self` nor `replica`. They sit above each unit's own `env`, which cannot override them, so put a variable that some task must not get, such as `NODE_ENV: production` next to an install task that needs devDependencies, in `global_env` instead.",
|
|
1617
1617
|
"examples": [
|
|
1618
1618
|
{
|
|
1619
|
-
"
|
|
1619
|
+
"LOG_LEVEL": "warn"
|
|
1620
1620
|
}
|
|
1621
1621
|
],
|
|
1622
|
-
"markdownDescription": "Variables for the services this profile
|
|
1622
|
+
"markdownDescription": "Variables for the services, tasks and `infra.setup` and `infra.teardown` commands of a lane while this profile is active, and for `devlanes exec` and `devlanes with` when they read neither `self` nor `replica`. They sit above each unit's own `env`, which cannot override them, so put a variable that some task must not get, such as `NODE_ENV: production` next to an install task that needs devDependencies, in `global_env` instead.",
|
|
1623
1623
|
"type": "object"
|
|
1624
1624
|
},
|
|
1625
1625
|
"exclude": {
|
|
@@ -2372,7 +2372,7 @@
|
|
|
2372
2372
|
"type": "null"
|
|
2373
2373
|
}
|
|
2374
2374
|
],
|
|
2375
|
-
"description": "Command that starts the service. A string runs with `/bin/sh -c`, so pipes, `&&` and multi-line scripts work; a list is an argv run directly without a shell. It starts in the
|
|
2375
|
+
"description": "Command that starts the service. A string runs with `/bin/sh -c`, so pipes, `&&` and multi-line scripts work; a list is an argv run directly without a shell. It starts in the project file's directory unless `cwd` is set. devlanes runs it exactly as written, so it cannot be combined with `preset`; prefer `run_script` when the command is a script in a project file. Exactly one of `run` and `run_script` is required after templates are applied. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`.",
|
|
2376
2376
|
"examples": [
|
|
2377
2377
|
"pnpm dev",
|
|
2378
2378
|
[
|
|
@@ -2382,7 +2382,7 @@
|
|
|
2382
2382
|
"${{ self.port }}"
|
|
2383
2383
|
]
|
|
2384
2384
|
],
|
|
2385
|
-
"markdownDescription": "Command that starts the service. A string runs with `/bin/sh -c`, so pipes, `&&` and multi-line scripts work; a list is an argv run directly without a shell. It starts in the
|
|
2385
|
+
"markdownDescription": "Command that starts the service. A string runs with `/bin/sh -c`, so pipes, `&&` and multi-line scripts work; a list is an argv run directly without a shell. It starts in the project file's directory unless `cwd` is set. devlanes runs it exactly as written, so it cannot be combined with `preset`; prefer `run_script` when the command is a script in a project file. Exactly one of `run` and `run_script` is required after templates are applied. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`."
|
|
2386
2386
|
},
|
|
2387
2387
|
"run_script": {
|
|
2388
2388
|
"anyOf": [
|
|
@@ -2965,7 +2965,7 @@
|
|
|
2965
2965
|
"type": "null"
|
|
2966
2966
|
}
|
|
2967
2967
|
],
|
|
2968
|
-
"description": "Command to run: a string runs through `/bin/sh -c` (pipes and multi-line scripts work), a list runs the program directly with those arguments. Use exactly one of `run`, `run_script` or `steps`.",
|
|
2968
|
+
"description": "Command to run: a string runs through `/bin/sh -c` (pipes and multi-line scripts work), a list runs the program directly with those arguments. Use exactly one of `run`, `run_script` or `steps`. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`.",
|
|
2969
2969
|
"examples": [
|
|
2970
2970
|
"pnpm dev",
|
|
2971
2971
|
[
|
|
@@ -2975,7 +2975,7 @@
|
|
|
2975
2975
|
"${{ self.port }}"
|
|
2976
2976
|
]
|
|
2977
2977
|
],
|
|
2978
|
-
"markdownDescription": "Command to run: a string runs through `/bin/sh -c` (pipes and multi-line scripts work), a list runs the program directly with those arguments. Use exactly one of `run`, `run_script` or `steps`."
|
|
2978
|
+
"markdownDescription": "Command to run: a string runs through `/bin/sh -c` (pipes and multi-line scripts work), a list runs the program directly with those arguments. Use exactly one of `run`, `run_script` or `steps`. In a list, an item that is one `${{ }}` expression giving a number or `true`/`false` becomes its text, such as `--port` followed by `${{ self.port }}`."
|
|
2979
2979
|
},
|
|
2980
2980
|
"run_script": {
|
|
2981
2981
|
"anyOf": [
|