@teambit/workspace 1.0.108 → 1.0.110
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/artifacts/preview/static/css/teambit.workspace/workspace-preview.0f99da04.css +55 -0
- package/artifacts/preview/static/images/2f046646df38433e90d7.png +0 -0
- package/artifacts/preview/static/images/b40d450de296e275550f.png +0 -0
- package/artifacts/preview/static/images/cb67fb802479e2710016.png +0 -0
- package/artifacts/preview/teambit_workspace_workspace-preview.js +2 -0
- package/dist/{preview-1703647408454.js → preview-1703733956734.js} +2 -2
- package/package.json +35 -31
- package/aspects-merger.ts +0 -319
- package/bit-map.ts +0 -277
- package/build-graph-from-fs.ts +0 -188
- package/build-graph-ids-from-fs.ts +0 -216
- package/capsule.cmd.ts +0 -217
- package/constants.ts +0 -1
- package/eject-conf.cmd.ts +0 -57
- package/filter.ts +0 -139
- package/index.ts +0 -22
- package/merge-conflict-file.ts +0 -129
- package/on-component-events.ts +0 -24
- package/pattern.cmd.ts +0 -53
- package/types.ts +0 -71
- package/use.cmd.ts +0 -25
- package/workspace-aspects-loader.ts +0 -885
- package/workspace-section.ts +0 -14
- package/workspace.aspect.ts +0 -9
- package/workspace.graphql.ts +0 -133
- package/workspace.main.runtime.ts +0 -56
- package/workspace.provider.ts +0 -282
- package/workspace.ts +0 -2014
- package/workspace.ui-root.ts +0 -65
package/workspace.ui-root.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { BundlerMain } from '@teambit/bundler';
|
|
2
|
-
import { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component';
|
|
3
|
-
import { UIRoot } from '@teambit/ui';
|
|
4
|
-
import { GetBitMapComponentOptions } from '@teambit/legacy/dist/consumer/bit-map/bit-map';
|
|
5
|
-
import { PathOsBased } from '@teambit/legacy/dist/utils/path';
|
|
6
|
-
|
|
7
|
-
import { Workspace } from './workspace';
|
|
8
|
-
|
|
9
|
-
export class WorkspaceUIRoot implements UIRoot {
|
|
10
|
-
constructor(
|
|
11
|
-
/**
|
|
12
|
-
* workspace extension.
|
|
13
|
-
*/
|
|
14
|
-
private workspace: Workspace,
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* bundler extension
|
|
18
|
-
*/
|
|
19
|
-
private bundler: BundlerMain
|
|
20
|
-
) {}
|
|
21
|
-
|
|
22
|
-
priority = true;
|
|
23
|
-
|
|
24
|
-
get name() {
|
|
25
|
-
return this.workspace.name;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
get path() {
|
|
29
|
-
return this.workspace.path;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
get configFile() {
|
|
33
|
-
return 'workspace.json';
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
buildOptions = {
|
|
37
|
-
ssr: false,
|
|
38
|
-
launchBrowserOnStart: true,
|
|
39
|
-
prebundle: true,
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
async resolveAspects(runtimeName: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions) {
|
|
43
|
-
return this.workspace.resolveAspects(runtimeName, componentIds, opts);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// TODO: @gilad please implement with variants.
|
|
47
|
-
resolvePattern(pattern: string): Promise<Component[]> {
|
|
48
|
-
return this.workspace.byPattern(pattern);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
getConfig() {
|
|
52
|
-
return {};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* proxy to `workspace.componentDir()`
|
|
57
|
-
*/
|
|
58
|
-
componentDir(
|
|
59
|
-
componentId: ComponentID,
|
|
60
|
-
bitMapOptions?: GetBitMapComponentOptions,
|
|
61
|
-
options = { relative: false }
|
|
62
|
-
): PathOsBased {
|
|
63
|
-
return this.workspace.componentDir(componentId, bitMapOptions, options);
|
|
64
|
-
}
|
|
65
|
-
}
|