@teambit/node 0.0.595 → 0.0.599
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeployFn } from '@teambit/application';
|
|
2
2
|
import { BuildContext } from '@teambit/builder';
|
|
3
3
|
export interface DeployContext extends BuildContext {
|
|
4
4
|
entry: string;
|
|
@@ -20,5 +20,5 @@ export declare type NodeAppOptions = {
|
|
|
20
20
|
/**
|
|
21
21
|
* deploy function.
|
|
22
22
|
*/
|
|
23
|
-
deploy?:
|
|
23
|
+
deploy?: DeployFn;
|
|
24
24
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Logger } from '@teambit/logger';
|
|
2
|
-
import { Capsule } from '@teambit/isolator';
|
|
3
2
|
import { ReactEnv } from '@teambit/react';
|
|
4
|
-
import { Application } from '@teambit/application';
|
|
3
|
+
import { Application, DeployFn } from '@teambit/application';
|
|
5
4
|
import { BuildContext } from '@teambit/builder';
|
|
6
5
|
import { NodeEnv } from './node.env';
|
|
7
6
|
import { DeployContext } from './node-app-options';
|
|
@@ -11,8 +10,8 @@ export declare class NodeApp implements Application {
|
|
|
11
10
|
readonly portRange: number[];
|
|
12
11
|
readonly nodeEnv: NodeEnv & ReactEnv;
|
|
13
12
|
readonly logger: Logger;
|
|
14
|
-
readonly deploy?:
|
|
15
|
-
constructor(name: string, entry: string, portRange: number[], nodeEnv: NodeEnv & ReactEnv, logger: Logger, deploy?:
|
|
13
|
+
readonly deploy?: DeployFn | undefined;
|
|
14
|
+
constructor(name: string, entry: string, portRange: number[], nodeEnv: NodeEnv & ReactEnv, logger: Logger, deploy?: DeployFn | undefined);
|
|
16
15
|
applicationType: string;
|
|
17
16
|
run(): Promise<void>;
|
|
18
17
|
build(context: BuildContext): Promise<DeployContext>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["node.application.ts"],"names":["NodeApp","constructor","name","entry","portRange","nodeEnv","logger","deploy","run","child","error","stdout","on","data","console","toString","build","context","base","distDir","getCompiler","Object","assign"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;
|
|
1
|
+
{"version":3,"sources":["node.application.ts"],"names":["NodeApp","constructor","name","entry","portRange","nodeEnv","logger","deploy","run","child","error","stdout","on","data","console","toString","build","context","base","distDir","getCompiler","Object","assign"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAQO,MAAMA,OAAN,CAAqC;AAC1CC,EAAAA,WAAW,CACAC,IADA,EAEAC,KAFA,EAGAC,SAHA,EAIAC,OAJA,EAKAC,MALA,EAMAC,MANA,EAOT;AAAA,SANSL,IAMT,GANSA,IAMT;AAAA,SALSC,KAKT,GALSA,KAKT;AAAA,SAJSC,SAIT,GAJSA,SAIT;AAAA,SAHSC,OAGT,GAHSA,OAGT;AAAA,SAFSC,MAET,GAFSA,MAET;AAAA,SADSC,MACT,GADSA,MACT;AAAA,6DAEgB,MAFhB;AAAE;;AAIK,QAAHC,GAAG,GAAkB;AAAA;;AACzB,UAAMF,MAAM,GAAG,KAAKA,MAApB;AACA,UAAMG,KAAK,GAAG,+BAAS,MAAT,EAAiB,CAAC,KAAKN,KAAN,CAAjB,EAAgCO,KAAD,IAAW;AACtD,UAAIA,KAAJ,EAAW;AACT,cAAMA,KAAN;AACD;AACF,KAJa,CAAd;AAKA,qBAAAD,KAAK,CAACE,MAAN,gEAAcC,EAAd,CAAiB,MAAjB,EAAyB,UAAUC,IAAV,EAAgB;AACvCP,MAAAA,MAAM,CAACQ,OAAP,CAAeD,IAAI,CAACE,QAAL,EAAf;AACD,KAFD;AAGD;;AAEU,QAALC,KAAK,CAACC,OAAD,EAAgD;AACzD,UAAM;AAAEC,MAAAA;AAAF,QAAW,mBAAM,KAAKf,KAAX,CAAjB;AACA,UAAM;AAAEgB,MAAAA;AAAF,QAAc,KAAKd,OAAL,CAAae,WAAb,EAApB;AACA,UAAMjB,KAAK,GAAG,kBAAKgB,OAAL,EAAcD,IAAd,CAAd;AACA,WAAOG,MAAM,CAACC,MAAP,CAAcL,OAAd,EAAuB;AAAEd,MAAAA;AAAF,KAAvB,CAAP;AACD;;AA7ByC","sourcesContent":["import { execFile } from 'child_process';\nimport { parse, join } from 'path';\nimport { Logger } from '@teambit/logger';\nimport { ReactEnv } from '@teambit/react';\nimport { Application, DeployFn } from '@teambit/application';\nimport { BuildContext } from '@teambit/builder';\nimport { NodeEnv } from './node.env';\nimport { DeployContext } from './node-app-options';\n\nexport class NodeApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string,\n readonly portRange: number[],\n readonly nodeEnv: NodeEnv & ReactEnv,\n readonly logger: Logger,\n readonly deploy?: DeployFn\n ) {}\n\n applicationType = 'node';\n\n async run(): Promise<void> {\n const logger = this.logger;\n const child = execFile('node', [this.entry], (error) => {\n if (error) {\n throw error;\n }\n });\n child.stdout?.on('data', function (data) {\n logger.console(data.toString());\n });\n }\n\n async build(context: BuildContext): Promise<DeployContext> {\n const { base } = parse(this.entry);\n const { distDir } = this.nodeEnv.getCompiler();\n const entry = join(distDir, base);\n return Object.assign(context, { entry });\n }\n}\n"]}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/node",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.599",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/harmony/node",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.harmony",
|
|
8
8
|
"name": "node",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.599"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@teambit/harmony": "0.2.11",
|
|
@@ -14,22 +14,21 @@
|
|
|
14
14
|
"typescript": "4.4.2",
|
|
15
15
|
"@babel/runtime": "7.12.18",
|
|
16
16
|
"core-js": "^3.0.0",
|
|
17
|
-
"@teambit/
|
|
18
|
-
"@teambit/
|
|
19
|
-
"@teambit/
|
|
20
|
-
"@teambit/
|
|
21
|
-
"@teambit/
|
|
22
|
-
"@teambit/
|
|
23
|
-
"@teambit/
|
|
24
|
-
"@teambit/
|
|
25
|
-
"@teambit/
|
|
26
|
-
"@teambit/
|
|
27
|
-
"@teambit/
|
|
28
|
-
"@teambit/
|
|
29
|
-
"@teambit/
|
|
30
|
-
"@teambit/
|
|
31
|
-
"@teambit/
|
|
32
|
-
"@teambit/ui": "0.0.595"
|
|
17
|
+
"@teambit/application": "0.0.241",
|
|
18
|
+
"@teambit/builder": "0.0.599",
|
|
19
|
+
"@teambit/logger": "0.0.500",
|
|
20
|
+
"@teambit/react": "0.0.599",
|
|
21
|
+
"@teambit/dependency-resolver": "0.0.599",
|
|
22
|
+
"@teambit/envs": "0.0.599",
|
|
23
|
+
"@teambit/cli": "0.0.411",
|
|
24
|
+
"@teambit/compiler": "0.0.599",
|
|
25
|
+
"@teambit/generator": "0.0.599",
|
|
26
|
+
"@teambit/pkg": "0.0.599",
|
|
27
|
+
"@teambit/typescript": "0.0.599",
|
|
28
|
+
"@teambit/compositions": "0.0.599",
|
|
29
|
+
"@teambit/design.ui.empty-box": "0.0.353",
|
|
30
|
+
"@teambit/tester": "0.0.599",
|
|
31
|
+
"@teambit/ui": "0.0.599"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
34
|
"@types/react": "^17.0.8",
|
|
@@ -39,10 +38,10 @@
|
|
|
39
38
|
"@types/jest": "^26.0.0",
|
|
40
39
|
"@types/react-dom": "^17.0.5",
|
|
41
40
|
"@types/node": "12.20.4",
|
|
42
|
-
"@teambit/harmony.aspect-docs.node": "0.0.
|
|
41
|
+
"@teambit/harmony.aspect-docs.node": "0.0.131"
|
|
43
42
|
},
|
|
44
43
|
"peerDependencies": {
|
|
45
|
-
"@teambit/legacy": "1.0.
|
|
44
|
+
"@teambit/legacy": "1.0.198",
|
|
46
45
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
47
46
|
"react": "^16.8.0 || ^17.0.0"
|
|
48
47
|
},
|
|
@@ -70,7 +69,7 @@
|
|
|
70
69
|
"react": "-"
|
|
71
70
|
},
|
|
72
71
|
"peerDependencies": {
|
|
73
|
-
"@teambit/legacy": "1.0.
|
|
72
|
+
"@teambit/legacy": "1.0.198",
|
|
74
73
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
75
74
|
"react": "^16.8.0 || ^17.0.0"
|
|
76
75
|
}
|
|
Binary file
|