@teambit/forking 0.0.495 → 0.0.496
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/dist/fork.cmd.js
CHANGED
@@ -25,7 +25,7 @@ class ForkCmd {
|
|
25
25
|
constructor(forking) {
|
26
26
|
this.forking = forking;
|
27
27
|
(0, _defineProperty2().default)(this, "name", 'fork <source-component-id> [target-component-name]');
|
28
|
-
(0, _defineProperty2().default)(this, "description", '
|
28
|
+
(0, _defineProperty2().default)(this, "description", 'create a new component out of an existing one (copies source files and config)');
|
29
29
|
(0, _defineProperty2().default)(this, "helpUrl", 'docs/components/importing-components#forking-components');
|
30
30
|
(0, _defineProperty2().default)(this, "arguments", [{
|
31
31
|
name: 'source-component-id',
|
package/dist/fork.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["ForkCmd","constructor","forking","name","description","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"sources":["fork.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ForkingMain } from '.';\n\nexport type ForkOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n skipDependencyInstallation?: boolean;\n skipConfig?: boolean;\n preserve?: boolean;\n noLink?: boolean;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = '
|
1
|
+
{"version":3,"names":["ForkCmd","constructor","forking","name","description","report","sourceId","targetId","options","results","fork","targetIdStr","toString","chalk","green","bold"],"sources":["fork.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { ForkingMain } from '.';\n\nexport type ForkOptions = {\n scope?: string;\n path?: string;\n refactor?: boolean;\n skipDependencyInstallation?: boolean;\n skipConfig?: boolean;\n preserve?: boolean;\n noLink?: boolean;\n};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = 'create a new component out of an existing one (copies source files and config)';\n helpUrl = 'docs/components/importing-components#forking-components';\n arguments = [\n { name: 'source-component-id', description: 'the component id of the source component' },\n {\n name: 'target-component-name',\n description:\n \"the name for the new component (component name without scope). to set a different scope, use the '--scope' flag\",\n },\n ];\n group = 'collaborate';\n skipWorkspace = true;\n alias = '';\n\n options = [\n ['s', 'scope <string>', 'default scope for the new component'],\n [\n 'p',\n 'path <string>',\n 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`',\n ],\n ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)'],\n ['x', 'skip-dependency-installation', 'do not install packages of the imported components'],\n [\n '',\n 'skip-config',\n 'do not copy the config (aspects-config) to the new component. helpful when it fails during aspect loading',\n ],\n ['', 'preserve', 'avoid renaming files and variables/classes according to the new component name'],\n ['', 'no-link', 'avoid saving a reference to the original component'],\n ] as CommandOptions;\n\n example: [\n {\n cmd: 'fork teambit.base-ui/input/button ui/button';\n description: \"create a component named 'ui/button' out of the remote 'input/button' component\";\n }\n ];\n loader = true;\n migration = true;\n remoteOp = true;\n\n constructor(private forking: ForkingMain) {}\n\n async report([sourceId, targetId]: [string, string], options: ForkOptions): Promise<string> {\n const results = await this.forking.fork(sourceId, targetId, options);\n const targetIdStr = results.toString();\n return chalk.green(`successfully forked ${chalk.bold(targetIdStr)} from ${chalk.bold(sourceId)}`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAcO,MAAMA,OAAO,CAAoB;EA4CtCC,WAAW,CAASC,OAAoB,EAAE;IAAA,KAAtBA,OAAoB,GAApBA,OAAoB;IAAA,8CA3CjC,oDAAoD;IAAA,qDAC7C,gFAAgF;IAAA,iDACpF,yDAAyD;IAAA,mDACvD,CACV;MAAEC,IAAI,EAAE,qBAAqB;MAAEC,WAAW,EAAE;IAA2C,CAAC,EACxF;MACED,IAAI,EAAE,uBAAuB;MAC7BC,WAAW,EACT;IACJ,CAAC,CACF;IAAA,+CACO,aAAa;IAAA,uDACL,IAAI;IAAA,+CACZ,EAAE;IAAA,iDAEA,CACR,CAAC,GAAG,EAAE,gBAAgB,EAAE,qCAAqC,CAAC,EAC9D,CACE,GAAG,EACH,eAAe,EACf,2GAA2G,CAC5G,EACD,CAAC,GAAG,EAAE,UAAU,EAAE,0FAA0F,CAAC,EAC7G,CAAC,GAAG,EAAE,8BAA8B,EAAE,oDAAoD,CAAC,EAC3F,CACE,EAAE,EACF,aAAa,EACb,2GAA2G,CAC5G,EACD,CAAC,EAAE,EAAE,UAAU,EAAE,gFAAgF,CAAC,EAClG,CAAC,EAAE,EAAE,SAAS,EAAE,oDAAoD,CAAC,CACtE;IAAA;IAAA,gDAQQ,IAAI;IAAA,mDACD,IAAI;IAAA,kDACL,IAAI;EAE4B;EAE3C,MAAMC,MAAM,CAAC,CAACC,QAAQ,EAAEC,QAAQ,CAAmB,EAAEC,OAAoB,EAAmB;IAC1F,MAAMC,OAAO,GAAG,MAAM,IAAI,CAACP,OAAO,CAACQ,IAAI,CAACJ,QAAQ,EAAEC,QAAQ,EAAEC,OAAO,CAAC;IACpE,MAAMG,WAAW,GAAGF,OAAO,CAACG,QAAQ,EAAE;IACtC,OAAOC,gBAAK,CAACC,KAAK,CAAE,uBAAsBD,gBAAK,CAACE,IAAI,CAACJ,WAAW,CAAE,SAAQE,gBAAK,CAACE,IAAI,CAACT,QAAQ,CAAE,EAAC,CAAC;EACnG;AACF;AAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.496/dist/forking.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.496/dist/forking.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
Binary file
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/forking",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.496",
|
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": "0.0.
|
9
|
+
"version": "0.0.496"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -18,16 +18,16 @@
|
|
18
18
|
"@teambit/harmony": "0.4.6",
|
19
19
|
"@teambit/component-id": "0.0.427",
|
20
20
|
"@teambit/legacy-bit-id": "0.0.423",
|
21
|
-
"@teambit/cli": "0.0.
|
22
|
-
"@teambit/component": "0.0.
|
23
|
-
"@teambit/graphql": "0.0.
|
21
|
+
"@teambit/cli": "0.0.733",
|
22
|
+
"@teambit/component": "0.0.1092",
|
23
|
+
"@teambit/graphql": "0.0.1092",
|
24
24
|
"@teambit/bit-error": "0.0.402",
|
25
|
-
"@teambit/dependency-resolver": "0.0.
|
26
|
-
"@teambit/install": "0.0.
|
27
|
-
"@teambit/new-component-helper": "0.0.
|
28
|
-
"@teambit/pkg": "0.0.
|
29
|
-
"@teambit/refactoring": "0.0.
|
30
|
-
"@teambit/workspace": "0.0.
|
25
|
+
"@teambit/dependency-resolver": "0.0.1092",
|
26
|
+
"@teambit/install": "0.0.191",
|
27
|
+
"@teambit/new-component-helper": "0.0.496",
|
28
|
+
"@teambit/pkg": "0.0.1092",
|
29
|
+
"@teambit/refactoring": "0.0.389",
|
30
|
+
"@teambit/workspace": "0.0.1092"
|
31
31
|
},
|
32
32
|
"devDependencies": {
|
33
33
|
"@types/react": "^17.0.8",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"@types/testing-library__jest-dom": "5.9.5"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
|
-
"@teambit/legacy": "1.0.
|
42
|
+
"@teambit/legacy": "1.0.514",
|
43
43
|
"react": "^16.8.0 || ^17.0.0",
|
44
44
|
"react-dom": "^16.8.0 || ^17.0.0"
|
45
45
|
},
|
Binary file
|