@teambit/application 0.0.286 → 0.0.290
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/{__preview-1644290603845.js → __preview-1644895398222.js} +0 -0
- package/dist/run.cmd.d.ts +0 -1
- package/dist/run.cmd.js +0 -15
- package/dist/run.cmd.js.map +1 -1
- package/package-tar/teambit-application-0.0.290.tgz +0 -0
- package/package.json +12 -12
- package/run.cmd.tsx +0 -12
- package/package-tar/teambit-application-0.0.286.tgz +0 -0
|
File without changes
|
package/dist/run.cmd.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export declare class RunCmd implements Command {
|
|
|
23
23
|
* access to the extension instance.
|
|
24
24
|
*/
|
|
25
25
|
application: ApplicationMain, logger: Logger);
|
|
26
|
-
report([appName]: [string], { dev, skipWatch }: RunOptions): Promise<string>;
|
|
27
26
|
render([appName]: [string], { dev, skipWatch }: RunOptions): Promise<React.ReactElement>;
|
|
28
27
|
}
|
|
29
28
|
export {};
|
package/dist/run.cmd.js
CHANGED
|
@@ -56,21 +56,6 @@ class RunCmd {
|
|
|
56
56
|
(0, _defineProperty2().default)(this, "options", [['d', 'dev', 'start the application in dev mode.'], ['v', 'verbose', 'showing verbose output for inspection and prints stack trace'], ['', 'skip-watch', 'avoid running the watch process that compiles components in the background']]);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
async report([appName], {
|
|
60
|
-
dev,
|
|
61
|
-
skipWatch
|
|
62
|
-
}) {
|
|
63
|
-
this.logger.off();
|
|
64
|
-
const {
|
|
65
|
-
port
|
|
66
|
-
} = await this.application.runApp(appName, {
|
|
67
|
-
dev,
|
|
68
|
-
skipWatch
|
|
69
|
-
});
|
|
70
|
-
if (port) return `${appName} app is running on http://localhost:${port}`;
|
|
71
|
-
return `${appName} app is running`;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
59
|
async render([appName], {
|
|
75
60
|
dev,
|
|
76
61
|
skipWatch
|
package/dist/run.cmd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["run.cmd.tsx"],"names":["RunCmd","constructor","application","logger","
|
|
1
|
+
{"version":3,"sources":["run.cmd.tsx"],"names":["RunCmd","constructor","application","logger","render","appName","dev","skipWatch","port","runApp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAUO,MAAMA,MAAN,CAAgC;AAWrCC,EAAAA,WAAW;AACT;AACJ;AACA;AACYC,EAAAA,WAJC,EAMDC,MANC,EAOT;AAAA,SAHQD,WAGR,GAHQA,WAGR;AAAA,SADQC,MACR,GADQA,MACR;AAAA,kDAjBK,WAiBL;AAAA,yDAhBY,oBAgBZ;AAAA,mDAfM,GAeN;AAAA,mDAdM,MAcN;AAAA,qDAbQ,CACR,CAAC,GAAD,EAAM,KAAN,EAAa,oCAAb,CADQ,EAER,CAAC,GAAD,EAAM,SAAN,EAAiB,8DAAjB,CAFQ,EAGR,CAAC,EAAD,EAAK,YAAL,EAAmB,4EAAnB,CAHQ,CAaR;AAAE;;AAEQ,QAANC,MAAM,CAAC,CAACC,OAAD,CAAD,EAAsB;AAAEC,IAAAA,GAAF;AAAOC,IAAAA;AAAP,GAAtB,EAAmF;AAC7F;AACA,UAAM;AAAEC,MAAAA;AAAF,QAAW,MAAM,KAAKN,WAAL,CAAiBO,MAAjB,CAAwBJ,OAAxB,EAAiC;AACtDC,MAAAA,GADsD;AAEtDC,MAAAA;AAFsD,KAAjC,CAAvB;;AAKA,QAAIC,IAAJ,EAAU;AACR,0BACE,+BAAC,WAAD,QACGH,OADH,0CACgDG,IADhD,CADF;AAKD;;AACD,wBAAO,+BAAC,WAAD,QAAOH,OAAP,oBAAP,CAd6F,CAe7F;AACD;;AApCoC","sourcesContent":["import React from 'react';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { Text } from 'ink';\nimport { Logger } from '@teambit/logger';\nimport { ApplicationMain } from './application.main.runtime';\n\ntype RunOptions = {\n dev: boolean;\n verbose: boolean;\n skipWatch: boolean;\n};\n\nexport class RunCmd implements Command {\n name = 'run <app>';\n description = 'run an application';\n alias = 'c';\n group = 'apps';\n options = [\n ['d', 'dev', 'start the application in dev mode.'],\n ['v', 'verbose', 'showing verbose output for inspection and prints stack trace'],\n ['', 'skip-watch', 'avoid running the watch process that compiles components in the background'],\n ] as CommandOptions;\n\n constructor(\n /**\n * access to the extension instance.\n */\n private application: ApplicationMain,\n\n private logger: Logger\n ) {}\n\n async render([appName]: [string], { dev, skipWatch }: RunOptions): Promise<React.ReactElement> {\n // remove wds logs until refactoring webpack to a worker through the Worker aspect.\n const { port } = await this.application.runApp(appName, {\n dev,\n skipWatch,\n });\n\n if (port) {\n return (\n <Text>\n {appName} app is running on http://localhost:{port}\n </Text>\n );\n }\n return <Text>{appName} app is running</Text>;\n // return <UIServerConsole appName={appName} futureUiServer={uiServer} />;\n }\n}\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/application",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.290",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/harmony/application",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "application",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.290"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"ink": "3.0.8",
|
|
17
17
|
"@babel/runtime": "7.12.18",
|
|
18
18
|
"core-js": "^3.0.0",
|
|
19
|
-
"@teambit/builder": "0.0.
|
|
20
|
-
"@teambit/component": "0.0.
|
|
21
|
-
"@teambit/isolator": "0.0.
|
|
22
|
-
"@teambit/envs": "0.0.
|
|
19
|
+
"@teambit/builder": "0.0.648",
|
|
20
|
+
"@teambit/component": "0.0.648",
|
|
21
|
+
"@teambit/isolator": "0.0.648",
|
|
22
|
+
"@teambit/envs": "0.0.648",
|
|
23
23
|
"@teambit/cli-table": "0.0.33",
|
|
24
|
-
"@teambit/cli": "0.0.
|
|
25
|
-
"@teambit/aspect-loader": "0.0.
|
|
26
|
-
"@teambit/logger": "0.0.
|
|
27
|
-
"@teambit/workspace": "0.0.
|
|
24
|
+
"@teambit/cli": "0.0.442",
|
|
25
|
+
"@teambit/aspect-loader": "0.0.648",
|
|
26
|
+
"@teambit/logger": "0.0.532",
|
|
27
|
+
"@teambit/workspace": "0.0.648"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/lodash": "4.14.165",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/node": "12.20.4"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@teambit/legacy": "1.0.
|
|
39
|
+
"@teambit/legacy": "1.0.220",
|
|
40
40
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
41
41
|
"react": "^16.8.0 || ^17.0.0"
|
|
42
42
|
},
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react": "-"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@teambit/legacy": "1.0.
|
|
67
|
+
"@teambit/legacy": "1.0.220",
|
|
68
68
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
69
69
|
"react": "^16.8.0 || ^17.0.0"
|
|
70
70
|
}
|
package/run.cmd.tsx
CHANGED
|
@@ -30,18 +30,6 @@ export class RunCmd implements Command {
|
|
|
30
30
|
private logger: Logger
|
|
31
31
|
) {}
|
|
32
32
|
|
|
33
|
-
async report([appName]: [string], { dev, skipWatch }: RunOptions): Promise<string> {
|
|
34
|
-
this.logger.off();
|
|
35
|
-
|
|
36
|
-
const { port } = await this.application.runApp(appName, {
|
|
37
|
-
dev,
|
|
38
|
-
skipWatch,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
if (port) return `${appName} app is running on http://localhost:${port}`;
|
|
42
|
-
return `${appName} app is running`;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
33
|
async render([appName]: [string], { dev, skipWatch }: RunOptions): Promise<React.ReactElement> {
|
|
46
34
|
// remove wds logs until refactoring webpack to a worker through the Worker aspect.
|
|
47
35
|
const { port } = await this.application.runApp(appName, {
|
|
Binary file
|