@teambit/forking 0.0.162 → 0.0.165
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.d.ts +10 -1
- package/dist/fork.cmd.js +11 -5
- package/dist/fork.cmd.js.map +1 -1
- package/package-tar/teambit-forking-0.0.165.tgz +0 -0
- package/package.json +12 -12
- package/{preview-1654918011878.js → preview-1655263660719.js} +2 -2
- package/package-tar/teambit-forking-0.0.162.tgz +0 -0
package/dist/fork.cmd.d.ts
CHANGED
@@ -9,11 +9,20 @@ export declare class ForkCmd implements Command {
|
|
9
9
|
private forking;
|
10
10
|
name: string;
|
11
11
|
description: string;
|
12
|
-
|
12
|
+
arguments: {
|
13
|
+
name: string;
|
14
|
+
description: string;
|
15
|
+
}[];
|
13
16
|
group: string;
|
14
17
|
skipWorkspace: boolean;
|
15
18
|
alias: string;
|
16
19
|
options: CommandOptions;
|
20
|
+
example: [
|
21
|
+
{
|
22
|
+
cmd: 'fork teambit.base-ui/input/button ui/button';
|
23
|
+
description: "create a component named 'ui/button' out of the remote 'input/button' component";
|
24
|
+
}
|
25
|
+
];
|
17
26
|
loader: boolean;
|
18
27
|
migration: boolean;
|
19
28
|
remoteOp: boolean;
|
package/dist/fork.cmd.js
CHANGED
@@ -34,14 +34,20 @@ function _chalk() {
|
|
34
34
|
class ForkCmd {
|
35
35
|
constructor(forking) {
|
36
36
|
this.forking = forking;
|
37
|
-
(0, _defineProperty2().default)(this, "name", 'fork <source-id> [target-name]');
|
38
|
-
(0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. create a new component out of an existing one');
|
39
|
-
(0, _defineProperty2().default)(this, "
|
40
|
-
|
37
|
+
(0, _defineProperty2().default)(this, "name", 'fork <source-component-id> [target-component-name]');
|
38
|
+
(0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. create a new component out of an existing one (copies source files and config)');
|
39
|
+
(0, _defineProperty2().default)(this, "arguments", [{
|
40
|
+
name: 'source-component-id',
|
41
|
+
description: 'the component id of the source component'
|
42
|
+
}, {
|
43
|
+
name: 'target-component-name',
|
44
|
+
description: "the name for the new component (component name without scope). to set a different scope, use the '--scope' flag"
|
45
|
+
}]);
|
41
46
|
(0, _defineProperty2().default)(this, "group", 'collaborate');
|
42
47
|
(0, _defineProperty2().default)(this, "skipWorkspace", true);
|
43
48
|
(0, _defineProperty2().default)(this, "alias", '');
|
44
|
-
(0, _defineProperty2().default)(this, "options", [['s', 'scope <string>', 'default scope for the
|
49
|
+
(0, _defineProperty2().default)(this, "options", [['s', 'scope <string>', 'default scope for the new component'], ['p', 'path <string>', 'relative path in the workspace for the new component. by default the path is `<scope>/<namespace>/<name>`'], ['r', 'refactor', 'update the import/require statements in all dependent components (in the same workspace)']]);
|
50
|
+
(0, _defineProperty2().default)(this, "example", void 0);
|
45
51
|
(0, _defineProperty2().default)(this, "loader", true);
|
46
52
|
(0, _defineProperty2().default)(this, "migration", true);
|
47
53
|
(0, _defineProperty2().default)(this, "remoteOp", true);
|
package/dist/fork.cmd.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["ForkCmd","constructor","forking","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};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-id> [target-name]';\n description = 'EXPERIMENTAL. create a new component out of an existing one';\n
|
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};\n\nexport class ForkCmd implements Command {\n name = 'fork <source-component-id> [target-component-name]';\n description = 'EXPERIMENTAL. create a new component out of an existing one (copies source files and config)';\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 ] 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;;AAUO,MAAMA,OAAN,CAAiC;EAmCtCC,WAAW,CAASC,OAAT,EAA+B;IAAA,KAAtBA,OAAsB,GAAtBA,OAAsB;IAAA,8CAlCnC,oDAkCmC;IAAA,qDAjC5B,8FAiC4B;IAAA,mDAhC9B,CACV;MAAEC,IAAI,EAAE,qBAAR;MAA+BC,WAAW,EAAE;IAA5C,CADU,EAEV;MACED,IAAI,EAAE,uBADR;MAEEC,WAAW,EACT;IAHJ,CAFU,CAgC8B;IAAA,+CAxBlC,aAwBkC;IAAA,uDAvB1B,IAuB0B;IAAA,+CAtBlC,EAsBkC;IAAA,iDApBhC,CACR,CAAC,GAAD,EAAM,gBAAN,EAAwB,qCAAxB,CADQ,EAER,CACE,GADF,EAEE,eAFF,EAGE,2GAHF,CAFQ,EAOR,CAAC,GAAD,EAAM,UAAN,EAAkB,0FAAlB,CAPQ,CAoBgC;IAAA;IAAA,gDAJjC,IAIiC;IAAA,mDAH9B,IAG8B;IAAA,kDAF/B,IAE+B;EAAE;;EAEhC,MAANC,MAAM,CAAC,CAACC,QAAD,EAAWC,QAAX,CAAD,EAAyCC,OAAzC,EAAgF;IAC1F,MAAMC,OAAO,GAAG,MAAM,KAAKP,OAAL,CAAaQ,IAAb,CAAkBJ,QAAlB,EAA4BC,QAA5B,EAAsCC,OAAtC,CAAtB;IACA,MAAMG,WAAW,GAAGF,OAAO,CAACG,QAAR,EAApB;IACA,OAAOC,gBAAA,CAAMC,KAAN,CAAa,uBAAsBD,gBAAA,CAAME,IAAN,CAAWJ,WAAX,CAAwB,SAAQE,gBAAA,CAAME,IAAN,CAAWT,QAAX,CAAqB,EAAxF,CAAP;EACD;;AAzCqC"}
|
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.165",
|
4
4
|
"homepage": "https://bit.dev/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.165"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
@@ -16,17 +16,17 @@
|
|
16
16
|
"@babel/runtime": "7.12.18",
|
17
17
|
"core-js": "^3.0.0",
|
18
18
|
"@teambit/harmony": "0.3.3",
|
19
|
-
"@teambit/cli": "0.0.
|
20
|
-
"@teambit/component": "0.0.
|
21
|
-
"@teambit/graphql": "0.0.
|
19
|
+
"@teambit/cli": "0.0.503",
|
20
|
+
"@teambit/component": "0.0.761",
|
21
|
+
"@teambit/graphql": "0.0.761",
|
22
22
|
"@teambit/bit-error": "0.0.394",
|
23
23
|
"@teambit/component-id": "0.0.402",
|
24
|
-
"@teambit/dependency-resolver": "0.0.
|
24
|
+
"@teambit/dependency-resolver": "0.0.761",
|
25
25
|
"@teambit/legacy-bit-id": "0.0.399",
|
26
|
-
"@teambit/new-component-helper": "0.0.
|
27
|
-
"@teambit/pkg": "0.0.
|
28
|
-
"@teambit/refactoring": "0.0.
|
29
|
-
"@teambit/workspace": "0.0.
|
26
|
+
"@teambit/new-component-helper": "0.0.165",
|
27
|
+
"@teambit/pkg": "0.0.761",
|
28
|
+
"@teambit/refactoring": "0.0.58",
|
29
|
+
"@teambit/workspace": "0.0.761"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"@types/react": "^17.0.8",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@types/node": "12.20.4"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
|
-
"@teambit/legacy": "1.0.
|
41
|
+
"@teambit/legacy": "1.0.283",
|
42
42
|
"react-dom": "^16.8.0 || ^17.0.0",
|
43
43
|
"react": "^16.8.0 || ^17.0.0"
|
44
44
|
},
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"react": "-"
|
67
67
|
},
|
68
68
|
"peerDependencies": {
|
69
|
-
"@teambit/legacy": "1.0.
|
69
|
+
"@teambit/legacy": "1.0.283",
|
70
70
|
"react-dom": "^16.8.0 || ^17.0.0",
|
71
71
|
"react": "^16.8.0 || ^17.0.0"
|
72
72
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.165/dist/forking.composition.js')]
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_forking@0.0.165/dist/forking.docs.mdx')]
|
Binary file
|