@teambit/ui 0.0.1061 → 0.0.1063
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/ui-bundle/public/bit/asset-manifest.json +6 -6
- package/artifacts/ui-bundle/public/bit/index.html +1 -1
- package/artifacts/ui-bundle/public/bit/service-worker.js +1 -1
- package/artifacts/ui-bundle/public/bit/static/js/{604.4df530e1.js → 65.b8ed039f.js} +3 -3
- package/artifacts/ui-bundle/public/bit/static/js/{main.a692fc46.js → main.23025a7b.js} +1 -1
- package/dist/{preview-1684639552093.js → preview-1684985676927.js} +2 -2
- package/dist/start.cmd.d.ts +8 -3
- package/dist/start.cmd.js +28 -16
- package/dist/start.cmd.js.map +1 -1
- package/dist/ui.main.runtime.d.ts +5 -0
- package/dist/ui.main.runtime.js +8 -0
- package/dist/ui.main.runtime.js.map +1 -1
- package/package-tar/teambit-ui-0.0.1063.tgz +0 -0
- package/package.json +18 -18
- package/start.cmd.tsx +21 -8
- package/package-tar/teambit-ui-0.0.1061.tgz +0 -0
- /package/artifacts/ui-bundle/public/bit/static/css/{604.eb486148.css → 65.eb486148.css} +0 -0
- /package/artifacts/ui-bundle/public/bit/static/js/{604.4df530e1.js.LICENSE.txt → 65.b8ed039f.js.LICENSE.txt} +0 -0
package/start.cmd.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import openBrowser from 'react-dev-utils/openBrowser';
|
|
1
|
+
import { BitError } from '@teambit/bit-error';
|
|
3
2
|
import { Command, CommandOptions } from '@teambit/cli';
|
|
3
|
+
import { COMPONENT_PATTERN_HELP } from '@teambit/legacy/dist/constants';
|
|
4
4
|
import { Logger } from '@teambit/logger';
|
|
5
|
-
import { BitError } from '@teambit/bit-error';
|
|
6
5
|
import { UIServerConsole } from '@teambit/ui-foundation.cli.ui-server-console';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import openBrowser from 'react-dev-utils/openBrowser';
|
|
7
8
|
import type { UiMain } from './ui.main.runtime';
|
|
8
9
|
|
|
9
|
-
type StartArgs = [
|
|
10
|
+
type StartArgs = [userPattern: string];
|
|
10
11
|
type StartFlags = {
|
|
11
12
|
dev: boolean;
|
|
12
13
|
port: string;
|
|
@@ -15,11 +16,18 @@ type StartFlags = {
|
|
|
15
16
|
noBrowser: boolean;
|
|
16
17
|
skipCompilation: boolean;
|
|
17
18
|
skipUiBuild: boolean;
|
|
19
|
+
uiRootName: string;
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export class StartCmd implements Command {
|
|
21
|
-
name = 'start [
|
|
23
|
+
name = 'start [component-pattern]';
|
|
22
24
|
description = 'run the ui/development server';
|
|
25
|
+
arguments = [
|
|
26
|
+
{
|
|
27
|
+
name: 'component-pattern',
|
|
28
|
+
description: COMPONENT_PATTERN_HELP,
|
|
29
|
+
},
|
|
30
|
+
];
|
|
23
31
|
alias = 'c';
|
|
24
32
|
group = 'development';
|
|
25
33
|
options = [
|
|
@@ -28,8 +36,13 @@ export class StartCmd implements Command {
|
|
|
28
36
|
['r', 'rebuild', 'rebuild the UI'],
|
|
29
37
|
['', 'skip-ui-build', 'skip building UI'],
|
|
30
38
|
['v', 'verbose', 'show verbose output for inspection and prints stack trace'],
|
|
31
|
-
['', 'no-browser', 'do not automatically open browser when ready'],
|
|
39
|
+
['n', 'no-browser', 'do not automatically open browser when ready'],
|
|
32
40
|
['', 'skip-compilation', 'skip the auto-compilation before starting the web-server'],
|
|
41
|
+
[
|
|
42
|
+
'u',
|
|
43
|
+
'ui-root-name [type]',
|
|
44
|
+
'name of the ui root to use, e.g. "teambit.scope/scope" or "teambit.workspace/workspace"',
|
|
45
|
+
],
|
|
33
46
|
] as CommandOptions;
|
|
34
47
|
|
|
35
48
|
constructor(
|
|
@@ -58,8 +71,8 @@ export class StartCmd implements Command {
|
|
|
58
71
|
// }
|
|
59
72
|
|
|
60
73
|
async render(
|
|
61
|
-
[
|
|
62
|
-
{ dev, port, rebuild, verbose, noBrowser, skipCompilation, skipUiBuild }: StartFlags
|
|
74
|
+
[userPattern]: StartArgs,
|
|
75
|
+
{ dev, port, rebuild, verbose, noBrowser, skipCompilation, skipUiBuild, uiRootName }: StartFlags
|
|
63
76
|
): Promise<React.ReactElement> {
|
|
64
77
|
this.logger.off();
|
|
65
78
|
if (!this.ui.isHostAvailable()) {
|
|
Binary file
|
|
File without changes
|
|
File without changes
|