@teambit/harmony.content.cli-reference 1.95.83 → 1.95.85
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.json +6 -11
- package/cli-reference.mdx +3 -4
- package/dist/cli-reference.json +6 -11
- package/dist/cli-reference.mdx.js +8 -25
- package/dist/cli-reference.mdx.js.map +1 -1
- package/package-tar/teambit-harmony.content.cli-reference-1.95.85.tgz +0 -0
- package/package.json +4 -4
- package/{preview-1666409808293.js → preview-1667274254521.js} +2 -2
- package/package-tar/teambit-harmony.content.cli-reference-1.95.83.tgz +0 -0
package/cli-reference.json
CHANGED
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
]
|
|
437
437
|
],
|
|
438
438
|
"description": "Add any subset of files to be tracked as a component(s).",
|
|
439
|
-
"extendedDescription": "
|
|
439
|
+
"extendedDescription": "Learn the recommended workflow for tracking directories as components, in the link below.",
|
|
440
440
|
"group": "development",
|
|
441
441
|
"private": false
|
|
442
442
|
},
|
|
@@ -1215,13 +1215,13 @@
|
|
|
1215
1215
|
]
|
|
1216
1216
|
],
|
|
1217
1217
|
"description": "switch between component versions or remove local changes",
|
|
1218
|
-
"extendedDescription": "\n `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version\n `bit checkout head [component-pattern]` => checkout to the last snap/tag, omit [component-pattern] to checkout head for all\n `bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used)",
|
|
1218
|
+
"extendedDescription": "\n `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version\n `bit checkout head [component-pattern]` => checkout to the last snap/tag, omit [component-pattern] to checkout head for all\n `bit checkout latest [component-pattern]` => checkout to the latest satisfying semver tag, omit [component-pattern] to checkout latest for all\n `bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used)",
|
|
1219
1219
|
"group": "development",
|
|
1220
1220
|
"private": false,
|
|
1221
1221
|
"arguments": [
|
|
1222
1222
|
{
|
|
1223
1223
|
"name": "to",
|
|
1224
|
-
"description": "permitted values: [head, reset, specific-version]. 'head' - last snap/tag. 'reset' - removes local changes"
|
|
1224
|
+
"description": "permitted values: [head, latest, reset, specific-version]. 'head' - last snap/tag. 'latest' - semver latest tag. 'reset' - removes local changes"
|
|
1225
1225
|
},
|
|
1226
1226
|
{
|
|
1227
1227
|
"name": "component-pattern",
|
|
@@ -2138,7 +2138,7 @@
|
|
|
2138
2138
|
]
|
|
2139
2139
|
},
|
|
2140
2140
|
{
|
|
2141
|
-
"name": "_tag <
|
|
2141
|
+
"name": "_tag <data>",
|
|
2142
2142
|
"alias": "",
|
|
2143
2143
|
"options": [
|
|
2144
2144
|
[
|
|
@@ -2215,15 +2215,10 @@
|
|
|
2215
2215
|
"I",
|
|
2216
2216
|
"ignore-newest-version",
|
|
2217
2217
|
"ignore existing of newer versions (default = false)"
|
|
2218
|
-
],
|
|
2219
|
-
[
|
|
2220
|
-
"b",
|
|
2221
|
-
"build",
|
|
2222
|
-
"EXPERIMENTAL. not needed for now. run the pipeline build and complete the tag"
|
|
2223
2218
|
]
|
|
2224
2219
|
],
|
|
2225
2220
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2226
|
-
"extendedDescription": "
|
|
2221
|
+
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the tag.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies: string[]; // e.g. [teambit/compiler@1.0.0, teambit/tester@1.0.0]\n versionToTag?: string; // specific version (e.g. '1.0.0') or semver (e.g. 'minor', 'patch')\n prereleaseId?: string; // applicable when versionToTag is a pre-release. (e.g. \"dev\", for 1.0.0-dev.1)\n message?: string; // tag-message.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"dependencies\":[\"ci.remote/comp1@0.0.2\"]}]'\n",
|
|
2227
2222
|
"group": "development",
|
|
2228
2223
|
"private": true,
|
|
2229
2224
|
"remoteOp": true
|
|
@@ -3384,7 +3379,7 @@
|
|
|
3384
3379
|
]
|
|
3385
3380
|
],
|
|
3386
3381
|
"description": "clears Bit's cache from current working machine",
|
|
3387
|
-
"extendedDescription": "The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash
|
|
3382
|
+
"extendedDescription": "The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash",
|
|
3388
3383
|
"group": "general",
|
|
3389
3384
|
"private": false,
|
|
3390
3385
|
"skipWorkspace": true
|
package/cli-reference.mdx
CHANGED
|
@@ -7,8 +7,7 @@ Commands that are marked as workspace only must be executed inside a workspace.
|
|
|
7
7
|
**Alias**: `a`
|
|
8
8
|
**Workspace only**: yes
|
|
9
9
|
**Description**: Add any subset of files to be tracked as a component(s).
|
|
10
|
-
|
|
11
|
-
https://bit.dev/docs/components/adding-components
|
|
10
|
+
Learn the recommended workflow for tracking directories as components, in the link below.
|
|
12
11
|
|
|
13
12
|
`bit add [path...]`
|
|
14
13
|
|
|
@@ -221,6 +220,7 @@ with no args, only workspace's capsules are deleted
|
|
|
221
220
|
|
|
222
221
|
`bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version
|
|
223
222
|
`bit checkout head [component-pattern]` => checkout to the last snap/tag, omit [component-pattern] to checkout head for all
|
|
223
|
+
`bit checkout latest [component-pattern]` => checkout to the latest satisfying semver tag, omit [component-pattern] to checkout latest for all
|
|
224
224
|
`bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used)
|
|
225
225
|
|
|
226
226
|
`bit checkout <to> [component-pattern]`
|
|
@@ -249,8 +249,7 @@ The following gets removed by this command:
|
|
|
249
249
|
|
|
250
250
|
1. V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)
|
|
251
251
|
2. components cache on the filesystem (mainly the dependencies graph and docs)
|
|
252
|
-
3. scope's index file, which maps the component-id:object-hash
|
|
253
|
-
https://bit.dev/docs/workspace/clearing-cache
|
|
252
|
+
3. scope's index file, which maps the component-id:object-hash
|
|
254
253
|
|
|
255
254
|
`bit clear-cache`
|
|
256
255
|
|
package/dist/cli-reference.json
CHANGED
|
@@ -436,7 +436,7 @@
|
|
|
436
436
|
]
|
|
437
437
|
],
|
|
438
438
|
"description": "Add any subset of files to be tracked as a component(s).",
|
|
439
|
-
"extendedDescription": "
|
|
439
|
+
"extendedDescription": "Learn the recommended workflow for tracking directories as components, in the link below.",
|
|
440
440
|
"group": "development",
|
|
441
441
|
"private": false
|
|
442
442
|
},
|
|
@@ -1215,13 +1215,13 @@
|
|
|
1215
1215
|
]
|
|
1216
1216
|
],
|
|
1217
1217
|
"description": "switch between component versions or remove local changes",
|
|
1218
|
-
"extendedDescription": "\n `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version\n `bit checkout head [component-pattern]` => checkout to the last snap/tag, omit [component-pattern] to checkout head for all\n `bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used)",
|
|
1218
|
+
"extendedDescription": "\n `bit checkout <version> [component-pattern]` => checkout the specified ids (or all components when --all is used) to the specified version\n `bit checkout head [component-pattern]` => checkout to the last snap/tag, omit [component-pattern] to checkout head for all\n `bit checkout latest [component-pattern]` => checkout to the latest satisfying semver tag, omit [component-pattern] to checkout latest for all\n `bit checkout reset [component-pattern]` => remove local modifications from the specified ids (or all components when --all is used)",
|
|
1219
1219
|
"group": "development",
|
|
1220
1220
|
"private": false,
|
|
1221
1221
|
"arguments": [
|
|
1222
1222
|
{
|
|
1223
1223
|
"name": "to",
|
|
1224
|
-
"description": "permitted values: [head, reset, specific-version]. 'head' - last snap/tag. 'reset' - removes local changes"
|
|
1224
|
+
"description": "permitted values: [head, latest, reset, specific-version]. 'head' - last snap/tag. 'latest' - semver latest tag. 'reset' - removes local changes"
|
|
1225
1225
|
},
|
|
1226
1226
|
{
|
|
1227
1227
|
"name": "component-pattern",
|
|
@@ -2138,7 +2138,7 @@
|
|
|
2138
2138
|
]
|
|
2139
2139
|
},
|
|
2140
2140
|
{
|
|
2141
|
-
"name": "_tag <
|
|
2141
|
+
"name": "_tag <data>",
|
|
2142
2142
|
"alias": "",
|
|
2143
2143
|
"options": [
|
|
2144
2144
|
[
|
|
@@ -2215,15 +2215,10 @@
|
|
|
2215
2215
|
"I",
|
|
2216
2216
|
"ignore-newest-version",
|
|
2217
2217
|
"ignore existing of newer versions (default = false)"
|
|
2218
|
-
],
|
|
2219
|
-
[
|
|
2220
|
-
"b",
|
|
2221
|
-
"build",
|
|
2222
|
-
"EXPERIMENTAL. not needed for now. run the pipeline build and complete the tag"
|
|
2223
2218
|
]
|
|
2224
2219
|
],
|
|
2225
2220
|
"description": "create an immutable and exportable component snapshot, tagged with a release version.",
|
|
2226
|
-
"extendedDescription": "
|
|
2221
|
+
"extendedDescription": "this command should be running from a new bare scope, it first imports the components it needs and then processes the tag.\nthe input data is a stringified JSON of an array of the following object.\n{\n componentId: string; // ids always have scope, so it's safe to parse them from string\n dependencies: string[]; // e.g. [teambit/compiler@1.0.0, teambit/tester@1.0.0]\n versionToTag?: string; // specific version (e.g. '1.0.0') or semver (e.g. 'minor', 'patch')\n prereleaseId?: string; // applicable when versionToTag is a pre-release. (e.g. \"dev\", for 1.0.0-dev.1)\n message?: string; // tag-message.\n}\nan example of the final data: '[{\"componentId\":\"ci.remote2/comp-b\",\"dependencies\":[\"ci.remote/comp1@0.0.2\"]}]'\n",
|
|
2227
2222
|
"group": "development",
|
|
2228
2223
|
"private": true,
|
|
2229
2224
|
"remoteOp": true
|
|
@@ -3384,7 +3379,7 @@
|
|
|
3384
3379
|
]
|
|
3385
3380
|
],
|
|
3386
3381
|
"description": "clears Bit's cache from current working machine",
|
|
3387
|
-
"extendedDescription": "The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash
|
|
3382
|
+
"extendedDescription": "The following gets removed by this command:\n1) V8 compiled code (generated the first time Bit is loaded by v8-compile-cache package)\n2) components cache on the filesystem (mainly the dependencies graph and docs)\n3) scope's index file, which maps the component-id:object-hash",
|
|
3388
3383
|
"group": "general",
|
|
3389
3384
|
"private": false,
|
|
3390
3385
|
"skipWorkspace": true
|
|
@@ -4,31 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = MDXContent;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _react2 = require("@mdx-js/react");
|
|
11
|
-
|
|
12
9
|
var _excluded = ["components"];
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
16
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
|
|
18
12
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
-
|
|
20
13
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
-
|
|
22
14
|
/* @jsxRuntime classic */
|
|
23
|
-
|
|
24
15
|
/* @jsx mdx */
|
|
16
|
+
|
|
25
17
|
var layoutProps = {};
|
|
26
18
|
var MDXLayout = "wrapper";
|
|
27
|
-
|
|
28
19
|
function MDXContent(_ref) {
|
|
29
20
|
var components = _ref.components,
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
22
|
return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
|
|
33
23
|
components: components,
|
|
34
24
|
mdxType: "MDXLayout"
|
|
@@ -46,12 +36,7 @@ function MDXContent(_ref) {
|
|
|
46
36
|
parentName: "p"
|
|
47
37
|
}, "Description"), ": Add any subset of files to be tracked as a component(s).", (0, _react2.mdx)("br", {
|
|
48
38
|
parentName: "p"
|
|
49
|
-
}), "\n", "
|
|
50
|
-
parentName: "p"
|
|
51
|
-
}), "\n", "", (0, _react2.mdx)("a", {
|
|
52
|
-
parentName: "p",
|
|
53
|
-
"href": "https://bit.dev/docs/components/adding-components"
|
|
54
|
-
}, "https://bit.dev/docs/components/adding-components")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
39
|
+
}), "\n", "Learn the recommended workflow for tracking directories as components, in the link below."), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
55
40
|
parentName: "p"
|
|
56
41
|
}, "bit add [path...]")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
57
42
|
parentName: "table"
|
|
@@ -1034,6 +1019,10 @@ function MDXContent(_ref) {
|
|
|
1034
1019
|
parentName: "p"
|
|
1035
1020
|
}), "\n", "", (0, _react2.mdx)("inlineCode", {
|
|
1036
1021
|
parentName: "p"
|
|
1022
|
+
}, "bit checkout latest [component-pattern]"), " => checkout to the latest satisfying semver tag, omit ", "[component-pattern]", " to checkout latest for all", (0, _react2.mdx)("br", {
|
|
1023
|
+
parentName: "p"
|
|
1024
|
+
}), "\n", "", (0, _react2.mdx)("inlineCode", {
|
|
1025
|
+
parentName: "p"
|
|
1037
1026
|
}, "bit checkout reset [component-pattern]"), " => remove local modifications from the specified ids (or all components when --all is used)"), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
1038
1027
|
parentName: "p"
|
|
1039
1028
|
}, "bit checkout <to> [component-pattern]")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
@@ -1221,12 +1210,7 @@ function MDXContent(_ref) {
|
|
|
1221
1210
|
parentName: "ol"
|
|
1222
1211
|
}, "components cache on the filesystem (mainly the dependencies graph and docs)"), (0, _react2.mdx)("li", {
|
|
1223
1212
|
parentName: "ol"
|
|
1224
|
-
}, "scope's index file, which maps the component-id:object-hash", (0, _react2.mdx)("
|
|
1225
|
-
parentName: "li"
|
|
1226
|
-
}), (0, _react2.mdx)("a", {
|
|
1227
|
-
parentName: "li",
|
|
1228
|
-
"href": "https://bit.dev/docs/workspace/clearing-cache"
|
|
1229
|
-
}, "https://bit.dev/docs/workspace/clearing-cache"))), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
1213
|
+
}, "scope's index file, which maps the component-id:object-hash")), (0, _react2.mdx)("p", null, (0, _react2.mdx)("inlineCode", {
|
|
1230
1214
|
parentName: "p"
|
|
1231
1215
|
}, "bit clear-cache")), (0, _react2.mdx)("table", null, (0, _react2.mdx)("thead", {
|
|
1232
1216
|
parentName: "table"
|
|
@@ -5969,7 +5953,6 @@ function MDXContent(_ref) {
|
|
|
5969
5953
|
"align": null
|
|
5970
5954
|
}, "json format")))), (0, _react2.mdx)("hr", null));
|
|
5971
5955
|
}
|
|
5972
|
-
|
|
5973
5956
|
;
|
|
5974
5957
|
MDXContent.isMDXComponent = true;
|
|
5975
5958
|
|