@teambit/isolator 0.0.558 → 0.0.562
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/isolator.docs.md +41 -0
- package/package.json +23 -16
package/isolator.docs.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
description: Isolate components for build, debugging, development and testing.
|
3
|
+
labels: ['isolation', 'component']
|
4
|
+
---
|
5
|
+
|
6
|
+
## Isolate a component
|
7
|
+
|
8
|
+
```bash
|
9
|
+
bit create-capsule ui/button
|
10
|
+
```
|
11
|
+
|
12
|
+
## Entities
|
13
|
+
|
14
|
+
### Capsule
|
15
|
+
|
16
|
+
Bit implements a filesystem capsule, which is an isolated folder containing the component files.
|
17
|
+
Capsules include the component files and links to other capsules that include the component's dependencies.
|
18
|
+
|
19
|
+
### Network
|
20
|
+
|
21
|
+
A network is a group of capsules, related to one another by their dependencies.
|
22
|
+
A network includes a graph of all seed components given to it, as well as a list of the capsules.
|
23
|
+
|
24
|
+
Example:
|
25
|
+
|
26
|
+
```javascript
|
27
|
+
const Network = {
|
28
|
+
graph: Graph,
|
29
|
+
capsules: CapsuleList,
|
30
|
+
};
|
31
|
+
```
|
32
|
+
|
33
|
+
## API
|
34
|
+
|
35
|
+
The exact particularities of this API are beyond the scope of this readme. Instead, this document opts to
|
36
|
+
provide a general description of the methods of this API and their purpose.
|
37
|
+
|
38
|
+
### Isolator.isolateComponents
|
39
|
+
|
40
|
+
This method receives a list of components, create capsule for the components and write the components data into the capsule.
|
41
|
+
It returns a list of capsules.
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/isolator",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.562",
|
4
4
|
"homepage": "https://bit.dev/teambit/component/isolator",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.component",
|
8
8
|
"name": "isolator",
|
9
|
-
"version": "0.0.
|
9
|
+
"version": "0.0.562"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"@teambit/harmony": "0.2.11",
|
@@ -23,14 +23,14 @@
|
|
23
23
|
"execa": "2.1.0",
|
24
24
|
"@babel/runtime": "7.12.18",
|
25
25
|
"core-js": "^3.0.0",
|
26
|
-
"@teambit/component": "0.0.
|
27
|
-
"@teambit/legacy-bit-id": "0.0.
|
28
|
-
"@teambit/cli": "0.0.
|
29
|
-
"@teambit/component-package-version": "0.0.
|
30
|
-
"@teambit/dependency-resolver": "0.0.
|
31
|
-
"@teambit/global-config": "0.0.
|
32
|
-
"@teambit/graph": "0.0.
|
33
|
-
"@teambit/logger": "0.0.
|
26
|
+
"@teambit/component": "0.0.562",
|
27
|
+
"@teambit/legacy-bit-id": "0.0.379",
|
28
|
+
"@teambit/cli": "0.0.390",
|
29
|
+
"@teambit/component-package-version": "0.0.376",
|
30
|
+
"@teambit/dependency-resolver": "0.0.562",
|
31
|
+
"@teambit/global-config": "0.0.391",
|
32
|
+
"@teambit/graph": "0.0.562",
|
33
|
+
"@teambit/logger": "0.0.475"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"@types/fs-extra": "9.0.7",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@types/node": "12.20.4"
|
46
46
|
},
|
47
47
|
"peerDependencies": {
|
48
|
-
"@teambit/legacy": "1.0.
|
48
|
+
"@teambit/legacy": "1.0.176",
|
49
49
|
"react-dom": "^16.8.0 || ^17.0.0",
|
50
50
|
"react": "^16.8.0 || ^17.0.0"
|
51
51
|
},
|
@@ -73,7 +73,7 @@
|
|
73
73
|
"react": "-"
|
74
74
|
},
|
75
75
|
"peerDependencies": {
|
76
|
-
"@teambit/legacy": "1.0.
|
76
|
+
"@teambit/legacy": "1.0.176",
|
77
77
|
"react-dom": "^16.8.0 || ^17.0.0",
|
78
78
|
"react": "^16.8.0 || ^17.0.0"
|
79
79
|
}
|
@@ -82,10 +82,17 @@
|
|
82
82
|
"files": [
|
83
83
|
"dist",
|
84
84
|
"!dist/tsconfig.tsbuildinfo",
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"
|
85
|
+
"**/*.md",
|
86
|
+
"**/*.mdx",
|
87
|
+
"**/*.js",
|
88
|
+
"**/*.json",
|
89
|
+
"**/*.sass",
|
90
|
+
"**/*.scss",
|
91
|
+
"**/*.less",
|
92
|
+
"**/*.css",
|
93
|
+
"**/*.css",
|
94
|
+
"**/*.jpeg",
|
95
|
+
"**/*.gif"
|
89
96
|
],
|
90
97
|
"private": false,
|
91
98
|
"engines": {
|