@teambit/lanes 1.0.408 → 1.0.409
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/artifacts/__bit_junit.xml +14 -14
- package/artifacts/preview/teambit_lanes_lanes-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/dist/lane.cmd.js +1 -1
- package/dist/lane.cmd.js.map +1 -1
- package/dist/lanes.ui.runtime.d.ts +1 -1
- package/dist/{preview-1726543267663.js → preview-1726584693847.js} +2 -2
- package/package.json +21 -21
@@ -1,23 +1,23 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="18" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.lanes/lanes@1.0.
|
3
|
+
<testsuite name="teambit.lanes/lanes@1.0.409" tests="18" failures="0" errors="0" skipped="0">
|
4
4
|
<testcase classname="dist/lanes.spec.js" name="should list all lanes" time="0.003"/>
|
5
|
-
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.
|
6
|
-
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.
|
7
|
-
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.
|
8
|
-
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.
|
9
|
-
<testcase classname="dist/lanes.spec.js" name="should restore the deleted lane"/>
|
5
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.012"/>
|
6
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.306"/>
|
7
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.027"/>
|
8
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.172"/>
|
9
|
+
<testcase classname="dist/lanes.spec.js" name="should restore the deleted lane" time="0.001"/>
|
10
10
|
<testcase classname="dist/lanes.spec.js" name="should not throw"/>
|
11
11
|
<testcase classname="dist/lanes.spec.js" name="should throw when restoring the lane" time="0.002"/>
|
12
|
-
<testcase classname="dist/lanes.spec.js" name="should create lane history object when creating a new lane" time="0.
|
13
|
-
<testcase classname="dist/lanes.spec.js" name="should add a record to LaneHistory when snapping" time="0.
|
14
|
-
<testcase classname="dist/lanes.spec.js" name="should export successfully"/>
|
12
|
+
<testcase classname="dist/lanes.spec.js" name="should create lane history object when creating a new lane" time="0.001"/>
|
13
|
+
<testcase classname="dist/lanes.spec.js" name="should add a record to LaneHistory when snapping" time="0.001"/>
|
14
|
+
<testcase classname="dist/lanes.spec.js" name="should export successfully" time="0.001"/>
|
15
15
|
<testcase classname="dist/lanes.spec.js" name="should not add a record to the lane-history" time="0.001"/>
|
16
|
-
<testcase classname="dist/lanes.spec.js" name="should be able to checkout to a previous state of the lane" time="0.
|
17
|
-
<testcase classname="dist/lanes.spec.js" name="should be able to revert to a previous history id" time="
|
18
|
-
<testcase classname="dist/lanes.spec.js" name="should not throw when creating the second lane" time="0.
|
16
|
+
<testcase classname="dist/lanes.spec.js" name="should be able to checkout to a previous state of the lane" time="0.039"/>
|
17
|
+
<testcase classname="dist/lanes.spec.js" name="should be able to revert to a previous history id" time="4.417"/>
|
18
|
+
<testcase classname="dist/lanes.spec.js" name="should not throw when creating the second lane" time="0.13"/>
|
19
19
|
<testcase classname="dist/lanes.spec.js" name="should save the deleted data into the lane object" time="0.001"/>
|
20
|
-
<testcase classname="dist/lanes.spec.js" name="should save the deleted data into lane history"/>
|
21
|
-
<testcase classname="dist/lanes.spec.js" name="the components should be available on main"/>
|
20
|
+
<testcase classname="dist/lanes.spec.js" name="should save the deleted data into lane history" time="0.001"/>
|
21
|
+
<testcase classname="dist/lanes.spec.js" name="the components should be available on main" time="0.001"/>
|
22
22
|
</testsuite>
|
23
23
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.lanes/lanes-preview"]=t():e["teambit.lanes/lanes-preview"]=t()}(self,(()=>(()=>{"use strict";var e={23597:(e,t,n)=>{var a={id:"teambit.lanes/lanes@1.0.408",homepage:"https://bit.cloud/teambit/lanes/lanes",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,i.__bit_component=a;const r=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/lanes.svg"}));r.__bit_component=a,t.Logo=r},41594:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{compositions:()=>c,compositions_metadata:()=>f,overview:()=>u});var o={};n.r(o),n.d(o,{default:()=>h});var i=n(23597);n(41594);const r=MdxJsReact,l=TeambitMdxUiMdxScopeContext;var s=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m.apply(null,arguments)}var d={},p="wrapper";function h(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,r.mdx)(p,m({},d,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(l.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"See more details about these two features here: ",(0,r.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1986"},"Lanes"),". ",(0,r.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1985"},"Snaps"),"."),(0,r.mdx)("p",null,"The following describes the final implementation, which differs from the specification above."),(0,r.mdx)("h2",null,"Synopsis"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"- create a snap: `bit snap` (synopsis similar to the `bit tag`)\n- create a new lane: `bit lane create <name>`\n- list lanes: `bit lane list`\n- switch between lanes: `bit switch <name>`\n- merge lanes: `bit lane merge`\n- show lane details: `bit lane show <name>`\n- diff between lanes: `bit lane diff <values>`\n- track local lane to a remote lane: `bit switch --as`\n- remove a lane: `bit lane remove <name>`.\n- fetch lane objects (without the components): `bit fetch --lanes`\n- import a lane: `bit lane import`\n- export current lane: `bit export`\n- (internal) cat lane object: `bit cat-lane <name>`\n")),(0,r.mdx)("h2",null,"Important points"),(0,r.mdx)("h3",null,"Lane ID"),(0,r.mdx)("p",null,"The Lane id consists of the lane name and the scope. If this is a new lane, the scope is the defaultScope.\nThe ",(0,r.mdx)("inlineCode",{parentName:"p"},"LaneId")," ",(0,r.mdx)("em",{parentName:"p"},"always")," has these two props."),(0,r.mdx)("h3",null,"Performance consideration"),(0,r.mdx)("p",null,"Currently, if it imports with no-deps, it doesn't ask for parents, if it imports with deps it imports with all parents. It is originated from src/api/scope/lib/fetch.ts: ",(0,r.mdx)("inlineCode",{parentName:"p"},"const collectParents = !noDependencies;"),". We need to make a decision here."),(0,r.mdx)("h3",null,"Hash"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Snap's hash is generated by a UUID and then converted into sha1. ",(0,r.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,r.mdx)("li",{parentName:"ul"},"Lane's hash is generated by a UUID and then converted into sha1. ",(0,r.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,r.mdx)("li",{parentName:"ul"},"Tag's hash stays the same. Generated by the ",(0,r.mdx)("inlineCode",{parentName:"li"},"Version.id()"),"."),(0,r.mdx)("li",{parentName:"ul"},"Lane's hash doesn't get changed even if the lane has been renamed or its scope changed.")),(0,r.mdx)("h3",null,"Lane Data"),(0,r.mdx)("p",null,"Lane data, for the most cases is a map of component-id:snap-head, in other words, it saves per component the head snap. There are 3 different places where we store such data for different purposes."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"lane-object"),' "Lane" is saved in the scope ',(0,r.mdx)("inlineCode",{parentName:"li"},".bit/objects")," (.bit can be .git/bit locally), it has a unique hash and contains a map of components and their heads. This object exists on both local and remote scopes. Its main purpose is to sync lane-data between scopes. See ",(0,r.mdx)("inlineCode",{parentName:"li"},"Lane")," class (in scope/model) for the implementation details."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"remote-lane")," (component and their heads) is saved in ",(0,r.mdx)("inlineCode",{parentName:"li"},".bit/refs/remote/remote-name/lane-name"),". These refs files are saved in both, local and remote scopes. Its main purpose is to keep track where the remote-heads are per lane. See ",(0,r.mdx)("inlineCode",{parentName:"li"},"RemoteLanes")," class for the implementation details.")),(0,r.mdx)("p",null,"More places that stores lanes related data:"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"the currently checked out lane is saved in the scope.json file. (e.g. ",(0,r.mdx)("inlineCode",{parentName:"li"},'{ lanes: { current: "lane-a", tracking: "remote/lane-a" } }'),")."),(0,r.mdx)("li",{parentName:"ul"},"When switching to a remote lane, the .bitmap is updated as well with the remote-name, so then, when cloning the project, it's possible to fetch the remote lane data.")),(0,r.mdx)("p",null,"Summary of when/what lanes data is saved per command:"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane create"),": creates a new lane-object and creates a new lane record in scope.json and .bitmap."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit snap"),": adds an entry to the lane-object."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit export"),": pushes the lane-object to the remote. On the remote, the lane-object is created or updated/merged."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit switch --remote"),": 1) creates/updates lane-object in the scope. 2) creates/updates remote-lane. the remote-lane is updated also for main."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit fetch")," or ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import --objects"),": creates/updates remote-lane. the remote-lane is updated also for main. It doesn't update/merge the lane object.")),(0,r.mdx)("h3",null,"Merge during import"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"When the remote is ahead, it's easy, just update the head to the remote-head."),(0,r.mdx)("li",{parentName:"ul"},"When the local and remote have diverged, it's more complex. We need to create a snap-merge that has two parents, one point to the local head and one point to the remote head."),(0,r.mdx)("li",{parentName:"ul"},"On ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import --objects")," (or ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit fetch"),") we don't merge. The remote head is saved in the .bit/refs/remote dir. Then, ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit status")," shows that these components are merge-pending."),(0,r.mdx)("li",{parentName:"ul"},"On ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import <id>")," we do the merge."),(0,r.mdx)("li",{parentName:"ul"},"in case the merge wasn't done and the user is trying to export, the remote blocks is as it finds out that its head doesn't exist on the incoming component."),(0,r.mdx)("li",{parentName:"ul"},"in case the snap-merge failed due to a conflict, it saves the conflict and heads data into ",(0,r.mdx)("inlineCode",{parentName:"li"},".bit/unmerged.json")," file.")),(0,r.mdx)("h3",null,"Merge components"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"to merge an entire lane, use ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane merge"),"."),(0,r.mdx)("li",{parentName:"ul"},"to get updates from a remote lane, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import"),", and then ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit checkout head"),". alternatively, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit merge <component-id>")," in one command."),(0,r.mdx)("li",{parentName:"ul"},"to merge an individual component from a lane to main, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane merge <lane> --pattern <component-id>")," when on main.")),(0,r.mdx)("h3",null,"Useful APIs"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"bit-map ",(0,r.mdx)("inlineCode",{parentName:"li"},"getAllIdsAvailableOnLane()")," filters the currently checked out lane.")),(0,r.mdx)("h3",null,"Remove component from a lane"),(0,r.mdx)("p",null,"Locally, to remove a component from a lane, use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit remove")," command. It will remove the component from the local lane-object.\nThis change won't affect the remote scope, even after exporting the lane.\nThis is becuase on the remote, the merge-lane process doesn't remove anything, only adds/changes components to the lane object.\nRemember that by default when importing a lane, only the components on the workspace are part of the lane, so the same lane-object, locally can have less components than the remote and obviously in this case we don't want to remove them from the remote on export."),(0,r.mdx)("p",null,"To mark a component as removed on the lane, use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit remove --delete"),", which will modify the component, mark it as removed, then, on the next snap+export, the remote will be updated.\nOnce a component is marked as removed, it won't be merged during ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit lane merge"),", and won't be imported during ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit lane import"),"."),(0,r.mdx)("h3",null,"Debug issues during merge"),(0,r.mdx)("p",null,"The merge operation performs 3-way merge to minimize the number of conflicts.\nIt searches the common parent of the current-snap and the other-snap. This parent-snap or base-snap is common to these two lanes.\nFor most case, it works as follows:\nIf the base and current has the same data but the other has different data, it means, the other made a change.\nIn which case, no need for conflicts, just bring the data from the other to the local.\nOn the other hand, if the base the other has the same data but the current has different data, then, the current made a change. No need to do anything.\nOnly when the current and the other, both are different, and both are different than the base, there is a conflict."),(0,r.mdx)("p",null,'In case of merging lanes, and it\'s unclear why/how some changes were introduced or marked conflicted, go to the log to find out what is the base-snap and the other-snap.\nThe log message starts with "merging snaps details", and it lists per component-id the base-snap, current-snap and other-snap.\nFrom here, you can investigate the data of each one of the snaps by running ',(0,r.mdx)("inlineCode",{parentName:"p"},"bit cat-object -p <snap>"),".\nTo make this process easier, there are some tools that can help. keep reading."),(0,r.mdx)("h4",null,"source code merges/conflicts"),(0,r.mdx)("p",null,"To find out when a change was introduced to a file or when a file was added/removed, run ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit log-file <file-path>"),".\nIt might be helpful to create a new temporary workspace, import the other lane and run the same there.\nThis way, you get the full picture from both lanes when a change was introduced, and you can see whether it happened before and after the split from the base-snap.\nObviously, ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit log <comp-id> --one-line")," is helpful here to see the distance from each lane from the base-snap."),(0,r.mdx)("h4",null,"dependencies merges/conflicts"),(0,r.mdx)("p",null,"Similar to file-changes, you can run ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit deps blame"),' to understhand when a dependency was introduced/deleted/changed from a component.\nHere again, it\'ll be helpful to import to a new workspace the other lane and run the same there.\nAlso, becuase the dependencies merge is pretty complex, during the merge lots of valuable info is printed to the log.\nHowever, to avoid the extra noise it is not logged as "debug" but as "trace". Before you run the merge, you can add ',(0,r.mdx)("inlineCode",{parentName:"p"},"--log=trace")," to see these messages on the screen.")))}h.isMDXComponent=!0;const c=[i],u=[o],f={compositions:[{displayName:"Logo",identifier:"Logo"}]};return a})()));
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.lanes/lanes-preview"]=t():e["teambit.lanes/lanes-preview"]=t()}(self,(()=>(()=>{"use strict";var e={74512:(e,t,n)=>{var a={id:"teambit.lanes/lanes@1.0.409",homepage:"https://bit.cloud/teambit/lanes/lanes",exported:!0};function o(){const e=i(n(41594));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,i.__bit_component=a;const r=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/lanes.svg"}));r.__bit_component=a,t.Logo=r},41594:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};n.r(a),n.d(a,{compositions:()=>c,compositions_metadata:()=>f,overview:()=>u});var o={};n.r(o),n.d(o,{default:()=>h});var i=n(74512);n(41594);const r=MdxJsReact,l=TeambitMdxUiMdxScopeContext;var s=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m.apply(null,arguments)}var d={},p="wrapper";function h(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,s);return(0,r.mdx)(p,m({},d,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(l.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,r.mdx)("p",null,"See more details about these two features here: ",(0,r.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1986"},"Lanes"),". ",(0,r.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1985"},"Snaps"),"."),(0,r.mdx)("p",null,"The following describes the final implementation, which differs from the specification above."),(0,r.mdx)("h2",null,"Synopsis"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},"- create a snap: `bit snap` (synopsis similar to the `bit tag`)\n- create a new lane: `bit lane create <name>`\n- list lanes: `bit lane list`\n- switch between lanes: `bit switch <name>`\n- merge lanes: `bit lane merge`\n- show lane details: `bit lane show <name>`\n- diff between lanes: `bit lane diff <values>`\n- track local lane to a remote lane: `bit switch --as`\n- remove a lane: `bit lane remove <name>`.\n- fetch lane objects (without the components): `bit fetch --lanes`\n- import a lane: `bit lane import`\n- export current lane: `bit export`\n- (internal) cat lane object: `bit cat-lane <name>`\n")),(0,r.mdx)("h2",null,"Important points"),(0,r.mdx)("h3",null,"Lane ID"),(0,r.mdx)("p",null,"The Lane id consists of the lane name and the scope. If this is a new lane, the scope is the defaultScope.\nThe ",(0,r.mdx)("inlineCode",{parentName:"p"},"LaneId")," ",(0,r.mdx)("em",{parentName:"p"},"always")," has these two props."),(0,r.mdx)("h3",null,"Performance consideration"),(0,r.mdx)("p",null,"Currently, if it imports with no-deps, it doesn't ask for parents, if it imports with deps it imports with all parents. It is originated from src/api/scope/lib/fetch.ts: ",(0,r.mdx)("inlineCode",{parentName:"p"},"const collectParents = !noDependencies;"),". We need to make a decision here."),(0,r.mdx)("h3",null,"Hash"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"Snap's hash is generated by a UUID and then converted into sha1. ",(0,r.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,r.mdx)("li",{parentName:"ul"},"Lane's hash is generated by a UUID and then converted into sha1. ",(0,r.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,r.mdx)("li",{parentName:"ul"},"Tag's hash stays the same. Generated by the ",(0,r.mdx)("inlineCode",{parentName:"li"},"Version.id()"),"."),(0,r.mdx)("li",{parentName:"ul"},"Lane's hash doesn't get changed even if the lane has been renamed or its scope changed.")),(0,r.mdx)("h3",null,"Lane Data"),(0,r.mdx)("p",null,"Lane data, for the most cases is a map of component-id:snap-head, in other words, it saves per component the head snap. There are 3 different places where we store such data for different purposes."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"lane-object"),' "Lane" is saved in the scope ',(0,r.mdx)("inlineCode",{parentName:"li"},".bit/objects")," (.bit can be .git/bit locally), it has a unique hash and contains a map of components and their heads. This object exists on both local and remote scopes. Its main purpose is to sync lane-data between scopes. See ",(0,r.mdx)("inlineCode",{parentName:"li"},"Lane")," class (in scope/model) for the implementation details."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"remote-lane")," (component and their heads) is saved in ",(0,r.mdx)("inlineCode",{parentName:"li"},".bit/refs/remote/remote-name/lane-name"),". These refs files are saved in both, local and remote scopes. Its main purpose is to keep track where the remote-heads are per lane. See ",(0,r.mdx)("inlineCode",{parentName:"li"},"RemoteLanes")," class for the implementation details.")),(0,r.mdx)("p",null,"More places that stores lanes related data:"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"the currently checked out lane is saved in the scope.json file. (e.g. ",(0,r.mdx)("inlineCode",{parentName:"li"},'{ lanes: { current: "lane-a", tracking: "remote/lane-a" } }'),")."),(0,r.mdx)("li",{parentName:"ul"},"When switching to a remote lane, the .bitmap is updated as well with the remote-name, so then, when cloning the project, it's possible to fetch the remote lane data.")),(0,r.mdx)("p",null,"Summary of when/what lanes data is saved per command:"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane create"),": creates a new lane-object and creates a new lane record in scope.json and .bitmap."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit snap"),": adds an entry to the lane-object."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit export"),": pushes the lane-object to the remote. On the remote, the lane-object is created or updated/merged."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit switch --remote"),": 1) creates/updates lane-object in the scope. 2) creates/updates remote-lane. the remote-lane is updated also for main."),(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"bit fetch")," or ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import --objects"),": creates/updates remote-lane. the remote-lane is updated also for main. It doesn't update/merge the lane object.")),(0,r.mdx)("h3",null,"Merge during import"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"When the remote is ahead, it's easy, just update the head to the remote-head."),(0,r.mdx)("li",{parentName:"ul"},"When the local and remote have diverged, it's more complex. We need to create a snap-merge that has two parents, one point to the local head and one point to the remote head."),(0,r.mdx)("li",{parentName:"ul"},"On ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import --objects")," (or ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit fetch"),") we don't merge. The remote head is saved in the .bit/refs/remote dir. Then, ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit status")," shows that these components are merge-pending."),(0,r.mdx)("li",{parentName:"ul"},"On ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import <id>")," we do the merge."),(0,r.mdx)("li",{parentName:"ul"},"in case the merge wasn't done and the user is trying to export, the remote blocks is as it finds out that its head doesn't exist on the incoming component."),(0,r.mdx)("li",{parentName:"ul"},"in case the snap-merge failed due to a conflict, it saves the conflict and heads data into ",(0,r.mdx)("inlineCode",{parentName:"li"},".bit/unmerged.json")," file.")),(0,r.mdx)("h3",null,"Merge components"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"to merge an entire lane, use ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane merge"),"."),(0,r.mdx)("li",{parentName:"ul"},"to get updates from a remote lane, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit import"),", and then ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit checkout head"),". alternatively, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit merge <component-id>")," in one command."),(0,r.mdx)("li",{parentName:"ul"},"to merge an individual component from a lane to main, run ",(0,r.mdx)("inlineCode",{parentName:"li"},"bit lane merge <lane> --pattern <component-id>")," when on main.")),(0,r.mdx)("h3",null,"Useful APIs"),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},"bit-map ",(0,r.mdx)("inlineCode",{parentName:"li"},"getAllIdsAvailableOnLane()")," filters the currently checked out lane.")),(0,r.mdx)("h3",null,"Remove component from a lane"),(0,r.mdx)("p",null,"Locally, to remove a component from a lane, use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit remove")," command. It will remove the component from the local lane-object.\nThis change won't affect the remote scope, even after exporting the lane.\nThis is becuase on the remote, the merge-lane process doesn't remove anything, only adds/changes components to the lane object.\nRemember that by default when importing a lane, only the components on the workspace are part of the lane, so the same lane-object, locally can have less components than the remote and obviously in this case we don't want to remove them from the remote on export."),(0,r.mdx)("p",null,"To mark a component as removed on the lane, use ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit remove --delete"),", which will modify the component, mark it as removed, then, on the next snap+export, the remote will be updated.\nOnce a component is marked as removed, it won't be merged during ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit lane merge"),", and won't be imported during ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit lane import"),"."),(0,r.mdx)("h3",null,"Debug issues during merge"),(0,r.mdx)("p",null,"The merge operation performs 3-way merge to minimize the number of conflicts.\nIt searches the common parent of the current-snap and the other-snap. This parent-snap or base-snap is common to these two lanes.\nFor most case, it works as follows:\nIf the base and current has the same data but the other has different data, it means, the other made a change.\nIn which case, no need for conflicts, just bring the data from the other to the local.\nOn the other hand, if the base the other has the same data but the current has different data, then, the current made a change. No need to do anything.\nOnly when the current and the other, both are different, and both are different than the base, there is a conflict."),(0,r.mdx)("p",null,'In case of merging lanes, and it\'s unclear why/how some changes were introduced or marked conflicted, go to the log to find out what is the base-snap and the other-snap.\nThe log message starts with "merging snaps details", and it lists per component-id the base-snap, current-snap and other-snap.\nFrom here, you can investigate the data of each one of the snaps by running ',(0,r.mdx)("inlineCode",{parentName:"p"},"bit cat-object -p <snap>"),".\nTo make this process easier, there are some tools that can help. keep reading."),(0,r.mdx)("h4",null,"source code merges/conflicts"),(0,r.mdx)("p",null,"To find out when a change was introduced to a file or when a file was added/removed, run ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit log-file <file-path>"),".\nIt might be helpful to create a new temporary workspace, import the other lane and run the same there.\nThis way, you get the full picture from both lanes when a change was introduced, and you can see whether it happened before and after the split from the base-snap.\nObviously, ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit log <comp-id> --one-line")," is helpful here to see the distance from each lane from the base-snap."),(0,r.mdx)("h4",null,"dependencies merges/conflicts"),(0,r.mdx)("p",null,"Similar to file-changes, you can run ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit deps blame"),' to understhand when a dependency was introduced/deleted/changed from a component.\nHere again, it\'ll be helpful to import to a new workspace the other lane and run the same there.\nAlso, becuase the dependencies merge is pretty complex, during the merge lots of valuable info is printed to the log.\nHowever, to avoid the extra noise it is not logged as "debug" but as "trace". Before you run the merge, you can add ',(0,r.mdx)("inlineCode",{parentName:"p"},"--log=trace")," to see these messages on the screen.")))}h.isMDXComponent=!0;const c=[i],u=[o],f={compositions:[{displayName:"Logo",identifier:"Logo"}]};return a})()));
|
package/artifacts/schema.json
CHANGED
@@ -11375,7 +11375,7 @@
|
|
11375
11375
|
"componentId": {
|
11376
11376
|
"scope": "teambit.lanes",
|
11377
11377
|
"name": "lanes",
|
11378
|
-
"version": "1.0.
|
11378
|
+
"version": "1.0.409"
|
11379
11379
|
},
|
11380
11380
|
"taggedModuleExports": []
|
11381
11381
|
}
|
package/dist/lane.cmd.js
CHANGED
@@ -408,7 +408,7 @@ class LaneRenameCmd {
|
|
408
408
|
constructor(lanes) {
|
409
409
|
this.lanes = lanes;
|
410
410
|
_defineProperty(this, "name", 'rename <new-name>');
|
411
|
-
_defineProperty(this, "description", `
|
411
|
+
_defineProperty(this, "description", `change the lane-name locally`);
|
412
412
|
_defineProperty(this, "extendedDescription", 'the remote will be updated after the next "bit export" command');
|
413
413
|
_defineProperty(this, "alias", '');
|
414
414
|
_defineProperty(this, "options", [['l', 'lane-name <lane-name>', 'the name of the lane to rename. if not specified, the current lane is used']]);
|
package/dist/lane.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_yn","_laneId","_checkout","_workspace","_lanes","_bitError","_legacyCli","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","LaneListCmd","constructor","lanes","workspace","scope","report","args","laneOptions","details","remote","merged","notMerged","laneIdStr","laneId","alias","isDefault","name","toString","getLanes","showDefaultLane","mergedLanes","filter","l","isMerged","length","chalk","green","map","m","join","unmergedLanes","currentLane","getCurrentLaneId","getDefaultLaneId","laneDataOfCurrentLane","find","isEqual","id","undefined","currentAlias","currentLaneReadmeComponentStr","outputReadmeComponent","readmeComponent","currentLaneStr","currentLaneComponents","outputComponents","components","availableLanes","laneData","readmeComponentStr","laneTitle","bold","concat","outputFooter","footer","outputCurrentLane","outputAvailableLanes","json","lanesData","serializeLaneData","getCurrentLaneNameOrAlias","exports","LaneShowCmd","geLanesData","onlyLane","DEFAULT_LANE","title","author","log","username","email","date","Date","parseInt","toLocaleString","link","DEFAULT_CLOUD_DOMAIN","replace","Error","getCurrentLaneName","parseLaneId","LaneCreateCmd","description","createLaneOptions","OutsideWorkspaceError","getCurrentLane","remoteScope","result","createLane","remoteScopeOrDefaultScope","yellow","remoteScopeOutput","LaneAliasCmd","laneName","aliasLane","CatLaneHistoryCmd","laneHistory","getLaneHistory","JSON","stringify","toObject","LaneCheckoutCmd","historyId","opts","checkoutHistory","checkoutOutput","LaneRevertCmd","revertHistory","LaneHistoryCmd","BitError","importLaneHistory","history","getHistory","historyItem","message","items","keys","uuid","LaneEjectCmd","COMPONENT_PATTERN_HELP","pattern","results","eject","body","LaneChangeScopeCmd","remoteScopeBefore","localName","changeScope","LaneRenameCmd","newName","currentName","rename","LaneRemoveCmd","names","force","silent","removePromptResult","approveOperation","yn","shouldProceed","laneResults","removeLanes","LaneRemoveCompCmd","LaneImportCmd","switchCmd","lane","skipDependencyInstallation","LaneFetchCmd","fetchCmd","all","getLaneIdStr","LaneCmd","LaneRemoveReadmeCmd","removeLaneReadme","red","componentsTitle","componentsStr","c","head","component","fullName"],"sources":["lane.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport chalk from 'chalk';\nimport yn from 'yn';\nimport { ScopeMain } from '@teambit/scope';\nimport { DEFAULT_LANE, LaneId } from '@teambit/lane-id';\nimport { checkoutOutput } from '@teambit/checkout';\nimport { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { LaneData, serializeLaneData } from '@teambit/legacy/dist/scope/lanes/lanes';\nimport { BitError } from '@teambit/bit-error';\nimport { approveOperation } from '@teambit/legacy.cli.prompts';\nimport { COMPONENT_PATTERN_HELP, DEFAULT_CLOUD_DOMAIN } from '@teambit/legacy/dist/constants';\nimport { CreateLaneOptions, LanesMain } from './lanes.main.runtime';\nimport { SwitchCmd } from './switch.cmd';\nimport { FetchCmd } from '@teambit/importer';\n\ntype LaneOptions = {\n details?: boolean;\n remote?: string;\n merged?: boolean;\n notMerged?: boolean;\n json?: boolean;\n};\n\nexport class LaneListCmd implements Command {\n name = 'list';\n description = `list local or remote lanes`;\n alias = '';\n options = [\n ['d', 'details', 'show more details on the state of each component in each lane'],\n ['j', 'json', \"show lanes' details in a json format\"],\n ['r', 'remote <remote-scope-name>', 'show all remote lanes from the specified scope'],\n ['', 'merged', 'list only merged lanes'],\n ['', 'not-merged', \"list only lanes that haven't been merged\"],\n ] as CommandOptions;\n loader = true;\n remoteOp = true;\n skipWorkspace = true;\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report(args, laneOptions: LaneOptions): Promise<string> {\n const { details, remote, merged, notMerged } = laneOptions;\n const laneIdStr = (laneId: LaneId, alias?: string | null) => {\n if (laneId.isDefault()) return laneId.name;\n if (alias) return `${laneId.toString()} (${alias})`;\n return laneId.toString();\n };\n const lanes = await this.lanes.getLanes({\n remote,\n merged,\n notMerged,\n showDefaultLane: true,\n });\n if (merged) {\n const mergedLanes = lanes.filter((l) => l.isMerged);\n if (!mergedLanes.length) return chalk.green('None of the lanes is merged');\n return chalk.green(mergedLanes.map((m) => m.name).join('\\n'));\n }\n if (notMerged) {\n const unmergedLanes = lanes.filter((l) => !l.isMerged);\n if (!unmergedLanes.length) return chalk.green('All lanes are merged');\n return chalk.green(unmergedLanes.map((m) => m.name).join('\\n'));\n }\n const currentLane = this.lanes.getCurrentLaneId() || this.lanes.getDefaultLaneId();\n const laneDataOfCurrentLane = currentLane ? lanes.find((l) => currentLane.isEqual(l.id)) : undefined;\n const currentAlias = laneDataOfCurrentLane ? laneDataOfCurrentLane.alias : undefined;\n const currentLaneReadmeComponentStr = outputReadmeComponent(laneDataOfCurrentLane?.readmeComponent);\n let currentLaneStr = remote\n ? ''\n : `current lane - ${chalk.green.green(laneIdStr(currentLane, currentAlias))}${currentLaneReadmeComponentStr}`;\n\n if (details) {\n const currentLaneComponents = laneDataOfCurrentLane ? outputComponents(laneDataOfCurrentLane.components) : '';\n if (currentLaneStr) {\n currentLaneStr += `\\n${currentLaneComponents}`;\n }\n }\n\n const availableLanes = lanes\n .filter((l) => !currentLane.isEqual(l.id))\n .map((laneData) => {\n const readmeComponentStr = outputReadmeComponent(laneData.readmeComponent);\n if (details) {\n const laneTitle = `> ${chalk.bold(laneIdStr(laneData.id, laneData.alias))}\\n`;\n const components = outputComponents(laneData.components);\n return laneTitle + readmeComponentStr.concat('\\n') + components;\n }\n return ` > ${chalk.green(laneIdStr(laneData.id, laneData.alias))} (${\n laneData.components.length\n } components)${readmeComponentStr}`;\n })\n .join('\\n');\n\n const outputFooter = () => {\n let footer = '\\n';\n if (details) {\n footer += 'You can use --merged and --not-merged to see which of the lanes is fully merged.';\n } else {\n footer +=\n \"to get more info on all lanes in local scope use 'bit lane list --details', or 'bit lane show <lane-name>' for a specific lane.\";\n }\n if (!remote && this.workspace)\n footer += `\\nswitch lanes using 'bit switch <name>'. create lanes using 'bit lane create <name>'.`;\n\n return footer;\n };\n\n return outputCurrentLane() + outputAvailableLanes() + outputFooter();\n\n function outputCurrentLane() {\n return currentLaneStr ? `${currentLaneStr}\\n` : '';\n }\n\n function outputAvailableLanes() {\n if (!availableLanes) return '';\n return remote ? `${availableLanes}\\n` : `\\nAvailable lanes:\\n${availableLanes}\\n`;\n }\n }\n async json(args, laneOptions: LaneOptions) {\n const { remote, merged = false, notMerged = false } = laneOptions;\n\n const lanesData = await this.lanes.getLanes({\n remote,\n showDefaultLane: true,\n merged,\n notMerged,\n });\n const lanes = lanesData.map(serializeLaneData);\n const currentLane = this.lanes.getCurrentLaneNameOrAlias();\n return { lanes, currentLane };\n }\n}\n\nexport class LaneShowCmd implements Command {\n name = 'show [lane-name]';\n description = `show lane details. if no lane specified, show the current lane`;\n alias = '';\n options = [\n ['j', 'json', 'show the lane details in json format'],\n ['r', 'remote', 'show details of the remote head of the provided lane'],\n ] as CommandOptions;\n loader = true;\n remoteOp = true;\n skipWorkspace = true;\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report([name]: [string], laneOptions: LaneOptions): Promise<string> {\n const lanes = await this.geLanesData([name], laneOptions);\n const onlyLane = lanes[0];\n const laneId = onlyLane.id;\n const laneIdStr = laneId.isDefault() ? DEFAULT_LANE : laneId.toString();\n const title = `showing information for ${chalk.bold(laneIdStr)}\\n`;\n const author = onlyLane.log ? `author: ${onlyLane.log?.username || 'N/A'} <${onlyLane.log?.email || 'N/A'}>\\n` : '';\n const date = onlyLane.log?.date ? `created: ${new Date(parseInt(onlyLane.log.date)).toLocaleString()}\\n` : '';\n const link = laneId.isDefault()\n ? ''\n : `link: https://${DEFAULT_CLOUD_DOMAIN}/${laneId.scope.replace('.', '/')}/~lane/${laneId.name}\\n`;\n return title + author + date + link + outputComponents(onlyLane.components);\n }\n\n private async geLanesData([name]: [string], laneOptions: LaneOptions) {\n const { remote } = laneOptions;\n\n if (!name && remote) {\n throw new Error('remote flag is not supported without lane name');\n }\n if (!name) {\n name = this.lanes.getCurrentLaneName() || DEFAULT_LANE;\n }\n\n const laneId = await this.lanes.parseLaneId(name);\n\n const lanes = await this.lanes.getLanes({\n name: laneId.name,\n remote: remote ? laneId.scope : undefined,\n });\n\n return lanes;\n }\n\n async json([name]: [string], laneOptions: LaneOptions) {\n const lanes = await this.geLanesData([name], laneOptions);\n return serializeLaneData(lanes[0]);\n }\n}\n\nexport class LaneCreateCmd implements Command {\n name = 'create <lane-name>';\n arguments = [\n {\n name: 'lane-name',\n description: 'the name for the new lane',\n },\n ];\n description = `creates a new lane and switches to it`;\n extendedDescription = `a lane created from main (default-lane) is empty until components are snapped.\na lane created from another lane contains all the components of the original lane.`;\n alias = '';\n options = [\n [\n 's',\n 'scope <scope-name>',\n 'remote scope to which this lane will be exported, default to the workspace.json\\'s defaultScope (can be changed up to first export of the lane with \"bit lane change-scope\")',\n ],\n ['', 'remote-scope <scope-name>', 'DEPRECATED. use --scope'],\n [\n '',\n 'alias <name>',\n 'a local alias to refer to this lane, defaults to the `<lane-name>` (can be added later with \"bit lane alias\")',\n ],\n [\n '',\n 'fork-lane-new-scope',\n 'create the new lane in a different scope than its parent lane (if created from another lane)',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([name]: [string], createLaneOptions: CreateLaneOptions & { remoteScope?: string }): Promise<string> {\n if (!this.lanes.workspace) throw new OutsideWorkspaceError();\n const currentLane = await this.lanes.getCurrentLane();\n if (createLaneOptions.remoteScope) createLaneOptions.scope = createLaneOptions.remoteScope;\n const result = await this.lanes.createLane(name, createLaneOptions);\n const remoteScopeOrDefaultScope = createLaneOptions.scope\n ? `the remote scope ${chalk.bold(createLaneOptions.scope)}`\n : `the default-scope ${chalk.bold(\n result.laneId.scope\n )}. you can change the lane's scope, before it is exported, with the \"bit lane change-scope\" command`;\n const title = chalk.green(\n `successfully added and checked out to the new lane ${chalk.bold(result.alias || result.laneId.name)}\n ${currentLane ? chalk.yellow(`\\nnote - your new lane will be based on lane ${currentLane.name}`) : ''}\n `\n );\n const remoteScopeOutput = `this lane will be exported to ${remoteScopeOrDefaultScope}`;\n return `${title}\\n${remoteScopeOutput}`;\n }\n}\n\nexport class LaneAliasCmd implements Command {\n name = 'alias <lane-name> <alias>';\n description = 'adds an alias to a lane';\n extendedDescription = `an alias is a name that can be used locally to refer to a lane. it is saved locally and never reaches the remote.\nit is useful e.g. when having multiple lanes with the same name, but with different remote scopes.`;\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName, alias]: [string, string, string]): Promise<string> {\n const { laneId } = await this.lanes.aliasLane(laneName, alias);\n return `successfully added the alias ${chalk.bold(alias)} for lane ${chalk.bold(laneId.toString())}`;\n }\n}\n\nexport class CatLaneHistoryCmd implements Command {\n name = 'cat-lane-history <lane-name>';\n description = 'cat lane-history object by lane-name';\n private = true;\n alias = 'clh';\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string]): Promise<string> {\n const laneId = await this.lanes.parseLaneId(laneName);\n const laneHistory = await this.lanes.getLaneHistory(laneId);\n return JSON.stringify(laneHistory.toObject(), null, 2);\n }\n}\n\nexport type LaneCheckoutOpts = { skipDependencyInstallation?: boolean };\n\nexport class LaneCheckoutCmd implements Command {\n name = 'checkout <history-id>';\n description = 'EXPERIMENTAL. checkout to a previous history of the current lane. see also \"bit lane revert\"';\n arguments = [\n { name: 'history-id', description: 'the history-id to checkout to. run \"bit lane history\" to list the ids' },\n ];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the checked out components'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string> {\n const result = await this.lanes.checkoutHistory(historyId, opts);\n return checkoutOutput(result, {}, `successfully checked out according to history-id: ${historyId}`);\n }\n}\n\nexport class LaneRevertCmd implements Command {\n name = 'revert <history-id>';\n description = 'EXPERIMENTAL. revert to a previous history of the current lane. see also \"bit lane checkout\"';\n extendedDescription = `revert is similar to \"lane checkout\", but it keeps the versions and only change the files.\nchoose one or the other based on your needs.\nif you want to continue working on this lane and needs the changes from the history to be the head, then use \"lane revert\".\nif you want to fork the lane from a certain point in history, use \"lane checkout\" and create a new lane from it.`;\n arguments = [\n { name: 'history-id', description: 'the history-id to checkout to. run \"bit lane history\" to list the ids' },\n ];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the checked out components'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string> {\n const result = await this.lanes.revertHistory(historyId, opts);\n return checkoutOutput(result, {}, `successfully reverted according to history-id: ${historyId}`);\n }\n}\n\nexport class LaneHistoryCmd implements Command {\n name = 'history [lane-name]';\n description = 'EXPERIMENTAL. show lane history, default to the current lane';\n alias = '';\n options = [['', 'id <string>', 'show a specific history item']] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string], { id }: { id?: string }): Promise<string> {\n const laneId = laneName ? await this.lanes.parseLaneId(laneName) : this.lanes.getCurrentLaneId();\n if (!laneId || laneId.isDefault()) throw new BitError(`unable to show history of the default lane (main)`);\n await this.lanes.importLaneHistory(laneId);\n const laneHistory = await this.lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n if (id) {\n const historyItem = history[id];\n if (!historyItem) throw new Error(`history id ${id} was not found`);\n const date = new Date(parseInt(historyItem.log.date)).toLocaleString();\n const message = historyItem.log.message;\n return `${id} ${date} ${historyItem.log.username} ${message}\\n\\n${historyItem.components.join('\\n')}`;\n }\n const items = Object.keys(history).map((uuid) => {\n const historyItem = history[uuid];\n const date = new Date(parseInt(historyItem.log.date)).toLocaleString();\n const message = historyItem.log.message;\n return `${uuid} ${date} ${historyItem.log.username} ${message}`;\n });\n return items.join('\\n');\n }\n}\n\nexport class LaneEjectCmd implements Command {\n name = 'eject <component-pattern>';\n description = `delete a component from the lane and install it as a package from main`;\n extendedDescription = `NOTE: unlike \"bit eject\" on main, this command doesn't only remove the component from the\nworkspace, but also mark it as deleted from the lane, so it won't be merged later on.`;\n alias = '';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.lanes.eject(pattern);\n const title = chalk.green('successfully ejected the following components');\n const body = results.map((r) => r.toString()).join('\\n');\n return `${title}\\n${body}`;\n }\n}\n\nexport class LaneChangeScopeCmd implements Command {\n name = 'change-scope <remote-scope-name>';\n description = `changes the remote scope of a lane`;\n extendedDescription = 'NOTE: available only before the lane is exported to the remote';\n alias = '';\n options = [\n [\n 'l',\n 'lane-name <lane-name>',\n 'the name of the lane to change its remote scope. if not specified, the current lane is used',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([remoteScope]: [string], { laneName }: { laneName?: string }): Promise<string> {\n const { remoteScopeBefore, localName } = await this.lanes.changeScope(remoteScope, laneName);\n return `the remote-scope of ${chalk.bold(localName)} has been changed from ${chalk.bold(\n remoteScopeBefore\n )} to ${chalk.bold(remoteScope)}`;\n }\n}\n\nexport class LaneRenameCmd implements Command {\n name = 'rename <new-name>';\n description = `EXPERIMENTAL. change the lane-name locally`;\n extendedDescription = 'the remote will be updated after the next \"bit export\" command';\n alias = '';\n options = [\n ['l', 'lane-name <lane-name>', 'the name of the lane to rename. if not specified, the current lane is used'],\n ] as CommandOptions;\n loader = true;\n constructor(private lanes: LanesMain) {}\n\n async report([newName]: [string], { laneName }: { laneName?: string }): Promise<string> {\n const { currentName } = await this.lanes.rename(newName, laneName);\n return `the lane ${chalk.bold(currentName)}'s name has been changed to ${chalk.bold(newName)}.`;\n }\n}\n\nexport class LaneRemoveCmd implements Command {\n name = 'remove <lanes...>';\n arguments = [{ name: 'lanes...', description: 'A list of lane names, separated by spaces' }];\n description = `remove or delete lanes`;\n group = 'collaborate';\n alias = '';\n options = [\n [\n 'r',\n 'remote',\n 'delete a remote lane. use remote/lane-id syntax e.g. bit lane remove owner.org/my-lane --remote. Delete is immediate, no export required',\n ],\n ['f', 'force', 'removes/deletes the lane even when the lane is not yet merged to main'],\n ['s', 'silent', 'skip confirmation'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report(\n [names]: [string[]],\n {\n remote = false,\n force = false,\n silent = false,\n }: {\n remote: boolean;\n force: boolean;\n silent: boolean;\n }\n ): Promise<string> {\n if (!silent) {\n const removePromptResult = await approveOperation();\n // @ts-ignore\n if (!yn(removePromptResult.shouldProceed)) {\n throw new BitError('the operation has been cancelled');\n }\n }\n const laneResults = await this.lanes.removeLanes(names, { remote, force });\n return chalk.green(`successfully removed the following lane(s): ${chalk.bold(laneResults.join(', '))}`);\n }\n}\n\nexport type RemoveCompsOpts = { workspaceOnly?: boolean; updateMain?: boolean };\n\nexport class LaneRemoveCompCmd implements Command {\n name = 'remove-comp <component-pattern>';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = `DEPRECATED. remove components when on a lane`;\n group = 'collaborate';\n alias = 'rc';\n options = [\n [\n '',\n 'workspace-only',\n 'do not mark the components as removed from the lane. instead, remove them from the workspace only',\n ],\n [\n '',\n 'update-main',\n 'EXPERIMENTAL. remove, i.e. delete, component/s on the main lane after merging this lane into main',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private workspace: Workspace, private lanes: LanesMain) {}\n\n async report(): Promise<string> {\n throw new BitError(`bit lane remove-comp has been removed. please use \"bit remove\" or \"bit delete\" instead`);\n }\n}\n\nexport class LaneImportCmd implements Command {\n name = 'import <lane>';\n description = `import a remote lane to your workspace and switch to that lane`;\n arguments = [{ name: 'lane', description: 'the remote lane name' }];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the imported components'],\n [\n 'p',\n 'pattern <component-pattern>',\n 'import only components from the lane that fit the specified component-pattern to the workspace. works only when the workspace is empty',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private switchCmd: SwitchCmd) {}\n\n async report(\n [lane]: [string],\n { skipDependencyInstallation = false, pattern }: { skipDependencyInstallation: boolean; pattern?: string }\n ): Promise<string> {\n return this.switchCmd.report([lane], { skipDependencyInstallation, pattern });\n }\n}\n\nexport class LaneFetchCmd implements Command {\n name = 'fetch [lane-id]';\n description = `fetch component objects from lanes. if no lane-id is provided, it fetches from the current lane`;\n extendedDescription = `note, it does not save the remote lanes objects locally, only the refs`;\n alias = '';\n options = [['a', 'all', 'fetch all remote lanes']] as CommandOptions;\n loader = true;\n\n constructor(private fetchCmd: FetchCmd, private lanes: LanesMain) {}\n\n async report([laneId]: [string], { all }: { all?: boolean }): Promise<string> {\n if (all) return this.fetchCmd.report([[]], { lanes: true });\n const getLaneIdStr = () => {\n if (laneId) return laneId;\n const currentLane = this.lanes.getCurrentLaneId();\n if (!currentLane || currentLane.isDefault())\n throw new BitError('you are not checked out to any lane. please specify a lane-id to fetch or use --all flag');\n return currentLane.toString();\n };\n const lane = getLaneIdStr();\n return this.fetchCmd.report([[lane]], { lanes: true });\n }\n}\n\nexport class LaneCmd implements Command {\n name = 'lane [sub-command]';\n description = 'manage lanes - if no sub-command is used, runs \"bit lane list\"';\n alias = 'l';\n options = [\n ['d', 'details', 'show more details on the state of each component in each lane'],\n ['j', 'json', 'show lanes details in json format'],\n ['r', 'remote <remote-scope-name>', 'show all remote lanes from the specified scope'],\n ['', 'merged', 'list only merged lanes'],\n ['', 'not-merged', \"list only lanes that haven't been merged\"],\n ] as CommandOptions;\n loader = true;\n group = 'collaborate';\n remoteOp = true;\n skipWorkspace = true;\n helpUrl = 'reference/components/lanes';\n commands: Command[] = [];\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report([name]: [string], laneOptions: LaneOptions): Promise<string> {\n return new LaneListCmd(this.lanes, this.workspace, this.scope).report([name], laneOptions);\n }\n}\n\n/**\n * @deprecated - only use it to revert the add-readme command changes\n */\nexport class LaneRemoveReadmeCmd implements Command {\n name = 'remove-readme [laneName]';\n description =\n 'DEPRECATED (only use it if you have used add-readme and want to undo it). remove lane readme component';\n options = [] as CommandOptions;\n loader = true;\n skipWorkspace = false;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string]): Promise<string> {\n const { result, message } = await this.lanes.removeLaneReadme(laneName);\n\n if (result) {\n return chalk.green(\n `the readme component has been successfully removed from the lane ${\n laneName || this.lanes.getCurrentLaneName()\n }`\n );\n }\n\n return chalk.red(`${message}\\n`);\n }\n}\n\nfunction outputComponents(components: LaneData['components']): string {\n const componentsTitle = `\\t${chalk.bold(`components (${components.length})`)}\\n`;\n const componentsStr = components.map((c) => `\\t ${c.id.toString()} - ${c.head}`).join('\\n');\n return componentsTitle + componentsStr;\n}\n\nfunction outputReadmeComponent(component: LaneData['readmeComponent']): string {\n if (!component) return '';\n return `\\n\\t${`${chalk.yellow('readme component')}\\n\\t ${component.id} - ${\n component.head ||\n `(unsnapped)\\n\\t(\"use bit snap ${component.id.fullName}\" to snap the readme component on the lane before exporting)`\n }`}\\n`;\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,IAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,UAAA;EAAA,MAAAR,IAAA,GAAAE,OAA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D,QAAQ,CAAC;IAEvE,IAAIN,MAAM,EAAE;MACV,OAAO9D,gBAAK,CAACC,KAAK,CAChB,oEACEmE,QAAQ,IAAI,IAAI,CAAC3F,KAAK,CAAC6E,kBAAkB,CAAC,CAAC,EAE/C,CAAC;IACH;IAEA,OAAOtD,gBAAK,CAACiI,GAAG,CAAC,GAAGxC,OAAO,IAAI,CAAC;EAClC;AACF;AAACrD,OAAA,CAAA2F,mBAAA,GAAAA,mBAAA;AAED,SAAS3G,gBAAgBA,CAACC,UAAkC,EAAU;EACpE,MAAM6G,eAAe,GAAG,KAAKlI,gBAAK,CAAC0B,IAAI,CAAC,eAAeL,UAAU,CAACtB,MAAM,GAAG,CAAC,IAAI;EAChF,MAAMoI,aAAa,GAAG9G,UAAU,CAACnB,GAAG,CAAEkI,CAAC,IAAK,OAAOA,CAAC,CAACxH,EAAE,CAACpB,QAAQ,CAAC,CAAC,MAAM4I,CAAC,CAACC,IAAI,EAAE,CAAC,CAACjI,IAAI,CAAC,IAAI,CAAC;EAC5F,OAAO8H,eAAe,GAAGC,aAAa;AACxC;AAEA,SAASnH,qBAAqBA,CAACsH,SAAsC,EAAU;EAC7E,IAAI,CAACA,SAAS,EAAE,OAAO,EAAE;EACzB,OAAO,OAAO,GAAGtI,gBAAK,CAACiE,MAAM,CAAC,kBAAkB,CAAC,SAASqE,SAAS,CAAC1H,EAAE,MACpE0H,SAAS,CAACD,IAAI,IACd,iCAAiCC,SAAS,CAAC1H,EAAE,CAAC2H,QAAQ,8DAA8D,EACpH,IAAI;AACR","ignoreList":[]}
|
1
|
+
{"version":3,"names":["_chalk","data","_interopRequireDefault","require","_yn","_laneId","_checkout","_workspace","_lanes","_bitError","_legacyCli","_constants","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","LaneListCmd","constructor","lanes","workspace","scope","report","args","laneOptions","details","remote","merged","notMerged","laneIdStr","laneId","alias","isDefault","name","toString","getLanes","showDefaultLane","mergedLanes","filter","l","isMerged","length","chalk","green","map","m","join","unmergedLanes","currentLane","getCurrentLaneId","getDefaultLaneId","laneDataOfCurrentLane","find","isEqual","id","undefined","currentAlias","currentLaneReadmeComponentStr","outputReadmeComponent","readmeComponent","currentLaneStr","currentLaneComponents","outputComponents","components","availableLanes","laneData","readmeComponentStr","laneTitle","bold","concat","outputFooter","footer","outputCurrentLane","outputAvailableLanes","json","lanesData","serializeLaneData","getCurrentLaneNameOrAlias","exports","LaneShowCmd","geLanesData","onlyLane","DEFAULT_LANE","title","author","log","username","email","date","Date","parseInt","toLocaleString","link","DEFAULT_CLOUD_DOMAIN","replace","Error","getCurrentLaneName","parseLaneId","LaneCreateCmd","description","createLaneOptions","OutsideWorkspaceError","getCurrentLane","remoteScope","result","createLane","remoteScopeOrDefaultScope","yellow","remoteScopeOutput","LaneAliasCmd","laneName","aliasLane","CatLaneHistoryCmd","laneHistory","getLaneHistory","JSON","stringify","toObject","LaneCheckoutCmd","historyId","opts","checkoutHistory","checkoutOutput","LaneRevertCmd","revertHistory","LaneHistoryCmd","BitError","importLaneHistory","history","getHistory","historyItem","message","items","keys","uuid","LaneEjectCmd","COMPONENT_PATTERN_HELP","pattern","results","eject","body","LaneChangeScopeCmd","remoteScopeBefore","localName","changeScope","LaneRenameCmd","newName","currentName","rename","LaneRemoveCmd","names","force","silent","removePromptResult","approveOperation","yn","shouldProceed","laneResults","removeLanes","LaneRemoveCompCmd","LaneImportCmd","switchCmd","lane","skipDependencyInstallation","LaneFetchCmd","fetchCmd","all","getLaneIdStr","LaneCmd","LaneRemoveReadmeCmd","removeLaneReadme","red","componentsTitle","componentsStr","c","head","component","fullName"],"sources":["lane.cmd.ts"],"sourcesContent":["// eslint-disable-next-line max-classes-per-file\nimport chalk from 'chalk';\nimport yn from 'yn';\nimport { ScopeMain } from '@teambit/scope';\nimport { DEFAULT_LANE, LaneId } from '@teambit/lane-id';\nimport { checkoutOutput } from '@teambit/checkout';\nimport { OutsideWorkspaceError, Workspace } from '@teambit/workspace';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { LaneData, serializeLaneData } from '@teambit/legacy/dist/scope/lanes/lanes';\nimport { BitError } from '@teambit/bit-error';\nimport { approveOperation } from '@teambit/legacy.cli.prompts';\nimport { COMPONENT_PATTERN_HELP, DEFAULT_CLOUD_DOMAIN } from '@teambit/legacy/dist/constants';\nimport { CreateLaneOptions, LanesMain } from './lanes.main.runtime';\nimport { SwitchCmd } from './switch.cmd';\nimport { FetchCmd } from '@teambit/importer';\n\ntype LaneOptions = {\n details?: boolean;\n remote?: string;\n merged?: boolean;\n notMerged?: boolean;\n json?: boolean;\n};\n\nexport class LaneListCmd implements Command {\n name = 'list';\n description = `list local or remote lanes`;\n alias = '';\n options = [\n ['d', 'details', 'show more details on the state of each component in each lane'],\n ['j', 'json', \"show lanes' details in a json format\"],\n ['r', 'remote <remote-scope-name>', 'show all remote lanes from the specified scope'],\n ['', 'merged', 'list only merged lanes'],\n ['', 'not-merged', \"list only lanes that haven't been merged\"],\n ] as CommandOptions;\n loader = true;\n remoteOp = true;\n skipWorkspace = true;\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report(args, laneOptions: LaneOptions): Promise<string> {\n const { details, remote, merged, notMerged } = laneOptions;\n const laneIdStr = (laneId: LaneId, alias?: string | null) => {\n if (laneId.isDefault()) return laneId.name;\n if (alias) return `${laneId.toString()} (${alias})`;\n return laneId.toString();\n };\n const lanes = await this.lanes.getLanes({\n remote,\n merged,\n notMerged,\n showDefaultLane: true,\n });\n if (merged) {\n const mergedLanes = lanes.filter((l) => l.isMerged);\n if (!mergedLanes.length) return chalk.green('None of the lanes is merged');\n return chalk.green(mergedLanes.map((m) => m.name).join('\\n'));\n }\n if (notMerged) {\n const unmergedLanes = lanes.filter((l) => !l.isMerged);\n if (!unmergedLanes.length) return chalk.green('All lanes are merged');\n return chalk.green(unmergedLanes.map((m) => m.name).join('\\n'));\n }\n const currentLane = this.lanes.getCurrentLaneId() || this.lanes.getDefaultLaneId();\n const laneDataOfCurrentLane = currentLane ? lanes.find((l) => currentLane.isEqual(l.id)) : undefined;\n const currentAlias = laneDataOfCurrentLane ? laneDataOfCurrentLane.alias : undefined;\n const currentLaneReadmeComponentStr = outputReadmeComponent(laneDataOfCurrentLane?.readmeComponent);\n let currentLaneStr = remote\n ? ''\n : `current lane - ${chalk.green.green(laneIdStr(currentLane, currentAlias))}${currentLaneReadmeComponentStr}`;\n\n if (details) {\n const currentLaneComponents = laneDataOfCurrentLane ? outputComponents(laneDataOfCurrentLane.components) : '';\n if (currentLaneStr) {\n currentLaneStr += `\\n${currentLaneComponents}`;\n }\n }\n\n const availableLanes = lanes\n .filter((l) => !currentLane.isEqual(l.id))\n .map((laneData) => {\n const readmeComponentStr = outputReadmeComponent(laneData.readmeComponent);\n if (details) {\n const laneTitle = `> ${chalk.bold(laneIdStr(laneData.id, laneData.alias))}\\n`;\n const components = outputComponents(laneData.components);\n return laneTitle + readmeComponentStr.concat('\\n') + components;\n }\n return ` > ${chalk.green(laneIdStr(laneData.id, laneData.alias))} (${\n laneData.components.length\n } components)${readmeComponentStr}`;\n })\n .join('\\n');\n\n const outputFooter = () => {\n let footer = '\\n';\n if (details) {\n footer += 'You can use --merged and --not-merged to see which of the lanes is fully merged.';\n } else {\n footer +=\n \"to get more info on all lanes in local scope use 'bit lane list --details', or 'bit lane show <lane-name>' for a specific lane.\";\n }\n if (!remote && this.workspace)\n footer += `\\nswitch lanes using 'bit switch <name>'. create lanes using 'bit lane create <name>'.`;\n\n return footer;\n };\n\n return outputCurrentLane() + outputAvailableLanes() + outputFooter();\n\n function outputCurrentLane() {\n return currentLaneStr ? `${currentLaneStr}\\n` : '';\n }\n\n function outputAvailableLanes() {\n if (!availableLanes) return '';\n return remote ? `${availableLanes}\\n` : `\\nAvailable lanes:\\n${availableLanes}\\n`;\n }\n }\n async json(args, laneOptions: LaneOptions) {\n const { remote, merged = false, notMerged = false } = laneOptions;\n\n const lanesData = await this.lanes.getLanes({\n remote,\n showDefaultLane: true,\n merged,\n notMerged,\n });\n const lanes = lanesData.map(serializeLaneData);\n const currentLane = this.lanes.getCurrentLaneNameOrAlias();\n return { lanes, currentLane };\n }\n}\n\nexport class LaneShowCmd implements Command {\n name = 'show [lane-name]';\n description = `show lane details. if no lane specified, show the current lane`;\n alias = '';\n options = [\n ['j', 'json', 'show the lane details in json format'],\n ['r', 'remote', 'show details of the remote head of the provided lane'],\n ] as CommandOptions;\n loader = true;\n remoteOp = true;\n skipWorkspace = true;\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report([name]: [string], laneOptions: LaneOptions): Promise<string> {\n const lanes = await this.geLanesData([name], laneOptions);\n const onlyLane = lanes[0];\n const laneId = onlyLane.id;\n const laneIdStr = laneId.isDefault() ? DEFAULT_LANE : laneId.toString();\n const title = `showing information for ${chalk.bold(laneIdStr)}\\n`;\n const author = onlyLane.log ? `author: ${onlyLane.log?.username || 'N/A'} <${onlyLane.log?.email || 'N/A'}>\\n` : '';\n const date = onlyLane.log?.date ? `created: ${new Date(parseInt(onlyLane.log.date)).toLocaleString()}\\n` : '';\n const link = laneId.isDefault()\n ? ''\n : `link: https://${DEFAULT_CLOUD_DOMAIN}/${laneId.scope.replace('.', '/')}/~lane/${laneId.name}\\n`;\n return title + author + date + link + outputComponents(onlyLane.components);\n }\n\n private async geLanesData([name]: [string], laneOptions: LaneOptions) {\n const { remote } = laneOptions;\n\n if (!name && remote) {\n throw new Error('remote flag is not supported without lane name');\n }\n if (!name) {\n name = this.lanes.getCurrentLaneName() || DEFAULT_LANE;\n }\n\n const laneId = await this.lanes.parseLaneId(name);\n\n const lanes = await this.lanes.getLanes({\n name: laneId.name,\n remote: remote ? laneId.scope : undefined,\n });\n\n return lanes;\n }\n\n async json([name]: [string], laneOptions: LaneOptions) {\n const lanes = await this.geLanesData([name], laneOptions);\n return serializeLaneData(lanes[0]);\n }\n}\n\nexport class LaneCreateCmd implements Command {\n name = 'create <lane-name>';\n arguments = [\n {\n name: 'lane-name',\n description: 'the name for the new lane',\n },\n ];\n description = `creates a new lane and switches to it`;\n extendedDescription = `a lane created from main (default-lane) is empty until components are snapped.\na lane created from another lane contains all the components of the original lane.`;\n alias = '';\n options = [\n [\n 's',\n 'scope <scope-name>',\n 'remote scope to which this lane will be exported, default to the workspace.json\\'s defaultScope (can be changed up to first export of the lane with \"bit lane change-scope\")',\n ],\n ['', 'remote-scope <scope-name>', 'DEPRECATED. use --scope'],\n [\n '',\n 'alias <name>',\n 'a local alias to refer to this lane, defaults to the `<lane-name>` (can be added later with \"bit lane alias\")',\n ],\n [\n '',\n 'fork-lane-new-scope',\n 'create the new lane in a different scope than its parent lane (if created from another lane)',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([name]: [string], createLaneOptions: CreateLaneOptions & { remoteScope?: string }): Promise<string> {\n if (!this.lanes.workspace) throw new OutsideWorkspaceError();\n const currentLane = await this.lanes.getCurrentLane();\n if (createLaneOptions.remoteScope) createLaneOptions.scope = createLaneOptions.remoteScope;\n const result = await this.lanes.createLane(name, createLaneOptions);\n const remoteScopeOrDefaultScope = createLaneOptions.scope\n ? `the remote scope ${chalk.bold(createLaneOptions.scope)}`\n : `the default-scope ${chalk.bold(\n result.laneId.scope\n )}. you can change the lane's scope, before it is exported, with the \"bit lane change-scope\" command`;\n const title = chalk.green(\n `successfully added and checked out to the new lane ${chalk.bold(result.alias || result.laneId.name)}\n ${currentLane ? chalk.yellow(`\\nnote - your new lane will be based on lane ${currentLane.name}`) : ''}\n `\n );\n const remoteScopeOutput = `this lane will be exported to ${remoteScopeOrDefaultScope}`;\n return `${title}\\n${remoteScopeOutput}`;\n }\n}\n\nexport class LaneAliasCmd implements Command {\n name = 'alias <lane-name> <alias>';\n description = 'adds an alias to a lane';\n extendedDescription = `an alias is a name that can be used locally to refer to a lane. it is saved locally and never reaches the remote.\nit is useful e.g. when having multiple lanes with the same name, but with different remote scopes.`;\n alias = '';\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName, alias]: [string, string, string]): Promise<string> {\n const { laneId } = await this.lanes.aliasLane(laneName, alias);\n return `successfully added the alias ${chalk.bold(alias)} for lane ${chalk.bold(laneId.toString())}`;\n }\n}\n\nexport class CatLaneHistoryCmd implements Command {\n name = 'cat-lane-history <lane-name>';\n description = 'cat lane-history object by lane-name';\n private = true;\n alias = 'clh';\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string]): Promise<string> {\n const laneId = await this.lanes.parseLaneId(laneName);\n const laneHistory = await this.lanes.getLaneHistory(laneId);\n return JSON.stringify(laneHistory.toObject(), null, 2);\n }\n}\n\nexport type LaneCheckoutOpts = { skipDependencyInstallation?: boolean };\n\nexport class LaneCheckoutCmd implements Command {\n name = 'checkout <history-id>';\n description = 'EXPERIMENTAL. checkout to a previous history of the current lane. see also \"bit lane revert\"';\n arguments = [\n { name: 'history-id', description: 'the history-id to checkout to. run \"bit lane history\" to list the ids' },\n ];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the checked out components'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string> {\n const result = await this.lanes.checkoutHistory(historyId, opts);\n return checkoutOutput(result, {}, `successfully checked out according to history-id: ${historyId}`);\n }\n}\n\nexport class LaneRevertCmd implements Command {\n name = 'revert <history-id>';\n description = 'EXPERIMENTAL. revert to a previous history of the current lane. see also \"bit lane checkout\"';\n extendedDescription = `revert is similar to \"lane checkout\", but it keeps the versions and only change the files.\nchoose one or the other based on your needs.\nif you want to continue working on this lane and needs the changes from the history to be the head, then use \"lane revert\".\nif you want to fork the lane from a certain point in history, use \"lane checkout\" and create a new lane from it.`;\n arguments = [\n { name: 'history-id', description: 'the history-id to checkout to. run \"bit lane history\" to list the ids' },\n ];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the checked out components'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string> {\n const result = await this.lanes.revertHistory(historyId, opts);\n return checkoutOutput(result, {}, `successfully reverted according to history-id: ${historyId}`);\n }\n}\n\nexport class LaneHistoryCmd implements Command {\n name = 'history [lane-name]';\n description = 'EXPERIMENTAL. show lane history, default to the current lane';\n alias = '';\n options = [['', 'id <string>', 'show a specific history item']] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string], { id }: { id?: string }): Promise<string> {\n const laneId = laneName ? await this.lanes.parseLaneId(laneName) : this.lanes.getCurrentLaneId();\n if (!laneId || laneId.isDefault()) throw new BitError(`unable to show history of the default lane (main)`);\n await this.lanes.importLaneHistory(laneId);\n const laneHistory = await this.lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n if (id) {\n const historyItem = history[id];\n if (!historyItem) throw new Error(`history id ${id} was not found`);\n const date = new Date(parseInt(historyItem.log.date)).toLocaleString();\n const message = historyItem.log.message;\n return `${id} ${date} ${historyItem.log.username} ${message}\\n\\n${historyItem.components.join('\\n')}`;\n }\n const items = Object.keys(history).map((uuid) => {\n const historyItem = history[uuid];\n const date = new Date(parseInt(historyItem.log.date)).toLocaleString();\n const message = historyItem.log.message;\n return `${uuid} ${date} ${historyItem.log.username} ${message}`;\n });\n return items.join('\\n');\n }\n}\n\nexport class LaneEjectCmd implements Command {\n name = 'eject <component-pattern>';\n description = `delete a component from the lane and install it as a package from main`;\n extendedDescription = `NOTE: unlike \"bit eject\" on main, this command doesn't only remove the component from the\nworkspace, but also mark it as deleted from the lane, so it won't be merged later on.`;\n alias = '';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n options = [] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([pattern]: [string]) {\n const results = await this.lanes.eject(pattern);\n const title = chalk.green('successfully ejected the following components');\n const body = results.map((r) => r.toString()).join('\\n');\n return `${title}\\n${body}`;\n }\n}\n\nexport class LaneChangeScopeCmd implements Command {\n name = 'change-scope <remote-scope-name>';\n description = `changes the remote scope of a lane`;\n extendedDescription = 'NOTE: available only before the lane is exported to the remote';\n alias = '';\n options = [\n [\n 'l',\n 'lane-name <lane-name>',\n 'the name of the lane to change its remote scope. if not specified, the current lane is used',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report([remoteScope]: [string], { laneName }: { laneName?: string }): Promise<string> {\n const { remoteScopeBefore, localName } = await this.lanes.changeScope(remoteScope, laneName);\n return `the remote-scope of ${chalk.bold(localName)} has been changed from ${chalk.bold(\n remoteScopeBefore\n )} to ${chalk.bold(remoteScope)}`;\n }\n}\n\nexport class LaneRenameCmd implements Command {\n name = 'rename <new-name>';\n description = `change the lane-name locally`;\n extendedDescription = 'the remote will be updated after the next \"bit export\" command';\n alias = '';\n options = [\n ['l', 'lane-name <lane-name>', 'the name of the lane to rename. if not specified, the current lane is used'],\n ] as CommandOptions;\n loader = true;\n constructor(private lanes: LanesMain) {}\n\n async report([newName]: [string], { laneName }: { laneName?: string }): Promise<string> {\n const { currentName } = await this.lanes.rename(newName, laneName);\n return `the lane ${chalk.bold(currentName)}'s name has been changed to ${chalk.bold(newName)}.`;\n }\n}\n\nexport class LaneRemoveCmd implements Command {\n name = 'remove <lanes...>';\n arguments = [{ name: 'lanes...', description: 'A list of lane names, separated by spaces' }];\n description = `remove or delete lanes`;\n group = 'collaborate';\n alias = '';\n options = [\n [\n 'r',\n 'remote',\n 'delete a remote lane. use remote/lane-id syntax e.g. bit lane remove owner.org/my-lane --remote. Delete is immediate, no export required',\n ],\n ['f', 'force', 'removes/deletes the lane even when the lane is not yet merged to main'],\n ['s', 'silent', 'skip confirmation'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report(\n [names]: [string[]],\n {\n remote = false,\n force = false,\n silent = false,\n }: {\n remote: boolean;\n force: boolean;\n silent: boolean;\n }\n ): Promise<string> {\n if (!silent) {\n const removePromptResult = await approveOperation();\n // @ts-ignore\n if (!yn(removePromptResult.shouldProceed)) {\n throw new BitError('the operation has been cancelled');\n }\n }\n const laneResults = await this.lanes.removeLanes(names, { remote, force });\n return chalk.green(`successfully removed the following lane(s): ${chalk.bold(laneResults.join(', '))}`);\n }\n}\n\nexport type RemoveCompsOpts = { workspaceOnly?: boolean; updateMain?: boolean };\n\nexport class LaneRemoveCompCmd implements Command {\n name = 'remove-comp <component-pattern>';\n arguments = [\n {\n name: 'component-pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = `DEPRECATED. remove components when on a lane`;\n group = 'collaborate';\n alias = 'rc';\n options = [\n [\n '',\n 'workspace-only',\n 'do not mark the components as removed from the lane. instead, remove them from the workspace only',\n ],\n [\n '',\n 'update-main',\n 'EXPERIMENTAL. remove, i.e. delete, component/s on the main lane after merging this lane into main',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private workspace: Workspace, private lanes: LanesMain) {}\n\n async report(): Promise<string> {\n throw new BitError(`bit lane remove-comp has been removed. please use \"bit remove\" or \"bit delete\" instead`);\n }\n}\n\nexport class LaneImportCmd implements Command {\n name = 'import <lane>';\n description = `import a remote lane to your workspace and switch to that lane`;\n arguments = [{ name: 'lane', description: 'the remote lane name' }];\n alias = '';\n options = [\n ['x', 'skip-dependency-installation', 'do not install dependencies of the imported components'],\n [\n 'p',\n 'pattern <component-pattern>',\n 'import only components from the lane that fit the specified component-pattern to the workspace. works only when the workspace is empty',\n ],\n ] as CommandOptions;\n loader = true;\n\n constructor(private switchCmd: SwitchCmd) {}\n\n async report(\n [lane]: [string],\n { skipDependencyInstallation = false, pattern }: { skipDependencyInstallation: boolean; pattern?: string }\n ): Promise<string> {\n return this.switchCmd.report([lane], { skipDependencyInstallation, pattern });\n }\n}\n\nexport class LaneFetchCmd implements Command {\n name = 'fetch [lane-id]';\n description = `fetch component objects from lanes. if no lane-id is provided, it fetches from the current lane`;\n extendedDescription = `note, it does not save the remote lanes objects locally, only the refs`;\n alias = '';\n options = [['a', 'all', 'fetch all remote lanes']] as CommandOptions;\n loader = true;\n\n constructor(private fetchCmd: FetchCmd, private lanes: LanesMain) {}\n\n async report([laneId]: [string], { all }: { all?: boolean }): Promise<string> {\n if (all) return this.fetchCmd.report([[]], { lanes: true });\n const getLaneIdStr = () => {\n if (laneId) return laneId;\n const currentLane = this.lanes.getCurrentLaneId();\n if (!currentLane || currentLane.isDefault())\n throw new BitError('you are not checked out to any lane. please specify a lane-id to fetch or use --all flag');\n return currentLane.toString();\n };\n const lane = getLaneIdStr();\n return this.fetchCmd.report([[lane]], { lanes: true });\n }\n}\n\nexport class LaneCmd implements Command {\n name = 'lane [sub-command]';\n description = 'manage lanes - if no sub-command is used, runs \"bit lane list\"';\n alias = 'l';\n options = [\n ['d', 'details', 'show more details on the state of each component in each lane'],\n ['j', 'json', 'show lanes details in json format'],\n ['r', 'remote <remote-scope-name>', 'show all remote lanes from the specified scope'],\n ['', 'merged', 'list only merged lanes'],\n ['', 'not-merged', \"list only lanes that haven't been merged\"],\n ] as CommandOptions;\n loader = true;\n group = 'collaborate';\n remoteOp = true;\n skipWorkspace = true;\n helpUrl = 'reference/components/lanes';\n commands: Command[] = [];\n\n constructor(private lanes: LanesMain, private workspace: Workspace, private scope: ScopeMain) {}\n\n async report([name]: [string], laneOptions: LaneOptions): Promise<string> {\n return new LaneListCmd(this.lanes, this.workspace, this.scope).report([name], laneOptions);\n }\n}\n\n/**\n * @deprecated - only use it to revert the add-readme command changes\n */\nexport class LaneRemoveReadmeCmd implements Command {\n name = 'remove-readme [laneName]';\n description =\n 'DEPRECATED (only use it if you have used add-readme and want to undo it). remove lane readme component';\n options = [] as CommandOptions;\n loader = true;\n skipWorkspace = false;\n\n constructor(private lanes: LanesMain) {}\n\n async report([laneName]: [string]): Promise<string> {\n const { result, message } = await this.lanes.removeLaneReadme(laneName);\n\n if (result) {\n return chalk.green(\n `the readme component has been successfully removed from the lane ${\n laneName || this.lanes.getCurrentLaneName()\n }`\n );\n }\n\n return chalk.red(`${message}\\n`);\n }\n}\n\nfunction outputComponents(components: LaneData['components']): string {\n const componentsTitle = `\\t${chalk.bold(`components (${components.length})`)}\\n`;\n const componentsStr = components.map((c) => `\\t ${c.id.toString()} - ${c.head}`).join('\\n');\n return componentsTitle + componentsStr;\n}\n\nfunction outputReadmeComponent(component: LaneData['readmeComponent']): string {\n if (!component) return '';\n return `\\n\\t${`${chalk.yellow('readme component')}\\n\\t ${component.id} - ${\n component.head ||\n `(unsnapped)\\n\\t(\"use bit snap ${component.id.fullName}\" to snap the readme component on the lane before exporting)`\n }`}\\n`;\n}\n"],"mappings":";;;;;;AACA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,IAAA;EAAA,MAAAH,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,UAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,SAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,WAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,UAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;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,wBACG,KAAK;EAEkB;EAEvC,MAAMuB,MAAMA,CAAC,CAACwF,QAAQ,CAAW,EAAmB;IAClD,MAAM;MAAEN,MAAM;MAAE2B;IAAQ,CAAC,GAAG,MAAM,IAAI,CAAChH,KAAK,CAACuJ,gBAAgB,CAAC5D,QAAQ,CAAC;IAEvE,IAAIN,MAAM,EAAE;MACV,OAAO9D,gBAAK,CAACC,KAAK,CAChB,oEACEmE,QAAQ,IAAI,IAAI,CAAC3F,KAAK,CAAC6E,kBAAkB,CAAC,CAAC,EAE/C,CAAC;IACH;IAEA,OAAOtD,gBAAK,CAACiI,GAAG,CAAC,GAAGxC,OAAO,IAAI,CAAC;EAClC;AACF;AAACrD,OAAA,CAAA2F,mBAAA,GAAAA,mBAAA;AAED,SAAS3G,gBAAgBA,CAACC,UAAkC,EAAU;EACpE,MAAM6G,eAAe,GAAG,KAAKlI,gBAAK,CAAC0B,IAAI,CAAC,eAAeL,UAAU,CAACtB,MAAM,GAAG,CAAC,IAAI;EAChF,MAAMoI,aAAa,GAAG9G,UAAU,CAACnB,GAAG,CAAEkI,CAAC,IAAK,OAAOA,CAAC,CAACxH,EAAE,CAACpB,QAAQ,CAAC,CAAC,MAAM4I,CAAC,CAACC,IAAI,EAAE,CAAC,CAACjI,IAAI,CAAC,IAAI,CAAC;EAC5F,OAAO8H,eAAe,GAAGC,aAAa;AACxC;AAEA,SAASnH,qBAAqBA,CAACsH,SAAsC,EAAU;EAC7E,IAAI,CAACA,SAAS,EAAE,OAAO,EAAE;EACzB,OAAO,OAAO,GAAGtI,gBAAK,CAACiE,MAAM,CAAC,kBAAkB,CAAC,SAASqE,SAAS,CAAC1H,EAAE,MACpE0H,SAAS,CAACD,IAAI,IACd,iCAAiCC,SAAS,CAAC1H,EAAE,CAAC2H,QAAQ,8DAA8D,EACpH,IAAI;AACR","ignoreList":[]}
|
@@ -41,7 +41,7 @@ export declare class LanesUI {
|
|
41
41
|
private scope?;
|
42
42
|
static dependencies: import("@teambit/harmony").Aspect[];
|
43
43
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
44
|
-
static slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<
|
44
|
+
static slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<NavigationSlot>) | ((registerFn: () => string) => SlotRegistry<MenuWidgetSlot>) | ((registerFn: () => string) => SlotRegistry<LaneProviderIgnoreSlot>))[];
|
45
45
|
constructor(componentUI: ComponentUI, componentCompareUI: ComponentCompareUI, routeSlot: RouteSlot, navSlot: LanesOrderedNavigationSlot, menuWidgetSlot: MenuWidgetSlot,
|
46
46
|
/**
|
47
47
|
* overview line slot to add new lines beneath the overview section
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.lanes_lanes@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.lanes_lanes@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.lanes_lanes@1.0.409/dist/lanes.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.lanes_lanes@1.0.409/dist/lanes.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.409",
|
4
4
|
"homepage": "https://bit.cloud/teambit/lanes/lanes",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.lanes",
|
8
8
|
"name": "lanes",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.409"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -31,35 +31,35 @@
|
|
31
31
|
"@teambit/lanes.ui.compare.lane-compare-page": "0.0.162",
|
32
32
|
"@teambit/lanes.ui.compare.lane-compare": "0.0.193",
|
33
33
|
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.225",
|
34
|
-
"@teambit/checkout": "1.0.
|
35
|
-
"@teambit/cli": "0.0.
|
36
|
-
"@teambit/importer": "1.0.
|
34
|
+
"@teambit/checkout": "1.0.409",
|
35
|
+
"@teambit/cli": "0.0.986",
|
36
|
+
"@teambit/importer": "1.0.409",
|
37
37
|
"@teambit/legacy.cli.prompts": "0.0.2",
|
38
|
-
"@teambit/scope": "1.0.
|
39
|
-
"@teambit/workspace": "1.0.
|
40
|
-
"@teambit/express": "0.0.
|
41
|
-
"@teambit/logger": "0.0.
|
42
|
-
"@teambit/graphql": "1.0.
|
43
|
-
"@teambit/component-compare": "1.0.
|
44
|
-
"@teambit/component-writer": "1.0.
|
45
|
-
"@teambit/component": "1.0.
|
46
|
-
"@teambit/export": "1.0.
|
38
|
+
"@teambit/scope": "1.0.409",
|
39
|
+
"@teambit/workspace": "1.0.409",
|
40
|
+
"@teambit/express": "0.0.1085",
|
41
|
+
"@teambit/logger": "0.0.1079",
|
42
|
+
"@teambit/graphql": "1.0.409",
|
43
|
+
"@teambit/component-compare": "1.0.409",
|
44
|
+
"@teambit/component-writer": "1.0.409",
|
45
|
+
"@teambit/component": "1.0.409",
|
46
|
+
"@teambit/export": "1.0.409",
|
47
47
|
"@teambit/harmony.modules.concurrency": "0.0.1",
|
48
|
-
"@teambit/install": "1.0.
|
48
|
+
"@teambit/install": "1.0.409",
|
49
49
|
"@teambit/lanes.entities.lane-diff": "0.0.166",
|
50
50
|
"@teambit/lanes.modules.create-lane": "0.0.10",
|
51
51
|
"@teambit/lanes.modules.diff": "0.0.473",
|
52
52
|
"@teambit/legacy.component-diff": "0.0.30",
|
53
53
|
"@teambit/legacy.component-list": "0.0.30",
|
54
|
-
"@teambit/merging": "1.0.
|
55
|
-
"@teambit/remove": "1.0.
|
56
|
-
"@teambit/command-bar": "1.0.
|
54
|
+
"@teambit/merging": "1.0.409",
|
55
|
+
"@teambit/remove": "1.0.409",
|
56
|
+
"@teambit/command-bar": "1.0.409",
|
57
57
|
"@teambit/lanes.hooks.use-lanes": "0.0.273",
|
58
58
|
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.228",
|
59
59
|
"@teambit/lanes.ui.lane-overview": "0.0.240",
|
60
60
|
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.221",
|
61
61
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.509",
|
62
|
-
"@teambit/ui": "1.0.
|
62
|
+
"@teambit/ui": "1.0.409"
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
65
65
|
"@types/lodash": "4.14.165",
|
@@ -71,8 +71,8 @@
|
|
71
71
|
"@teambit/harmony.envs.core-aspect-env": "0.0.47",
|
72
72
|
"@teambit/component.testing.mock-components": "0.0.235",
|
73
73
|
"@teambit/harmony.testing.load-aspect": "0.0.230",
|
74
|
-
"@teambit/merge-lanes": "1.0.
|
75
|
-
"@teambit/snapping": "1.0.
|
74
|
+
"@teambit/merge-lanes": "1.0.409",
|
75
|
+
"@teambit/snapping": "1.0.409",
|
76
76
|
"@teambit/workspace.testing.mock-workspace": "0.0.27"
|
77
77
|
},
|
78
78
|
"peerDependencies": {
|