@teambit/eject 0.0.161 → 0.0.162
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/eject.composition.d.ts +2 -0
- package/dist/eject.composition.js +35 -0
- package/dist/eject.composition.js.map +1 -0
- package/dist/{eject.docs.md → eject.docs.mdx} +9 -9
- package/eject.composition.tsx +7 -0
- package/{eject.docs.md → eject.docs.mdx} +9 -9
- package/package-tar/teambit-eject-0.0.162.tgz +0 -0
- package/package.json +6 -6
- package/preview-1648386827284.js +2 -0
- package/package-tar/teambit-eject-0.0.161.tgz +0 -0
- package/preview-1648265027481.js +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Logo = void 0;
|
|
9
|
+
|
|
10
|
+
function _react() {
|
|
11
|
+
const data = _interopRequireDefault(require("react"));
|
|
12
|
+
|
|
13
|
+
_react = function () {
|
|
14
|
+
return data;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
|
|
21
|
+
style: {
|
|
22
|
+
height: '100%',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center'
|
|
25
|
+
}
|
|
26
|
+
}, /*#__PURE__*/_react().default.createElement("img", {
|
|
27
|
+
style: {
|
|
28
|
+
width: 70
|
|
29
|
+
},
|
|
30
|
+
src: "https://static.bit.dev/extensions-icons/eject.svg"
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
exports.Logo = Logo;
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=eject.composition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["eject.composition.tsx"],"names":["Logo","height","display","justifyContent","width"],"mappings":";;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,MAAM,EAAE,MAAV;AAAkBC,IAAAA,OAAO,EAAE,MAA3B;AAAmCC,IAAAA,cAAc,EAAE;AAAnD;AAAZ,gBACE;AAAK,EAAA,KAAK,EAAE;AAAEC,IAAAA,KAAK,EAAE;AAAT,GAAZ;AAA2B,EAAA,GAAG,EAAC;AAA/B,EADF,CADK","sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/eject.svg\" />\n </div>\n);\n"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
slug: /aspects/eject
|
|
2
|
+
description: Replaces a Workspace component with an external dependency
|
|
3
|
+
labels: ['aspect', 'cli']
|
|
5
4
|
---
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
|
|
6
|
+
One of the common scenarios of using `bit eject` is to make a quick change to an external (component) dependency. The component needs to be imported first and once it's changed and exported, there is no need to keep it in the current workspace. Without `eject`, the next steps would be: 1) remove the component from the workspace by `bit remove` and 2) installing the component by `bit install`.
|
|
8
7
|
|
|
9
8
|
`bit eject` combines the commands above to one command.
|
|
10
9
|
|
|
11
10
|
## Eject process
|
|
11
|
+
|
|
12
12
|
The following steps are done during the `eject` process.
|
|
13
|
-
1) remove the component's data from node-modules so then it won't interfere with the package installation.
|
|
14
|
-
2) remove the component from the .bitmap file.
|
|
15
|
-
3) install the component as a package by the package manager and add the package to the `workspace.json` file.
|
|
16
|
-
4) depends on the `--keep-files` flag, deletes the component files from the workspace.
|
|
17
13
|
|
|
14
|
+
1. remove the component's data from node-modules so then it won't interfere with the package installation.
|
|
15
|
+
2. remove the component from the .bitmap file.
|
|
16
|
+
3. install the component as a package by the package manager and add the package to the `workspace.json` file.
|
|
17
|
+
4. depends on the `--keep-files` flag, deletes the component files from the workspace.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
slug: /aspects/eject
|
|
2
|
+
description: Replaces a Workspace component with an external dependency
|
|
3
|
+
labels: ['aspect', 'cli']
|
|
5
4
|
---
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
|
|
6
|
+
One of the common scenarios of using `bit eject` is to make a quick change to an external (component) dependency. The component needs to be imported first and once it's changed and exported, there is no need to keep it in the current workspace. Without `eject`, the next steps would be: 1) remove the component from the workspace by `bit remove` and 2) installing the component by `bit install`.
|
|
8
7
|
|
|
9
8
|
`bit eject` combines the commands above to one command.
|
|
10
9
|
|
|
11
10
|
## Eject process
|
|
11
|
+
|
|
12
12
|
The following steps are done during the `eject` process.
|
|
13
|
-
1) remove the component's data from node-modules so then it won't interfere with the package installation.
|
|
14
|
-
2) remove the component from the .bitmap file.
|
|
15
|
-
3) install the component as a package by the package manager and add the package to the `workspace.json` file.
|
|
16
|
-
4) depends on the `--keep-files` flag, deletes the component files from the workspace.
|
|
17
13
|
|
|
14
|
+
1. remove the component's data from node-modules so then it won't interfere with the package installation.
|
|
15
|
+
2. remove the component from the .bitmap file.
|
|
16
|
+
3. install the component as a package by the package manager and add the package to the `workspace.json` file.
|
|
17
|
+
4. depends on the `--keep-files` flag, deletes the component files from the workspace.
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/eject",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.162",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/workspace/eject",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.workspace",
|
|
8
8
|
"name": "eject",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.162"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
13
13
|
"@babel/runtime": "7.12.18",
|
|
14
14
|
"core-js": "^3.0.0",
|
|
15
15
|
"@teambit/component-id": "0.0.402",
|
|
16
|
-
"@teambit/logger": "0.0.
|
|
17
|
-
"@teambit/workspace": "0.0.
|
|
18
|
-
"@teambit/cli": "0.0.
|
|
16
|
+
"@teambit/logger": "0.0.555",
|
|
17
|
+
"@teambit/workspace": "0.0.691",
|
|
18
|
+
"@teambit/cli": "0.0.463"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/react": "^17.0.8",
|
|
21
22
|
"@types/mocha": "9.1.0",
|
|
22
23
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
23
24
|
"@types/jest": "^26.0.0",
|
|
24
25
|
"@types/react-dom": "^17.0.5",
|
|
25
|
-
"@types/react": "^17.0.8",
|
|
26
26
|
"@types/node": "12.20.4"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.162/dist/eject.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.162/dist/eject.docs.mdx')]
|
|
Binary file
|
package/preview-1648265027481.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_eject@0.0.161/dist/eject.docs.md')]
|