@teambit/application 0.0.380 → 0.0.383
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/app-build-result.d.ts +8 -0
- package/dist/app-build-result.js.map +1 -1
- package/dist/build.task.js +10 -8
- package/dist/build.task.js.map +1 -1
- package/package-tar/teambit-application-0.0.383.tgz +0 -0
- package/package.json +12 -12
- package/{preview-1653227849497.js → preview-1653494536947.js} +2 -2
- package/package-tar/teambit-application-0.0.380.tgz +0 -0
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { ArtifactDefinition } from '@teambit/builder';
|
|
2
2
|
export interface AppBuildResult {
|
|
3
3
|
artifacts?: ArtifactDefinition[];
|
|
4
|
+
/**
|
|
5
|
+
* errors thrown during the build process.
|
|
6
|
+
*/
|
|
7
|
+
errors?: Error[];
|
|
8
|
+
/**
|
|
9
|
+
* warnings thrown during the build process.
|
|
10
|
+
*/
|
|
11
|
+
warnings?: string[];
|
|
4
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["app-build-result.ts"],"sourcesContent":["import { ArtifactDefinition } from '@teambit/builder';\n\nexport interface AppBuildResult {\n artifacts?: ArtifactDefinition[];\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["app-build-result.ts"],"sourcesContent":["import { ArtifactDefinition } from '@teambit/builder';\n\nexport interface AppBuildResult {\n artifacts?: ArtifactDefinition[];\n\n /**\n * errors thrown during the build process.\n */\n errors?: Error[];\n\n /**\n * warnings thrown during the build process.\n */\n warnings?: string[];\n}\n"],"mappings":""}
|
package/dist/build.task.js
CHANGED
|
@@ -88,16 +88,18 @@ class AppsBuildTask {
|
|
|
88
88
|
const deployContext = await app.build(appDeployContext);
|
|
89
89
|
return {
|
|
90
90
|
artifacts: deployContext.artifacts,
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @guysaar223
|
|
94
|
-
* @ram8
|
|
95
|
-
* TODO: we need to think how to pass private metadata between build pipes, maybe create shared context
|
|
96
|
-
* or create new deploy context on builder
|
|
97
|
-
*/
|
|
98
|
-
// @ts-ignore
|
|
99
91
|
componentResult: {
|
|
100
92
|
component: capsule.component,
|
|
93
|
+
errors: deployContext.errors,
|
|
94
|
+
warnings: deployContext.warnings,
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @guysaar223
|
|
98
|
+
* @ram8
|
|
99
|
+
* TODO: we need to think how to pass private metadata between build pipes, maybe create shared context
|
|
100
|
+
* or create new deploy context on builder
|
|
101
|
+
*/
|
|
102
|
+
// @ts-ignore
|
|
101
103
|
_metadata: {
|
|
102
104
|
deployContext
|
|
103
105
|
}
|
package/dist/build.task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BUILD_TASK","AppsBuildTask","constructor","application","opt","deploy","ApplicationAspect","id","execute","context","apps","listApps","capsuleNetwork","componentsResults","mapSeries","app","aspectId","getAppAspect","name","undefined","capsule","seedersCapsules","getCapsuleIgnoreVersion","ComponentID","fromString","build","component","appDeployContext","Object","assign","appComponent","deployContext","artifacts","componentResult","_metadata","flatMap","res","filter","a","_componentsResults","map"],"sources":["build.task.ts"],"sourcesContent":["import mapSeries from 'p-map-series';\nimport { BuildTask, BuiltTaskResult, BuildContext, ComponentResult, ArtifactDefinition } from '@teambit/builder';\nimport { ComponentID } from '@teambit/component';\nimport { ApplicationAspect } from './application.aspect';\nimport { ApplicationMain } from './application.main.runtime';\nimport { AppBuildContext } from './app-build-context';\n\nexport const BUILD_TASK = 'build_application';\n\nexport type AppsResults = {\n componentResult: ComponentResult;\n artifacts?: ArtifactDefinition[];\n};\n\nexport type Options = {\n deploy: boolean;\n};\nexport class AppsBuildTask implements BuildTask {\n name = BUILD_TASK;\n aspectId = ApplicationAspect.id;\n readonly location = 'end';\n constructor(private application: ApplicationMain, private opt: Options = { deploy: true }) {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const apps = this.application.listApps();\n const { capsuleNetwork } = context;\n const componentsResults = await mapSeries(apps, async (app): Promise<AppsResults | undefined> => {\n const aspectId = this.application.getAppAspect(app.name);\n if (!aspectId) return undefined;\n const capsule = capsuleNetwork.seedersCapsules.getCapsuleIgnoreVersion(ComponentID.fromString(aspectId));\n if (!capsule || !app.build) return undefined;\n const { component } = capsule;\n const appDeployContext: AppBuildContext = Object.assign(context, {\n capsule,\n appComponent: component,\n name: app.name,\n });\n const deployContext = await app.build(appDeployContext);\n\n return {\n artifacts: deployContext.artifacts,\n /**\n
|
|
1
|
+
{"version":3,"names":["BUILD_TASK","AppsBuildTask","constructor","application","opt","deploy","ApplicationAspect","id","execute","context","apps","listApps","capsuleNetwork","componentsResults","mapSeries","app","aspectId","getAppAspect","name","undefined","capsule","seedersCapsules","getCapsuleIgnoreVersion","ComponentID","fromString","build","component","appDeployContext","Object","assign","appComponent","deployContext","artifacts","componentResult","errors","warnings","_metadata","flatMap","res","filter","a","_componentsResults","map"],"sources":["build.task.ts"],"sourcesContent":["import mapSeries from 'p-map-series';\nimport { BuildTask, BuiltTaskResult, BuildContext, ComponentResult, ArtifactDefinition } from '@teambit/builder';\nimport { ComponentID } from '@teambit/component';\nimport { ApplicationAspect } from './application.aspect';\nimport { ApplicationMain } from './application.main.runtime';\nimport { AppBuildContext } from './app-build-context';\n\nexport const BUILD_TASK = 'build_application';\n\nexport type AppsResults = {\n componentResult: ComponentResult;\n artifacts?: ArtifactDefinition[];\n};\n\nexport type Options = {\n deploy: boolean;\n};\nexport class AppsBuildTask implements BuildTask {\n name = BUILD_TASK;\n aspectId = ApplicationAspect.id;\n readonly location = 'end';\n constructor(private application: ApplicationMain, private opt: Options = { deploy: true }) {}\n\n async execute(context: BuildContext): Promise<BuiltTaskResult> {\n const apps = this.application.listApps();\n const { capsuleNetwork } = context;\n const componentsResults = await mapSeries(apps, async (app): Promise<AppsResults | undefined> => {\n const aspectId = this.application.getAppAspect(app.name);\n if (!aspectId) return undefined;\n const capsule = capsuleNetwork.seedersCapsules.getCapsuleIgnoreVersion(ComponentID.fromString(aspectId));\n if (!capsule || !app.build) return undefined;\n const { component } = capsule;\n const appDeployContext: AppBuildContext = Object.assign(context, {\n capsule,\n appComponent: component,\n name: app.name,\n });\n const deployContext = await app.build(appDeployContext);\n\n return {\n artifacts: deployContext.artifacts,\n componentResult: {\n component: capsule.component,\n errors: deployContext.errors,\n warnings: deployContext.warnings,\n /**\n * @guysaar223\n * @ram8\n * TODO: we need to think how to pass private metadata between build pipes, maybe create shared context\n * or create new deploy context on builder\n */\n // @ts-ignore\n _metadata: { deployContext },\n },\n };\n });\n\n const artifacts = componentsResults\n .flatMap((res) => {\n return res?.artifacts;\n })\n .filter((a) => !!a) as ArtifactDefinition[];\n const _componentsResults = componentsResults\n .map((res) => {\n return res?.componentResult;\n })\n .filter((a) => !!a) as ComponentResult[];\n return {\n artifacts,\n componentsResults: _componentsResults,\n };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAIO,MAAMA,UAAU,GAAG,mBAAnB;;;AAUA,MAAMC,aAAN,CAAyC;EAI9CC,WAAW,CAASC,WAAT,EAA+CC,GAAY,GAAG;IAAEC,MAAM,EAAE;EAAV,CAA9D,EAAgF;IAAA,KAAvEF,WAAuE,GAAvEA,WAAuE;IAAA,KAAjCC,GAAiC,GAAjCA,GAAiC;IAAA,8CAHpFJ,UAGoF;IAAA,kDAFhFM,gCAAA,CAAkBC,EAE8D;IAAA,kDADvE,KACuE;EAAE;;EAEhF,MAAPC,OAAO,CAACC,OAAD,EAAkD;IAC7D,MAAMC,IAAI,GAAG,KAAKP,WAAL,CAAiBQ,QAAjB,EAAb;IACA,MAAM;MAAEC;IAAF,IAAqBH,OAA3B;IACA,MAAMI,iBAAiB,GA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GAAD,IAAS;MACZ,OAAOA,GAAP,aAAOA,GAAP,uBAAOA,GAAG,CAAEL,eAAZ;IACD,CAHwB,EAIxBM,MAJwB,CAIhBC,CAAD,IAAO,CAAC,CAACA,CAJQ,CAA3B;;IAKA,OAAO;MACLR,SADK;MAELnB,iBAAiB,EAAE4B;IAFd,CAAP;EAID;;AAtD6C"}
|
|
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.383",
|
|
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.383"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"@babel/runtime": "7.12.18",
|
|
17
17
|
"core-js": "^3.0.0",
|
|
18
18
|
"@teambit/harmony": "0.3.3",
|
|
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.741",
|
|
20
|
+
"@teambit/component": "0.0.741",
|
|
21
|
+
"@teambit/isolator": "0.0.741",
|
|
22
|
+
"@teambit/envs": "0.0.741",
|
|
23
23
|
"@teambit/cli-table": "0.0.34",
|
|
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.492",
|
|
25
|
+
"@teambit/aspect-loader": "0.0.741",
|
|
26
|
+
"@teambit/logger": "0.0.584",
|
|
27
|
+
"@teambit/workspace": "0.0.741"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/react": "^17.0.8",
|
|
@@ -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.272",
|
|
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.272",
|
|
68
68
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
69
69
|
"react": "^16.8.0 || ^17.0.0"
|
|
70
70
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.383/dist/application.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_application@0.0.383/dist/application.docs.mdx')]
|
|
Binary file
|