@teambit/forking 1.0.486 → 1.0.488
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_component_forking-preview.js +1 -1
- package/artifacts/schema.json +1 -1
- package/dist/preview-1733830651067.js +7 -0
- package/dist/scope-fork.cmd.js +4 -4
- package/dist/scope-fork.cmd.js.map +1 -1
- package/package.json +16 -15
- package/dist/preview-1733541556857.js +0 -7
@@ -1,4 +1,4 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
3
|
-
<testsuite name="teambit.component/forking@1.0.
|
3
|
+
<testsuite name="teambit.component/forking@1.0.488" tests="0" failures="0" errors="0" skipped="0"/>
|
4
4
|
</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.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
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.component/forking-preview"]=t():e["teambit.component/forking-preview"]=t()}(self,(()=>(()=>{"use strict";var e={97:(e,t,o)=>{var n={id:"teambit.component/forking@1.0.488",homepage:"https://bit.cloud/teambit/component/forking",exported:!0};function r(){const e=i(o(594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/forking.svg"}));c.__bit_component=n,t.Logo=c},594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>d,compositions_metadata:()=>v,overview:()=>m});var r={};o.r(r),o.d(r,{default:()=>l});var i=o(97);o(594);const c=MdxJsReact,a=TeambitMdxUiMdxScopeContext;var p=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},f="wrapper";function l(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,c.mdx)(f,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(a.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}l.isMDXComponent=!0;const d=[i],m=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
|
package/artifacts/schema.json
CHANGED
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_forking@1.0.488/dist/forking.composition.js';
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.component_forking@1.0.488/dist/forking.docs.mdx';
|
3
|
+
|
4
|
+
export const compositions = [compositions_0];
|
5
|
+
export const overview = [overview_0];
|
6
|
+
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/dist/scope-fork.cmd.js
CHANGED
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.ScopeForkCmd = void 0;
|
7
|
-
function
|
8
|
-
const data = require("@teambit/legacy
|
9
|
-
|
7
|
+
function _legacy() {
|
8
|
+
const data = require("@teambit/legacy.constants");
|
9
|
+
_legacy = function () {
|
10
10
|
return data;
|
11
11
|
};
|
12
12
|
return data;
|
@@ -34,7 +34,7 @@ class ScopeForkCmd {
|
|
34
34
|
description: 'the new scope to fork to, default to the default-scope of the workspace'
|
35
35
|
}, {
|
36
36
|
name: 'pattern',
|
37
|
-
description:
|
37
|
+
description: _legacy().COMPONENT_PATTERN_HELP
|
38
38
|
}]);
|
39
39
|
_defineProperty(this, "description", 'fork all components of the original-scope and refactor the source-code to use the new scope name');
|
40
40
|
_defineProperty(this, "extendedDescription", 'optionally, provide [pattern] to limit the fork to specific components');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["
|
1
|
+
{"version":3,"names":["_legacy","data","require","_chalk","_interopRequireDefault","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ScopeForkCmd","constructor","forking","name","description","COMPONENT_PATTERN_HELP","report","originalScope","newScope","pattern","options","forkedIds","forkScope","title","chalk","green","bold","scope","map","id","toString","join","exports"],"sources":["scope-fork.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport chalk from 'chalk';\nimport { ForkingMain } from './forking.main.runtime';\n\nexport type ScopeForkOptions = {\n ast?: boolean;\n skipDependencyInstallation?: boolean;\n};\nexport class ScopeForkCmd implements Command {\n name = 'fork <original-scope> [new-scope] [pattern]';\n arguments = [\n {\n name: 'original-scope',\n description: 'the original scope to fork',\n },\n {\n name: 'new-scope',\n description: 'the new scope to fork to, default to the default-scope of the workspace',\n },\n {\n name: 'pattern',\n description: COMPONENT_PATTERN_HELP,\n },\n ];\n description = 'fork all components of the original-scope and refactor the source-code to use the new scope name';\n extendedDescription = 'optionally, provide [pattern] to limit the fork to specific components';\n options = [\n ['', 'ast', 'use ast to transform files instead of regex'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n ] as CommandOptions;\n group = 'development';\n\n constructor(private forking: ForkingMain) {}\n\n async report([originalScope, newScope, pattern]: [string, string, string], options: ScopeForkOptions) {\n const forkedIds = await this.forking.forkScope(originalScope, newScope, pattern, options);\n const title = chalk.green(\n `successfully forked ${chalk.bold(originalScope)} into ${chalk.bold(\n newScope || forkedIds[0].scope\n )}. the following components were created`\n );\n return `${title}\\n${forkedIds.map((id) => id.toString()).join('\\n')}`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,gBAAAH,CAAA,EAAAI,CAAA,EAAAC,CAAA,YAAAD,CAAA,GAAAE,cAAA,CAAAF,CAAA,MAAAJ,CAAA,GAAAO,MAAA,CAAAC,cAAA,CAAAR,CAAA,EAAAI,CAAA,IAAAK,KAAA,EAAAJ,CAAA,EAAAK,UAAA,MAAAC,YAAA,MAA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C,OAAO,EAAEC,OAAO,CAAC;IACzF,MAAMG,KAAK,GAAGC,gBAAK,CAACC,KAAK,CACvB,uBAAuBD,gBAAK,CAACE,IAAI,CAACT,aAAa,CAAC,SAASO,gBAAK,CAACE,IAAI,CACjER,QAAQ,IAAIG,SAAS,CAAC,CAAC,CAAC,CAACM,KAC3B,CAAC,yCACH,CAAC;IACD,OAAO,GAAGJ,KAAK,KAAKF,SAAS,CAACO,GAAG,CAAEC,EAAE,IAAKA,EAAE,CAACC,QAAQ,CAAC,CAAC,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC,EAAE;EACvE;AACF;AAACC,OAAA,CAAAtB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
package/package.json
CHANGED
@@ -1,36 +1,37 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/forking",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.488",
|
4
4
|
"homepage": "https://bit.cloud/teambit/component/forking",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "forking",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.488"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"graphql-tag": "2.12.1",
|
14
14
|
"lodash": "4.17.21",
|
15
15
|
"p-map-series": "2.1.0",
|
16
|
-
"semver": "7.5.
|
16
|
+
"semver": "7.5.4",
|
17
17
|
"@teambit/harmony": "0.4.6",
|
18
18
|
"@teambit/bit-error": "0.0.404",
|
19
19
|
"@teambit/component-id": "1.2.2",
|
20
20
|
"@teambit/component-version": "1.0.3",
|
21
|
-
"@teambit/cli": "0.0.
|
22
|
-
"@teambit/generator": "1.0.
|
23
|
-
"@teambit/component": "1.0.
|
24
|
-
"@teambit/graphql": "1.0.
|
21
|
+
"@teambit/cli": "0.0.1065",
|
22
|
+
"@teambit/generator": "1.0.489",
|
23
|
+
"@teambit/component": "1.0.488",
|
24
|
+
"@teambit/graphql": "1.0.488",
|
25
25
|
"@teambit/component-package-version": "0.0.434",
|
26
|
-
"@teambit/dependency-resolver": "1.0.
|
27
|
-
"@teambit/install": "1.0.
|
28
|
-
"@teambit/new-component-helper": "1.0.
|
29
|
-
"@teambit/pkg": "1.0.
|
30
|
-
"@teambit/refactoring": "1.0.
|
31
|
-
"@teambit/scope": "1.0.
|
32
|
-
"@teambit/typescript": "1.0.
|
33
|
-
"@teambit/workspace": "1.0.
|
26
|
+
"@teambit/dependency-resolver": "1.0.488",
|
27
|
+
"@teambit/install": "1.0.488",
|
28
|
+
"@teambit/new-component-helper": "1.0.488",
|
29
|
+
"@teambit/pkg": "1.0.488",
|
30
|
+
"@teambit/refactoring": "1.0.488",
|
31
|
+
"@teambit/scope": "1.0.488",
|
32
|
+
"@teambit/typescript": "1.0.488",
|
33
|
+
"@teambit/workspace": "1.0.488",
|
34
|
+
"@teambit/legacy.constants": "0.0.1"
|
34
35
|
},
|
35
36
|
"devDependencies": {
|
36
37
|
"@types/lodash": "4.14.165",
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.486/dist/forking.composition.js';
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_forking@1.0.486/dist/forking.docs.mdx';
|
3
|
-
|
4
|
-
export const compositions = [compositions_0];
|
5
|
-
export const overview = [overview_0];
|
6
|
-
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|