@teambit/ui 0.0.760 → 0.0.761
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/start.cmd.js
CHANGED
|
@@ -70,10 +70,10 @@ class StartCmd {
|
|
|
70
70
|
this.ui = ui;
|
|
71
71
|
this.logger = logger;
|
|
72
72
|
(0, _defineProperty2().default)(this, "name", 'start [type] [pattern]');
|
|
73
|
-
(0, _defineProperty2().default)(this, "description", '
|
|
73
|
+
(0, _defineProperty2().default)(this, "description", 'run the ui/development server');
|
|
74
74
|
(0, _defineProperty2().default)(this, "alias", 'c');
|
|
75
75
|
(0, _defineProperty2().default)(this, "group", 'development');
|
|
76
|
-
(0, _defineProperty2().default)(this, "options", [['d', 'dev', 'start UI server in dev mode.'], ['p', 'port [number]', 'port of the UI server.'], ['r', 'rebuild', 'rebuild the UI'], ['v', 'verbose', '
|
|
76
|
+
(0, _defineProperty2().default)(this, "options", [['d', 'dev', 'start UI server in dev mode.'], ['p', 'port [port-number]', 'port of the UI server.'], ['r', 'rebuild', 'rebuild the UI'], ['v', 'verbose', 'show verbose output for inspection and prints stack trace'], ['', 'no-browser', 'do not automatically open browser when ready'], ['', 'skip-compilation', 'skip the auto-compilation before starting the web-server']]);
|
|
77
77
|
} // async report([uiRootName, userPattern]: StartArgs, { dev, port, rebuild, verbose }: StartFlags): Promise<string> {
|
|
78
78
|
// this.logger.off();
|
|
79
79
|
// const pattern = userPattern && userPattern.toString();
|
package/dist/start.cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StartCmd","constructor","ui","logger","render","uiRootName","userPattern","dev","port","rebuild","verbose","noBrowser","skipCompilation","off","isHostAvailable","BitError","appName","getUiName","invokePreStart","uiServer","createRuntime","pattern","then","server","buildOptions","launchBrowserOnStart","undefined","whenReady","openBrowser","publicUrl","fullUrl","catch","error","invokeOnStart","clearConsole"],"sources":["start.cmd.tsx"],"sourcesContent":["import React from 'react';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { Logger } from '@teambit/logger';\nimport { BitError } from '@teambit/bit-error';\nimport { UIServerConsole } from '@teambit/ui-foundation.cli.ui-server-console';\nimport type { UiMain } from './ui.main.runtime';\n\ntype StartArgs = [uiName: string, userPattern: string];\ntype StartFlags = {\n dev: boolean;\n port: string;\n rebuild: boolean;\n verbose: boolean;\n noBrowser: boolean;\n skipCompilation: boolean;\n};\n\nexport class StartCmd implements Command {\n name = 'start [type] [pattern]';\n description = '
|
|
1
|
+
{"version":3,"names":["StartCmd","constructor","ui","logger","render","uiRootName","userPattern","dev","port","rebuild","verbose","noBrowser","skipCompilation","off","isHostAvailable","BitError","appName","getUiName","invokePreStart","uiServer","createRuntime","pattern","then","server","buildOptions","launchBrowserOnStart","undefined","whenReady","openBrowser","publicUrl","fullUrl","catch","error","invokeOnStart","clearConsole"],"sources":["start.cmd.tsx"],"sourcesContent":["import React from 'react';\nimport openBrowser from 'react-dev-utils/openBrowser';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { Logger } from '@teambit/logger';\nimport { BitError } from '@teambit/bit-error';\nimport { UIServerConsole } from '@teambit/ui-foundation.cli.ui-server-console';\nimport type { UiMain } from './ui.main.runtime';\n\ntype StartArgs = [uiName: string, userPattern: string];\ntype StartFlags = {\n dev: boolean;\n port: string;\n rebuild: boolean;\n verbose: boolean;\n noBrowser: boolean;\n skipCompilation: boolean;\n};\n\nexport class StartCmd implements Command {\n name = 'start [type] [pattern]';\n description = 'run the ui/development server';\n alias = 'c';\n group = 'development';\n options = [\n ['d', 'dev', 'start UI server in dev mode.'],\n ['p', 'port [port-number]', 'port of the UI server.'],\n ['r', 'rebuild', 'rebuild the UI'],\n ['v', 'verbose', 'show verbose output for inspection and prints stack trace'],\n ['', 'no-browser', 'do not automatically open browser when ready'],\n ['', 'skip-compilation', 'skip the auto-compilation before starting the web-server'],\n ] as CommandOptions;\n\n constructor(\n /**\n * access to the extension instance.\n */\n private ui: UiMain,\n\n private logger: Logger\n ) {}\n\n // async report([uiRootName, userPattern]: StartArgs, { dev, port, rebuild, verbose }: StartFlags): Promise<string> {\n // this.logger.off();\n // const pattern = userPattern && userPattern.toString();\n\n // const uiServer = await this.ui.createRuntime({\n // uiRootName,\n // pattern,\n // dev,\n // port: port ? parseInt(port) : undefined,\n // rebuild,\n // verbose,\n // });\n\n // return `Bit server has started on port ${uiServer.port}`;\n // }\n\n async render(\n [uiRootName, userPattern]: StartArgs,\n { dev, port, rebuild, verbose, noBrowser, skipCompilation }: StartFlags\n ): Promise<React.ReactElement> {\n this.logger.off();\n if (!this.ui.isHostAvailable()) {\n throw new BitError(\n `bit start can only be run inside a bit workspace or a bit scope - please ensure you are running the command in the correct directory`\n );\n }\n const appName = this.ui.getUiName(uiRootName);\n await this.ui.invokePreStart({ skipCompilation });\n const uiServer = this.ui.createRuntime({\n uiRootName,\n pattern: userPattern,\n dev,\n port: +port,\n rebuild,\n verbose,\n });\n\n if (!noBrowser) {\n uiServer\n .then(async (server) => {\n if (!server.buildOptions?.launchBrowserOnStart) return undefined;\n\n await server.whenReady;\n\n return openBrowser(this.ui.publicUrl || server.fullUrl);\n })\n .catch((error) => this.logger.error(error));\n }\n\n // DO NOT CHANGE THIS - this meant to be an async hook.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.ui.invokeOnStart();\n this.ui.clearConsole();\n\n return <UIServerConsole appName={appName} futureUiServer={uiServer} url={this.ui.publicUrl} />;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAaO,MAAMA,QAAN,CAAkC;EAcvCC,WAAW;EACT;AACJ;AACA;EACYC,EAJC,EAM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IASA,IAAI,CAACC,SAAL,EAAgB;MACdQ,QAAQ,CACLG,IADH,CACQ,MAAOC,MAAP,IAAkB;QAAA;;QACtB,IAAI,0BAACA,MAAM,CAACC,YAAR,iDAAC,qBAAqBC,oBAAtB,CAAJ,EAAgD,OAAOC,SAAP;QAEhD,MAAMH,MAAM,CAACI,SAAb;QAEA,OAAO,IAAAC,sBAAA,EAAY,KAAK1B,EAAL,CAAQ2B,SAAR,IAAqBN,MAAM,CAACO,OAAxC,CAAP;MACD,CAPH,EAQGC,KARH,CAQUC,KAAD,IAAW,KAAK7B,MAAL,CAAY6B,KAAZ,CAAkBA,KAAlB,CARpB;IASD,CA5B4B,CA8B7B;IACA;;;IACA,KAAK9B,EAAL,CAAQ+B,aAAR;IACA,KAAK/B,EAAL,CAAQgC,YAAR;IAEA,oBAAO,+BAAC,kCAAD;MAAiB,OAAO,EAAElB,OAA1B;MAAmC,cAAc,EAAEG,QAAnD;MAA6D,GAAG,EAAE,KAAKjB,EAAL,CAAQ2B;IAA1E,EAAP;EACD;;AA9EsC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.761",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/ui-foundation/ui",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.ui-foundation",
|
|
8
8
|
"name": "ui",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.761"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"lodash": "4.17.21",
|
|
@@ -51,29 +51,29 @@
|
|
|
51
51
|
"@teambit/base-ui.loaders.loader-ribbon": "1.0.0",
|
|
52
52
|
"@teambit/base-ui.theme.fonts.roboto": "1.0.0",
|
|
53
53
|
"@teambit/base-ui.theme.theme-provider": "1.0.1",
|
|
54
|
-
"@teambit/aspect-loader": "0.0.
|
|
54
|
+
"@teambit/aspect-loader": "0.0.761",
|
|
55
55
|
"@teambit/toolbox.path.to-windows-compatible-path": "0.0.483",
|
|
56
56
|
"@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.487",
|
|
57
57
|
"@teambit/bit-error": "0.0.394",
|
|
58
|
-
"@teambit/cli": "0.0.
|
|
59
|
-
"@teambit/logger": "0.0.
|
|
58
|
+
"@teambit/cli": "0.0.503",
|
|
59
|
+
"@teambit/logger": "0.0.596",
|
|
60
60
|
"@teambit/ui-foundation.cli.ui-server-console": "0.0.490",
|
|
61
|
-
"@teambit/bundler": "0.0.
|
|
62
|
-
"@teambit/component": "0.0.
|
|
63
|
-
"@teambit/express": "0.0.
|
|
64
|
-
"@teambit/graphql": "0.0.
|
|
61
|
+
"@teambit/bundler": "0.0.761",
|
|
62
|
+
"@teambit/component": "0.0.761",
|
|
63
|
+
"@teambit/express": "0.0.601",
|
|
64
|
+
"@teambit/graphql": "0.0.761",
|
|
65
65
|
"@teambit/toolbox.network.get-port": "0.0.113",
|
|
66
|
-
"@teambit/aspect": "0.0.
|
|
67
|
-
"@teambit/cache": "0.0.
|
|
68
|
-
"@teambit/pubsub": "0.0.
|
|
69
|
-
"@teambit/react-router": "0.0.
|
|
66
|
+
"@teambit/aspect": "0.0.761",
|
|
67
|
+
"@teambit/cache": "0.0.596",
|
|
68
|
+
"@teambit/pubsub": "0.0.761",
|
|
69
|
+
"@teambit/react-router": "0.0.761",
|
|
70
70
|
"@teambit/ui-foundation.ui.rendering.html": "0.0.69",
|
|
71
71
|
"@teambit/design.theme.icons-font": "2.0.5",
|
|
72
72
|
"@teambit/design.ui.tooltip": "0.0.352",
|
|
73
73
|
"@teambit/ui-foundation.ui.global-loader": "0.0.486",
|
|
74
74
|
"@teambit/webpack.modules.generate-style-loaders": "0.0.103",
|
|
75
75
|
"@teambit/webpack.modules.style-regexps": "0.0.132",
|
|
76
|
-
"@teambit/webpack": "0.0.
|
|
76
|
+
"@teambit/webpack": "0.0.761"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@types/lodash": "4.14.165",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"@apollo/client": "^3.0.0",
|
|
97
97
|
"react-router-dom": "^6.0.0",
|
|
98
|
-
"@teambit/legacy": "1.0.
|
|
98
|
+
"@teambit/legacy": "1.0.283",
|
|
99
99
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
100
100
|
"react": "^16.8.0 || ^17.0.0"
|
|
101
101
|
},
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"react": "-"
|
|
141
141
|
},
|
|
142
142
|
"peerDependencies": {
|
|
143
|
-
"@teambit/legacy": "1.0.
|
|
143
|
+
"@teambit/legacy": "1.0.283",
|
|
144
144
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
145
145
|
"react": "^16.8.0 || ^17.0.0"
|
|
146
146
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.761/dist/ui.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@0.0.761/dist/ui.docs.mdx')]
|
package/start.cmd.tsx
CHANGED
|
@@ -18,14 +18,14 @@ type StartFlags = {
|
|
|
18
18
|
|
|
19
19
|
export class StartCmd implements Command {
|
|
20
20
|
name = 'start [type] [pattern]';
|
|
21
|
-
description = '
|
|
21
|
+
description = 'run the ui/development server';
|
|
22
22
|
alias = 'c';
|
|
23
23
|
group = 'development';
|
|
24
24
|
options = [
|
|
25
25
|
['d', 'dev', 'start UI server in dev mode.'],
|
|
26
|
-
['p', 'port [number]', 'port of the UI server.'],
|
|
26
|
+
['p', 'port [port-number]', 'port of the UI server.'],
|
|
27
27
|
['r', 'rebuild', 'rebuild the UI'],
|
|
28
|
-
['v', 'verbose', '
|
|
28
|
+
['v', 'verbose', 'show verbose output for inspection and prints stack trace'],
|
|
29
29
|
['', 'no-browser', 'do not automatically open browser when ready'],
|
|
30
30
|
['', 'skip-compilation', 'skip the auto-compilation before starting the web-server'],
|
|
31
31
|
] as CommandOptions;
|
|
Binary file
|