@teambit/harmony.content.cli-reference 2.0.1062 → 2.0.1064
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.docs.mdx +1 -1
- package/cli-reference.json +34 -1
- package/cli-reference.mdx +22 -1
- package/dist/cli-reference.docs.mdx +1 -1
- package/dist/cli-reference.json +34 -1
- package/dist/cli-reference.mdx.js +1 -1
- package/dist/cli-reference.mdx.js.map +1 -1
- package/dist/{preview-1779999088763.js → preview-1780084871933.js} +2 -2
- package/package.json +2 -2
package/cli-reference.docs.mdx
CHANGED
package/cli-reference.json
CHANGED
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
]
|
|
1032
1032
|
],
|
|
1033
1033
|
"description": "test and validate component patterns",
|
|
1034
|
-
"extendedDescription": "this command helps validating a pattern before using it in other commands.\nNOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.\na pattern can be a simple component-id or component-name. e.g. 'ui/button'.\na pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'\nto exclude, use '!'. e.g. 'ui/**, !ui/button'\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).\n\nto filter by a state or attribute, prefix the pattern with \"$\". e.g. '$deprecated', '$modified'.\nlist of supported states: [new, modified, deprecated, deleted, snappedOnMain, softTagged, codeModified, localOnly].\nto filter by multi-params state/attribute, separate the params with \":\", e.g. '$env:teambit.react/react'.\nlist of supported multi-params states: [env].\nto match a state and another criteria, use \" AND \" keyword. e.g. '$modified AND teambit.workspace/** AND $env:teambit.react/react'.\n",
|
|
1034
|
+
"extendedDescription": "this command helps validating a pattern before using it in other commands.\nNOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.\na pattern can be a simple component-id or component-name. e.g. 'ui/button'.\na pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'\nto exclude, use '!'. e.g. 'ui/**, !ui/button'\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).\n\nto filter by a state or attribute, prefix the pattern with \"$\". e.g. '$deprecated', '$modified'.\nlist of supported states: [new, modified, deprecated, deleted, internal, snappedOnMain, softTagged, codeModified, localOnly].\nto filter by multi-params state/attribute, separate the params with \":\", e.g. '$env:teambit.react/react'.\nlist of supported multi-params states: [env].\nto match a state and another criteria, use \" AND \" keyword. e.g. '$modified AND teambit.workspace/** AND $env:teambit.react/react'.\n",
|
|
1035
1035
|
"group": "info-analysis",
|
|
1036
1036
|
"private": false,
|
|
1037
1037
|
"remoteOp": true,
|
|
@@ -6014,6 +6014,39 @@
|
|
|
6014
6014
|
}
|
|
6015
6015
|
]
|
|
6016
6016
|
},
|
|
6017
|
+
{
|
|
6018
|
+
"name": "internalize [component-pattern]",
|
|
6019
|
+
"alias": "",
|
|
6020
|
+
"options": [
|
|
6021
|
+
[
|
|
6022
|
+
"r",
|
|
6023
|
+
"revert",
|
|
6024
|
+
"remove the internal mark from the matching components"
|
|
6025
|
+
],
|
|
6026
|
+
[
|
|
6027
|
+
"l",
|
|
6028
|
+
"list",
|
|
6029
|
+
"list the components currently marked as internal"
|
|
6030
|
+
],
|
|
6031
|
+
[
|
|
6032
|
+
"j",
|
|
6033
|
+
"json",
|
|
6034
|
+
"return the output as json (the internal components with --list, otherwise the affected component-ids)"
|
|
6035
|
+
]
|
|
6036
|
+
],
|
|
6037
|
+
"description": "mark components as internal to hide them by default in the UI",
|
|
6038
|
+
"extendedDescription": "marks components as internal locally, then after snap/tag and export they become internal in the remote scope.\nunlike \"bit local-only\", internal components are still versioned and exported - they are only hidden by default in the UI (workspace, scope and Bit Cloud).\nuse --revert to remove the internal mark, or --list to show the components currently marked as internal.",
|
|
6039
|
+
"group": "collaborate",
|
|
6040
|
+
"private": false,
|
|
6041
|
+
"remoteOp": true,
|
|
6042
|
+
"skipWorkspace": true,
|
|
6043
|
+
"arguments": [
|
|
6044
|
+
{
|
|
6045
|
+
"name": "component-pattern",
|
|
6046
|
+
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6047
|
+
}
|
|
6048
|
+
]
|
|
6049
|
+
},
|
|
6017
6050
|
{
|
|
6018
6051
|
"name": "generate-preview [component-pattern]",
|
|
6019
6052
|
"alias": "",
|
package/cli-reference.mdx
CHANGED
|
@@ -1252,6 +1252,27 @@ automatically imports components, compiles components, links to node_modules, an
|
|
|
1252
1252
|
|
|
1253
1253
|
---
|
|
1254
1254
|
|
|
1255
|
+
## internalize
|
|
1256
|
+
|
|
1257
|
+
**Description**: mark components as internal to hide them by default in the UI
|
|
1258
|
+
marks components as internal locally, then after snap/tag and export they become internal in the remote scope.
|
|
1259
|
+
unlike "bit local-only", internal components are still versioned and exported - they are only hidden by default in the UI (workspace, scope and Bit Cloud).
|
|
1260
|
+
use --revert to remove the internal mark, or --list to show the components currently marked as internal.
|
|
1261
|
+
|
|
1262
|
+
`bit internalize [component-pattern]`
|
|
1263
|
+
|
|
1264
|
+
| **Arg** | **Description** |
|
|
1265
|
+
| ------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
|
1266
|
+
| `component-pattern` | component name, component id, component pattern, or relative directory path. use component pattern to select multiple components. wrap the pattern with quotes. use comma to separate patterns and "!" to exclude. e.g. "ui/\*\*, !ui/button". use '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'. use `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern. |
|
|
1267
|
+
|
|
1268
|
+
| **Option** | **Option alias** | **Description** |
|
|
1269
|
+
| ---------- | :--------------: | ----------------------------------------------------------------------------------------------------- |
|
|
1270
|
+
| `--revert` | `-r` | remove the internal mark from the matching components |
|
|
1271
|
+
| `--list` | `-l` | list the components currently marked as internal |
|
|
1272
|
+
| `--json` | `-j` | return the output as json (the internal components with --list, otherwise the affected component-ids) |
|
|
1273
|
+
|
|
1274
|
+
---
|
|
1275
|
+
|
|
1255
1276
|
## lane
|
|
1256
1277
|
|
|
1257
1278
|
**Alias**: `l`
|
|
@@ -1991,7 +2012,7 @@ to exclude, use '!'. e.g. 'ui/**, !ui/button'
|
|
|
1991
2012
|
the matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).
|
|
1992
2013
|
|
|
1993
2014
|
to filter by a state or attribute, prefix the pattern with "$". e.g. '$deprecated', '$modified'.
|
|
1994
|
-
list of supported states: [new, modified, deprecated, deleted, snappedOnMain, softTagged, codeModified, localOnly].
|
|
2015
|
+
list of supported states: [new, modified, deprecated, deleted, internal, snappedOnMain, softTagged, codeModified, localOnly].
|
|
1995
2016
|
to filter by multi-params state/attribute, separate the params with ":", e.g. '$env:teambit.react/react'.
|
|
1996
2017
|
list of supported multi-params states: [env].
|
|
1997
2018
|
to match a state and another criteria, use " AND " keyword. e.g. '$modified AND teambit.workspace/\*\* AND $env:teambit.react/react'.
|
package/dist/cli-reference.json
CHANGED
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
]
|
|
1032
1032
|
],
|
|
1033
1033
|
"description": "test and validate component patterns",
|
|
1034
|
-
"extendedDescription": "this command helps validating a pattern before using it in other commands.\nNOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.\na pattern can be a simple component-id or component-name. e.g. 'ui/button'.\na pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'\nto exclude, use '!'. e.g. 'ui/**, !ui/button'\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).\n\nto filter by a state or attribute, prefix the pattern with \"$\". e.g. '$deprecated', '$modified'.\nlist of supported states: [new, modified, deprecated, deleted, snappedOnMain, softTagged, codeModified, localOnly].\nto filter by multi-params state/attribute, separate the params with \":\", e.g. '$env:teambit.react/react'.\nlist of supported multi-params states: [env].\nto match a state and another criteria, use \" AND \" keyword. e.g. '$modified AND teambit.workspace/** AND $env:teambit.react/react'.\n",
|
|
1034
|
+
"extendedDescription": "this command helps validating a pattern before using it in other commands.\nNOTE: always wrap the pattern with quotes to avoid collision with shell commands. depending on your shell, it might be single or double quotes.\na pattern can be a simple component-id or component-name. e.g. 'ui/button'.\na pattern can be used with wildcards for multiple component ids, e.g. 'org.scope/utils/**' or '**/utils/**' to capture all org/scopes.\nto enter multiple patterns, separate them by a comma, e.g. 'ui/*, lib/*'\nto exclude, use '!'. e.g. 'ui/**, !ui/button'\nthe matching algorithm is from multimatch (@see https://github.com/sindresorhus/multimatch).\n\nto filter by a state or attribute, prefix the pattern with \"$\". e.g. '$deprecated', '$modified'.\nlist of supported states: [new, modified, deprecated, deleted, internal, snappedOnMain, softTagged, codeModified, localOnly].\nto filter by multi-params state/attribute, separate the params with \":\", e.g. '$env:teambit.react/react'.\nlist of supported multi-params states: [env].\nto match a state and another criteria, use \" AND \" keyword. e.g. '$modified AND teambit.workspace/** AND $env:teambit.react/react'.\n",
|
|
1035
1035
|
"group": "info-analysis",
|
|
1036
1036
|
"private": false,
|
|
1037
1037
|
"remoteOp": true,
|
|
@@ -6014,6 +6014,39 @@
|
|
|
6014
6014
|
}
|
|
6015
6015
|
]
|
|
6016
6016
|
},
|
|
6017
|
+
{
|
|
6018
|
+
"name": "internalize [component-pattern]",
|
|
6019
|
+
"alias": "",
|
|
6020
|
+
"options": [
|
|
6021
|
+
[
|
|
6022
|
+
"r",
|
|
6023
|
+
"revert",
|
|
6024
|
+
"remove the internal mark from the matching components"
|
|
6025
|
+
],
|
|
6026
|
+
[
|
|
6027
|
+
"l",
|
|
6028
|
+
"list",
|
|
6029
|
+
"list the components currently marked as internal"
|
|
6030
|
+
],
|
|
6031
|
+
[
|
|
6032
|
+
"j",
|
|
6033
|
+
"json",
|
|
6034
|
+
"return the output as json (the internal components with --list, otherwise the affected component-ids)"
|
|
6035
|
+
]
|
|
6036
|
+
],
|
|
6037
|
+
"description": "mark components as internal to hide them by default in the UI",
|
|
6038
|
+
"extendedDescription": "marks components as internal locally, then after snap/tag and export they become internal in the remote scope.\nunlike \"bit local-only\", internal components are still versioned and exported - they are only hidden by default in the UI (workspace, scope and Bit Cloud).\nuse --revert to remove the internal mark, or --list to show the components currently marked as internal.",
|
|
6039
|
+
"group": "collaborate",
|
|
6040
|
+
"private": false,
|
|
6041
|
+
"remoteOp": true,
|
|
6042
|
+
"skipWorkspace": true,
|
|
6043
|
+
"arguments": [
|
|
6044
|
+
{
|
|
6045
|
+
"name": "component-pattern",
|
|
6046
|
+
"description": "component name, component id, component pattern, or relative directory path. use component pattern to select multiple components.\nwrap the pattern with quotes. use comma to separate patterns and \"!\" to exclude. e.g. \"ui/**, !ui/button\".\nuse '$' prefix to filter by states/attributes, e.g. '$deprecated', '$modified' or '$env:teambit.react/react'.\nuse `bit pattern --help` to understand patterns better and `bit pattern <pattern>` to validate the pattern."
|
|
6047
|
+
}
|
|
6048
|
+
]
|
|
6049
|
+
},
|
|
6017
6050
|
{
|
|
6018
6051
|
"name": "generate-preview [component-pattern]",
|
|
6019
6052
|
"alias": "",
|