@teambit/harmony.content.cli-reference 1.95.20 → 1.95.23
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/cli-reference.mdx +18 -0
- package/dist/cli-reference.mdx.js +28 -2
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.23.tgz +0 -0
- package/package.json +2 -2
- package/{preview-1652325916507.js → preview-1653449228788.js} +2 -2
- package/package-tar/teambit-harmony.content.cli-reference-1.95.20.tgz +0 -0
package/cli-reference.mdx
CHANGED
|
@@ -1019,6 +1019,18 @@ alternatively, exporting to any one of the failed scopes, throws server-is-busy
|
|
|
1019
1019
|
|
|
1020
1020
|
`bit scope <sub-command>`
|
|
1021
1021
|
|
|
1022
|
+
### scope set
|
|
1023
|
+
|
|
1024
|
+
**Usage**: `scope set <scope-name> [pattern]`
|
|
1025
|
+
|
|
1026
|
+
**Description**: set the default-scope
|
|
1027
|
+
set a new scope in the workspace.jsonc.
|
|
1028
|
+
if "pattern" is provided, the default-scope will be set to the new components matching the criteria.
|
|
1029
|
+
|
|
1030
|
+
you can use a `<pattern>` for multiple component ids, such as `bit scope set scope-name "org.scope/utils/**"`. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button"
|
|
1031
|
+
always wrap the pattern with quotes to avoid collision with shell commands.
|
|
1032
|
+
to validate the pattern before running this command, run `bit pattern <pattern>`.
|
|
1033
|
+
|
|
1022
1034
|
### scope rename
|
|
1023
1035
|
|
|
1024
1036
|
**Usage**: `scope rename <old-name> <new-name>`
|
|
@@ -1029,6 +1041,12 @@ alternatively, exporting to any one of the failed scopes, throws server-is-busy
|
|
|
1029
1041
|
| ------------ | :--------------: | ---------------------------------------------------------------------------------------------- |
|
|
1030
1042
|
| `--refactor` | `-r` | change the source code of all components using the original scope-name with the new scope-name |
|
|
1031
1043
|
|
|
1044
|
+
### scope fork
|
|
1045
|
+
|
|
1046
|
+
**Usage**: `scope fork <original-scope> <new-scope>`
|
|
1047
|
+
|
|
1048
|
+
**Description**: fork all components of the original-scope and refactor the source-code to use the new package names
|
|
1049
|
+
|
|
1032
1050
|
---
|
|
1033
1051
|
|
|
1034
1052
|
## scope-config
|
|
@@ -4577,7 +4577,27 @@ function MDXContent(_ref) {
|
|
|
4577
4577
|
parentName: "p"
|
|
4578
4578
|
}, "Description"), ": EXPERIMENTAL. manage scope-name"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
4579
4579
|
parentName: "p"
|
|
4580
|
-
}, "bit scope <sub-command>")), (0, _react2.mdx)("h3", null, "scope
|
|
4580
|
+
}, "bit scope <sub-command>")), (0, _react2.mdx)("h3", null, "scope set"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4581
|
+
parentName: "p"
|
|
4582
|
+
}, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
|
|
4583
|
+
parentName: "p"
|
|
4584
|
+
}, "scope set <scope-name> [pattern]")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4585
|
+
parentName: "p"
|
|
4586
|
+
}, "Description"), ": set the default-scope", (0, _react2.mdx)("br", {
|
|
4587
|
+
parentName: "p"
|
|
4588
|
+
}), "\n", "set a new scope in the workspace.jsonc.", (0, _react2.mdx)("br", {
|
|
4589
|
+
parentName: "p"
|
|
4590
|
+
}), "\n", "if \"pattern\" is provided, the default-scope will be set to the new components matching the criteria."), (0, _react2.mdx)("p", null, "you can use a ", (0, _react2.mdx)("inlineCode", {
|
|
4591
|
+
parentName: "p"
|
|
4592
|
+
}, "<pattern>"), " for multiple component ids, such as ", (0, _react2.mdx)("inlineCode", {
|
|
4593
|
+
parentName: "p"
|
|
4594
|
+
}, "bit scope set scope-name \"org.scope/utils/**\""), ". use comma to separate patterns and \"!\" to exclude. e.g. \"ui/", "*", "*", ", !ui/button\"", (0, _react2.mdx)("br", {
|
|
4595
|
+
parentName: "p"
|
|
4596
|
+
}), "\n", "always wrap the pattern with quotes to avoid collision with shell commands.", (0, _react2.mdx)("br", {
|
|
4597
|
+
parentName: "p"
|
|
4598
|
+
}), "\n", "to validate the pattern before running this command, run ", (0, _react2.mdx)("inlineCode", {
|
|
4599
|
+
parentName: "p"
|
|
4600
|
+
}, "bit pattern <pattern>"), "."), (0, _react2.mdx)("h3", null, "scope rename"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4581
4601
|
parentName: "p"
|
|
4582
4602
|
}, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
|
|
4583
4603
|
parentName: "p"
|
|
@@ -4619,7 +4639,13 @@ function MDXContent(_ref) {
|
|
|
4619
4639
|
}, "-r")), (0, _react2.mdx)("td", {
|
|
4620
4640
|
parentName: "tr",
|
|
4621
4641
|
"align": null
|
|
4622
|
-
}, "change the source code of all components using the original scope-name with the new scope-name")))), (0, _react2.mdx)("
|
|
4642
|
+
}, "change the source code of all components using the original scope-name with the new scope-name")))), (0, _react2.mdx)("h3", null, "scope fork"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4643
|
+
parentName: "p"
|
|
4644
|
+
}, "Usage"), ": ", (0, _react2.mdx)("inlineCode", {
|
|
4645
|
+
parentName: "p"
|
|
4646
|
+
}, "scope fork <original-scope> <new-scope>")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4647
|
+
parentName: "p"
|
|
4648
|
+
}, "Description"), ": fork all components of the original-scope and refactor the source-code to use the new package names"), (0, _react2.mdx)("hr", null), (0, _react2.mdx)("h2", null, "scope-config"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("strong", {
|
|
4623
4649
|
parentName: "p"
|
|
4624
4650
|
}, "Workspace only"), ": yes", (0, _react2.mdx)("br", {
|
|
4625
4651
|
parentName: "p"
|