@teambit/multi-compiler 0.0.881 → 0.0.883

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/index.js CHANGED
@@ -10,19 +10,14 @@ Object.defineProperty(exports, "MultiCompilerAspect", {
10
10
  }
11
11
  });
12
12
  exports.default = void 0;
13
-
14
13
  function _multiCompiler() {
15
14
  const data = require("./multi-compiler.aspect");
16
-
17
15
  _multiCompiler = function () {
18
16
  return data;
19
17
  };
20
-
21
18
  return data;
22
19
  }
23
-
24
20
  var _default = _multiCompiler().MultiCompilerAspect;
25
-
26
21
  exports.default = _default;
27
22
 
28
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["MultiCompilerAspect"],"sources":["index.ts"],"sourcesContent":["import { MultiCompilerAspect } from './multi-compiler.aspect';\n\nexport { MultiCompilerAspect };\nexport type { MultiCompilerMain } from './multi-compiler.main.runtime';\nexport type { MultiCompiler } from './multi-compiler.compiler';\nexport default MultiCompilerAspect;\n"],"mappings":";;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;eAKeA,oC"}
1
+ {"version":3,"names":["MultiCompilerAspect"],"sources":["index.ts"],"sourcesContent":["import { MultiCompilerAspect } from './multi-compiler.aspect';\n\nexport { MultiCompilerAspect };\nexport type { MultiCompilerMain } from './multi-compiler.main.runtime';\nexport type { MultiCompiler } from './multi-compiler.compiler';\nexport default MultiCompilerAspect;\n"],"mappings":";;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAA8D,eAK/CA,oCAAmB;AAAA"}
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.MultiCompilerAspect = void 0;
7
-
8
7
  function _harmony() {
9
8
  const data = require("@teambit/harmony");
10
-
11
9
  _harmony = function () {
12
10
  return data;
13
11
  };
14
-
15
12
  return data;
16
13
  }
17
-
18
14
  const MultiCompilerAspect = _harmony().Aspect.create({
19
15
  id: 'teambit.compilation/multi-compiler'
20
16
  });
21
-
22
17
  exports.MultiCompilerAspect = MultiCompilerAspect;
23
18
 
24
19
  //# sourceMappingURL=multi-compiler.aspect.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["MultiCompilerAspect","Aspect","create","id"],"sources":["multi-compiler.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MultiCompilerAspect = Aspect.create({\n id: 'teambit.compilation/multi-compiler',\n});\n"],"mappings":";;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,mBAAmB,GAAGC,iBAAA,CAAOC,MAAP,CAAc;EAC/CC,EAAE,EAAE;AAD2C,CAAd,CAA5B"}
1
+ {"version":3,"names":["MultiCompilerAspect","Aspect","create","id"],"sources":["multi-compiler.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MultiCompilerAspect = Aspect.create({\n id: 'teambit.compilation/multi-compiler',\n});\n"],"mappings":";;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,mBAAmB,GAAGC,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC"}
@@ -1,60 +1,42 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.array.flat-map.js");
6
-
7
5
  require("core-js/modules/es.array.iterator.js");
8
-
9
6
  require("core-js/modules/es.array.unscopables.flat-map.js");
10
-
11
7
  require("core-js/modules/es.promise.js");
12
-
13
8
  Object.defineProperty(exports, "__esModule", {
14
9
  value: true
15
10
  });
16
11
  exports.MultiCompiler = void 0;
17
-
18
12
  function _defineProperty2() {
19
13
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
-
21
14
  _defineProperty2 = function () {
22
15
  return data;
23
16
  };
24
-
25
17
  return data;
26
18
  }
27
-
28
19
  function _path() {
29
20
  const data = require("path");
30
-
31
21
  _path = function () {
32
22
  return data;
33
23
  };
34
-
35
24
  return data;
36
25
  }
37
-
38
26
  function _pMapSeries() {
39
27
  const data = _interopRequireDefault(require("p-map-series"));
40
-
41
28
  _pMapSeries = function () {
42
29
  return data;
43
30
  };
44
-
45
31
  return data;
46
32
  }
47
-
48
33
  function _pipelinesModules() {
49
34
  const data = require("@teambit/pipelines.modules.merge-component-results");
50
-
51
35
  _pipelinesModules = function () {
52
36
  return data;
53
37
  };
54
-
55
38
  return data;
56
39
  }
57
-
58
40
  class MultiCompiler {
59
41
  constructor(id, compilers, compilerOptions = {}, options = {}) {
60
42
  this.id = id;
@@ -65,11 +47,9 @@ class MultiCompiler {
65
47
  (0, _defineProperty2().default)(this, "shouldCopyNonSupportedFiles", typeof this.compilerOptions.shouldCopyNonSupportedFiles === 'boolean' ? this.compilerOptions.shouldCopyNonSupportedFiles : true);
66
48
  (0, _defineProperty2().default)(this, "distDir", 'dist');
67
49
  }
68
-
69
50
  getDistDir() {
70
51
  return this.distDir;
71
52
  }
72
-
73
53
  getArtifactDefinition() {
74
54
  return [{
75
55
  generatedBy: this.id,
@@ -77,33 +57,28 @@ class MultiCompiler {
77
57
  globPatterns: this.compilerOptions.distGlobPatterns || [`${this.distDir}/**`, `!${this.distDir}/tsconfig.tsbuildinfo`]
78
58
  }];
79
59
  }
80
-
81
60
  getOptions() {
82
61
  const defaultOpts = {
83
62
  targetExtension: '.js'
84
63
  };
85
64
  return Object.assign(defaultOpts, this.options);
86
65
  }
87
-
88
66
  displayConfig() {
89
67
  return this.compilers.map(compiler => {
90
68
  return `${compiler.displayName}\n${compiler.displayConfig}\n`;
91
69
  }).join('\n');
92
70
  }
71
+
93
72
  /**
94
73
  * the multi-compiler applies all applicable defined compilers on given content.
95
74
  */
96
-
97
-
98
75
  transpileFile(fileContent, options) {
99
76
  const outputs = this.compilers.reduce((files, compiler) => {
100
77
  if (!compiler.transpileFile) {
101
78
  return files;
102
79
  }
103
-
104
80
  return files === null || files === void 0 ? void 0 : files.flatMap(file => {
105
81
  var _compiler$transpileFi;
106
-
107
82
  if (!compiler.isFileSupported(file === null || file === void 0 ? void 0 : file.outputPath)) return [file];
108
83
  const params = Object.assign({}, options, {
109
84
  filePath: file.outputPath
@@ -118,15 +93,12 @@ class MultiCompiler {
118
93
  }]);
119
94
  return outputs;
120
95
  }
121
-
122
96
  async transpileComponent(params) {
123
97
  await Promise.all(this.compilers.map(compiler => {
124
98
  var _compiler$transpileCo;
125
-
126
99
  return (_compiler$transpileCo = compiler.transpileComponent) === null || _compiler$transpileCo === void 0 ? void 0 : _compiler$transpileCo.call(compiler, params);
127
100
  }));
128
101
  }
129
-
130
102
  async build(context) {
131
103
  const builds = await (0, _pMapSeries().default)(this.compilers, async compiler => {
132
104
  const buildResult = await compiler.build(context);
@@ -137,71 +109,59 @@ class MultiCompiler {
137
109
  artifacts: this.getArtifactDefinition()
138
110
  };
139
111
  }
140
-
141
112
  async preBuild(context) {
142
113
  await Promise.all(this.compilers.map(async compiler => {
143
114
  if (!compiler.preBuild) return;
144
115
  await compiler.preBuild(context);
145
116
  }));
146
117
  }
147
-
148
118
  async postBuild(context, taskResults) {
149
119
  await Promise.all(this.compilers.map(async compiler => {
150
120
  if (!compiler.postBuild) return;
151
121
  await compiler.postBuild(context, taskResults);
152
122
  }));
153
123
  }
154
-
155
124
  firstMatchedCompiler(filePath) {
156
125
  return this.compilers.find(compiler => compiler.isFileSupported(filePath));
157
126
  }
158
-
159
127
  getPreviewComponentRootPath(component) {
160
128
  const matchedCompiler = this.compilers.find(compiler => typeof compiler.getPreviewComponentRootPath !== 'undefined');
161
-
162
129
  if (!matchedCompiler) {
163
130
  return '';
164
- } // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
165
-
131
+ }
166
132
 
133
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
167
134
  return matchedCompiler.getPreviewComponentRootPath(component);
168
135
  }
136
+
169
137
  /**
170
138
  * given a source file, return its parallel in the dists. e.g. "index.ts" => "dist/index.js"
171
139
  * both, the return path and the given path are relative paths.
172
140
  */
173
-
174
-
175
141
  getDistPathBySrcPath(srcPath) {
176
142
  const matchedCompiler = this.firstMatchedCompiler(srcPath);
177
-
178
143
  if (!matchedCompiler) {
179
144
  return (0, _path().join)(this.distDir, srcPath);
180
145
  }
181
-
182
146
  return matchedCompiler.getDistPathBySrcPath(srcPath);
183
147
  }
148
+
184
149
  /**
185
150
  * only supported files matching get compiled. others, are copied to the dist dir.
186
151
  */
187
-
188
-
189
152
  isFileSupported(filePath) {
190
153
  return !!this.firstMatchedCompiler(filePath);
191
154
  }
155
+
192
156
  /**
193
157
  * returns the version of the current compiler instance (e.g. '4.0.1').
194
158
  */
195
-
196
-
197
159
  version() {
198
160
  return this.compilers.map(compiler => {
199
161
  return `${compiler.displayName}@${compiler.version()}`;
200
162
  }).join('\n');
201
163
  }
202
-
203
164
  }
204
-
205
165
  exports.MultiCompiler = MultiCompiler;
206
166
 
207
167
  //# sourceMappingURL=multi-compiler.compiler.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["MultiCompiler","constructor","id","compilers","compilerOptions","options","shouldCopyNonSupportedFiles","getDistDir","distDir","getArtifactDefinition","generatedBy","name","artifactName","globPatterns","distGlobPatterns","getOptions","defaultOpts","targetExtension","Object","assign","displayConfig","map","compiler","displayName","join","transpileFile","fileContent","outputs","reduce","files","flatMap","file","isFileSupported","outputPath","params","filePath","compiledContent","outputText","transpileComponent","Promise","all","build","context","builds","pMapSeries","buildResult","componentsResults","mergeComponentResults","artifacts","preBuild","postBuild","taskResults","firstMatchedCompiler","find","getPreviewComponentRootPath","component","matchedCompiler","getDistPathBySrcPath","srcPath","version"],"sources":["multi-compiler.compiler.ts"],"sourcesContent":["import { join } from 'path';\nimport pMapSeries from 'p-map-series';\nimport {\n Compiler,\n CompilerOptions,\n TranspileComponentParams,\n TranspileFileOutput,\n TranspileFileParams,\n} from '@teambit/compiler';\nimport { BuiltTaskResult, BuildContext, TaskResultsList } from '@teambit/builder';\nimport { mergeComponentResults } from '@teambit/pipelines.modules.merge-component-results';\nimport { Component } from '@teambit/component';\n\nexport type MultiCompilerOptions = {\n targetExtension?: string;\n};\n\nexport class MultiCompiler implements Compiler {\n displayName = 'Multi compiler';\n\n shouldCopyNonSupportedFiles =\n typeof this.compilerOptions.shouldCopyNonSupportedFiles === 'boolean'\n ? this.compilerOptions.shouldCopyNonSupportedFiles\n : true;\n distDir = 'dist';\n\n constructor(\n readonly id: string,\n readonly compilers: Compiler[],\n readonly compilerOptions: Partial<CompilerOptions> = {},\n readonly options: MultiCompilerOptions = {}\n ) {}\n\n getDistDir() {\n return this.distDir;\n }\n\n getArtifactDefinition() {\n return [\n {\n generatedBy: this.id,\n name: this.compilerOptions.artifactName || 'dist',\n globPatterns: this.compilerOptions.distGlobPatterns || [\n `${this.distDir}/**`,\n `!${this.distDir}/tsconfig.tsbuildinfo`,\n ],\n },\n ];\n }\n\n private getOptions() {\n const defaultOpts = {\n targetExtension: '.js',\n };\n\n return Object.assign(defaultOpts, this.options);\n }\n\n displayConfig() {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}\\n${compiler.displayConfig}\\n`;\n })\n .join('\\n');\n }\n\n /**\n * the multi-compiler applies all applicable defined compilers on given content.\n */\n transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput {\n const outputs = this.compilers.reduce<any>(\n (files, compiler) => {\n if (!compiler.transpileFile) {\n return files;\n }\n return files?.flatMap((file) => {\n if (!compiler.isFileSupported(file?.outputPath)) return [file];\n const params = Object.assign({}, options, {\n filePath: file.outputPath,\n });\n const compiledContent = compiler.transpileFile?.(file.outputText, params);\n if (!compiledContent) return null;\n\n return compiledContent;\n });\n },\n [{ outputText: fileContent, outputPath: options.filePath }]\n );\n\n return outputs;\n }\n\n async transpileComponent(params: TranspileComponentParams): Promise<void> {\n await Promise.all(\n this.compilers.map((compiler) => {\n return compiler.transpileComponent?.(params);\n })\n );\n }\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n const builds = await pMapSeries(this.compilers, async (compiler) => {\n const buildResult = await compiler.build(context);\n return buildResult.componentsResults;\n });\n\n return {\n componentsResults: mergeComponentResults(builds),\n artifacts: this.getArtifactDefinition(),\n };\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.preBuild) return;\n await compiler.preBuild(context);\n })\n );\n }\n\n async postBuild(context: BuildContext, taskResults: TaskResultsList) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.postBuild) return;\n await compiler.postBuild(context, taskResults);\n })\n );\n }\n\n private firstMatchedCompiler(filePath: string): Compiler | undefined {\n return this.compilers.find((compiler) => compiler.isFileSupported(filePath));\n }\n\n getPreviewComponentRootPath(component: Component): string {\n const matchedCompiler = this.compilers.find(\n (compiler) => typeof compiler.getPreviewComponentRootPath !== 'undefined'\n );\n if (!matchedCompiler) {\n return '';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return matchedCompiler.getPreviewComponentRootPath!(component);\n }\n\n /**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */\n getDistPathBySrcPath(srcPath: string): string {\n const matchedCompiler = this.firstMatchedCompiler(srcPath);\n if (!matchedCompiler) {\n return join(this.distDir, srcPath);\n }\n\n return matchedCompiler.getDistPathBySrcPath(srcPath);\n }\n\n /**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */\n isFileSupported(filePath: string): boolean {\n return !!this.firstMatchedCompiler(filePath);\n }\n\n /**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */\n version(): string {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}@${compiler.version()}`;\n })\n .join('\\n');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA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AAP;IACD,CANuD,CAQxD;;;IACA,OAAOA,eAAe,CAACF,2BAAhB,CAA6CC,SAA7C,CAAP;EACD;EAED;AACF;AACA;AACA;;;EACEE,oBAAoB,CAACC,OAAD,EAA0B;IAC5C,MAAMF,eAAe,GAAG,KAAKJ,oBAAL,CAA0BM,OAA1B,CAAxB;;IACA,IAAI,CAACF,eAAL,EAAsB;MACpB,OAAO,IAAAhC,YAAA,EAAK,KAAKhB,OAAV,EAAmBkD,OAAnB,CAAP;IACD;;IAED,OAAOF,eAAe,CAACC,oBAAhB,CAAqCC,OAArC,CAAP;EACD;EAED;AACF;AACA;;;EACE1B,eAAe,CAACG,QAAD,EAA4B;IACzC,OAAO,CAAC,CAAC,KAAKiB,oBAAL,CAA0BjB,QAA1B,CAAT;EACD;EAED;AACF;AACA;;;EACEwB,OAAO,GAAW;IAChB,OAAO,KAAKxD,SAAL,CACJkB,GADI,CACCC,QAAD,IAAc;MACjB,OAAQ,GAAEA,QAAQ,CAACC,WAAY,IAAGD,QAAQ,CAACqC,OAAT,EAAmB,EAArD;IACD,CAHI,EAIJnC,IAJI,CAIC,IAJD,CAAP;EAKD;;AA9J4C"}
1
+ {"version":3,"names":["MultiCompiler","constructor","id","compilers","compilerOptions","options","shouldCopyNonSupportedFiles","getDistDir","distDir","getArtifactDefinition","generatedBy","name","artifactName","globPatterns","distGlobPatterns","getOptions","defaultOpts","targetExtension","Object","assign","displayConfig","map","compiler","displayName","join","transpileFile","fileContent","outputs","reduce","files","flatMap","file","isFileSupported","outputPath","params","filePath","compiledContent","outputText","transpileComponent","Promise","all","build","context","builds","pMapSeries","buildResult","componentsResults","mergeComponentResults","artifacts","preBuild","postBuild","taskResults","firstMatchedCompiler","find","getPreviewComponentRootPath","component","matchedCompiler","getDistPathBySrcPath","srcPath","version"],"sources":["multi-compiler.compiler.ts"],"sourcesContent":["import { join } from 'path';\nimport pMapSeries from 'p-map-series';\nimport {\n Compiler,\n CompilerOptions,\n TranspileComponentParams,\n TranspileFileOutput,\n TranspileFileParams,\n} from '@teambit/compiler';\nimport { BuiltTaskResult, BuildContext, TaskResultsList } from '@teambit/builder';\nimport { mergeComponentResults } from '@teambit/pipelines.modules.merge-component-results';\nimport { Component } from '@teambit/component';\n\nexport type MultiCompilerOptions = {\n targetExtension?: string;\n};\n\nexport class MultiCompiler implements Compiler {\n displayName = 'Multi compiler';\n\n shouldCopyNonSupportedFiles =\n typeof this.compilerOptions.shouldCopyNonSupportedFiles === 'boolean'\n ? this.compilerOptions.shouldCopyNonSupportedFiles\n : true;\n distDir = 'dist';\n\n constructor(\n readonly id: string,\n readonly compilers: Compiler[],\n readonly compilerOptions: Partial<CompilerOptions> = {},\n readonly options: MultiCompilerOptions = {}\n ) {}\n\n getDistDir() {\n return this.distDir;\n }\n\n getArtifactDefinition() {\n return [\n {\n generatedBy: this.id,\n name: this.compilerOptions.artifactName || 'dist',\n globPatterns: this.compilerOptions.distGlobPatterns || [\n `${this.distDir}/**`,\n `!${this.distDir}/tsconfig.tsbuildinfo`,\n ],\n },\n ];\n }\n\n private getOptions() {\n const defaultOpts = {\n targetExtension: '.js',\n };\n\n return Object.assign(defaultOpts, this.options);\n }\n\n displayConfig() {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}\\n${compiler.displayConfig}\\n`;\n })\n .join('\\n');\n }\n\n /**\n * the multi-compiler applies all applicable defined compilers on given content.\n */\n transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput {\n const outputs = this.compilers.reduce<any>(\n (files, compiler) => {\n if (!compiler.transpileFile) {\n return files;\n }\n return files?.flatMap((file) => {\n if (!compiler.isFileSupported(file?.outputPath)) return [file];\n const params = Object.assign({}, options, {\n filePath: file.outputPath,\n });\n const compiledContent = compiler.transpileFile?.(file.outputText, params);\n if (!compiledContent) return null;\n\n return compiledContent;\n });\n },\n [{ outputText: fileContent, outputPath: options.filePath }]\n );\n\n return outputs;\n }\n\n async transpileComponent(params: TranspileComponentParams): Promise<void> {\n await Promise.all(\n this.compilers.map((compiler) => {\n return compiler.transpileComponent?.(params);\n })\n );\n }\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n const builds = await pMapSeries(this.compilers, async (compiler) => {\n const buildResult = await compiler.build(context);\n return buildResult.componentsResults;\n });\n\n return {\n componentsResults: mergeComponentResults(builds),\n artifacts: this.getArtifactDefinition(),\n };\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.preBuild) return;\n await compiler.preBuild(context);\n })\n );\n }\n\n async postBuild(context: BuildContext, taskResults: TaskResultsList) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.postBuild) return;\n await compiler.postBuild(context, taskResults);\n })\n );\n }\n\n private firstMatchedCompiler(filePath: string): Compiler | undefined {\n return this.compilers.find((compiler) => compiler.isFileSupported(filePath));\n }\n\n getPreviewComponentRootPath(component: Component): string {\n const matchedCompiler = this.compilers.find(\n (compiler) => typeof compiler.getPreviewComponentRootPath !== 'undefined'\n );\n if (!matchedCompiler) {\n return '';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return matchedCompiler.getPreviewComponentRootPath!(component);\n }\n\n /**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */\n getDistPathBySrcPath(srcPath: string): string {\n const matchedCompiler = this.firstMatchedCompiler(srcPath);\n if (!matchedCompiler) {\n return join(this.distDir, srcPath);\n }\n\n return matchedCompiler.getDistPathBySrcPath(srcPath);\n }\n\n /**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */\n isFileSupported(filePath: string): boolean {\n return !!this.firstMatchedCompiler(filePath);\n }\n\n /**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */\n version(): string {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}@${compiler.version()}`;\n })\n .join('\\n');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EA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AE;MACpB,OAAO,EAAE;IACX;;IAEA;IACA,OAAOA,eAAe,CAACF,2BAA2B,CAAEC,SAAS,CAAC;EAChE;;EAEA;AACF;AACA;AACA;EACEE,oBAAoB,CAACC,OAAe,EAAU;IAC5C,MAAMF,eAAe,GAAG,IAAI,CAACJ,oBAAoB,CAACM,OAAO,CAAC;IAC1D,IAAI,CAACF,eAAe,EAAE;MACpB,OAAO,IAAAhC,YAAI,EAAC,IAAI,CAAChB,OAAO,EAAEkD,OAAO,CAAC;IACpC;IAEA,OAAOF,eAAe,CAACC,oBAAoB,CAACC,OAAO,CAAC;EACtD;;EAEA;AACF;AACA;EACE1B,eAAe,CAACG,QAAgB,EAAW;IACzC,OAAO,CAAC,CAAC,IAAI,CAACiB,oBAAoB,CAACjB,QAAQ,CAAC;EAC9C;;EAEA;AACF;AACA;EACEwB,OAAO,GAAW;IAChB,OAAO,IAAI,CAACxD,SAAS,CAClBkB,GAAG,CAAEC,QAAQ,IAAK;MACjB,OAAQ,GAAEA,QAAQ,CAACC,WAAY,IAAGD,QAAQ,CAACqC,OAAO,EAAG,EAAC;IACxD,CAAC,CAAC,CACDnC,IAAI,CAAC,IAAI,CAAC;EACf;AACF;AAAC"}
@@ -1,22 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.Logo = void 0;
9
-
10
8
  function _react() {
11
9
  const data = _interopRequireDefault(require("react"));
12
-
13
10
  _react = function () {
14
11
  return data;
15
12
  };
16
-
17
13
  return data;
18
14
  }
19
-
20
15
  const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
21
16
  style: {
22
17
  height: '100%',
@@ -29,7 +24,6 @@ const Logo = () => /*#__PURE__*/_react().default.createElement("div", {
29
24
  },
30
25
  src: "https://static.bit.dev/extensions-icons/multi-complier.svg"
31
26
  }));
32
-
33
27
  exports.Logo = Logo;
34
28
 
35
29
  //# sourceMappingURL=multi-compiler.composition.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["multi-compiler.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/multi-complier.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAV;IAAkBC,OAAO,EAAE,MAA3B;IAAmCC,cAAc,EAAE;EAAnD;AAAZ,gBACE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAT,CAAZ;EAA2B,GAAG,EAAC;AAA/B,EADF,CADK"}
1
+ {"version":3,"names":["Logo","height","display","justifyContent","width"],"sources":["multi-compiler.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/multi-complier.svg\" />\n </div>\n);\n"],"mappings":";;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,IAAI,GAAG,mBAClB;EAAK,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxE;EAAK,KAAK,EAAE;IAAEC,KAAK,EAAE;EAAG,CAAE;EAAC,GAAG,EAAC;AAA4D,EAAG,CAEjG;AAAC"}
@@ -1,54 +1,39 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  require("core-js/modules/es.promise.js");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports.MultiCompilerMain = void 0;
11
-
12
9
  function _defineProperty2() {
13
10
  const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
-
15
11
  _defineProperty2 = function () {
16
12
  return data;
17
13
  };
18
-
19
14
  return data;
20
15
  }
21
-
22
16
  function _cli() {
23
17
  const data = require("@teambit/cli");
24
-
25
18
  _cli = function () {
26
19
  return data;
27
20
  };
28
-
29
21
  return data;
30
22
  }
31
-
32
23
  function _multiCompiler() {
33
24
  const data = require("./multi-compiler.aspect");
34
-
35
25
  _multiCompiler = function () {
36
26
  return data;
37
27
  };
38
-
39
28
  return data;
40
29
  }
41
-
42
30
  function _multiCompiler2() {
43
31
  const data = require("./multi-compiler.compiler");
44
-
45
32
  _multiCompiler2 = function () {
46
33
  return data;
47
34
  };
48
-
49
35
  return data;
50
36
  }
51
-
52
37
  class MultiCompilerMain {
53
38
  /**
54
39
  * create a multi-compiler `Compiler` instance.
@@ -57,16 +42,12 @@ class MultiCompilerMain {
57
42
  createCompiler(compilers, options = {}) {
58
43
  return new (_multiCompiler2().MultiCompiler)(_multiCompiler().MultiCompilerAspect.id, compilers, options, {});
59
44
  }
60
-
61
45
  static async provider() {
62
46
  return new MultiCompilerMain();
63
47
  }
64
-
65
48
  }
66
-
67
49
  exports.MultiCompilerMain = MultiCompilerMain;
68
50
  (0, _defineProperty2().default)(MultiCompilerMain, "runtime", _cli().MainRuntime);
69
-
70
51
  _multiCompiler().MultiCompilerAspect.addRuntime(MultiCompilerMain);
71
52
 
72
53
  //# sourceMappingURL=multi-compiler.main.runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["MultiCompilerMain","createCompiler","compilers","options","MultiCompiler","MultiCompilerAspect","id","provider","MainRuntime","addRuntime"],"sources":["multi-compiler.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { Compiler, CompilerOptions } from '@teambit/compiler';\nimport { MultiCompilerAspect } from './multi-compiler.aspect';\nimport { MultiCompiler } from './multi-compiler.compiler';\n\nexport class MultiCompilerMain {\n /**\n * create a multi-compiler `Compiler` instance.\n * @param compilers list of compilers to include.\n */\n createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {\n return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});\n }\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new MultiCompilerMain();\n }\n}\n\nMultiCompilerAspect.addRuntime(MultiCompilerMain);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEO,MAAMA,iBAAN,CAAwB;EAC7B;AACF;AACA;AACA;EACEC,cAAc,CAACC,SAAD,EAAwBC,OAAiC,GAAG,EAA5D,EAAgE;IAC5E,OAAO,KAAIC,+BAAJ,EAAkBC,oCAAA,CAAoBC,EAAtC,EAA0CJ,SAA1C,EAAqDC,OAArD,EAA8D,EAA9D,CAAP;EACD;;EAIoB,aAARI,QAAQ,GAAG;IACtB,OAAO,IAAIP,iBAAJ,EAAP;EACD;;AAb4B;;;gCAAlBA,iB,aASMQ,kB;;AAOnBH,oCAAA,CAAoBI,UAApB,CAA+BT,iBAA/B"}
1
+ {"version":3,"names":["MultiCompilerMain","createCompiler","compilers","options","MultiCompiler","MultiCompilerAspect","id","provider","MainRuntime","addRuntime"],"sources":["multi-compiler.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { Compiler, CompilerOptions } from '@teambit/compiler';\nimport { MultiCompilerAspect } from './multi-compiler.aspect';\nimport { MultiCompiler } from './multi-compiler.compiler';\n\nexport class MultiCompilerMain {\n /**\n * create a multi-compiler `Compiler` instance.\n * @param compilers list of compilers to include.\n */\n createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {\n return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});\n }\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new MultiCompilerMain();\n }\n}\n\nMultiCompilerAspect.addRuntime(MultiCompilerMain);\n"],"mappings":";;;;;;;;;;;;;;;AAAA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,MAAMA,iBAAiB,CAAC;EAC7B;AACF;AACA;AACA;EACEC,cAAc,CAACC,SAAqB,EAAEC,OAAiC,GAAG,CAAC,CAAC,EAAE;IAC5E,OAAO,KAAIC,+BAAa,EAACC,oCAAmB,CAACC,EAAE,EAAEJ,SAAS,EAAEC,OAAO,EAAE,CAAC,CAAC,CAAC;EAC1E;EAIA,aAAaI,QAAQ,GAAG;IACtB,OAAO,IAAIP,iBAAiB,EAAE;EAChC;AACF;AAAC;AAAA,gCAdYA,iBAAiB,aASXQ,kBAAW;AAO9BH,oCAAmB,CAACI,UAAU,CAACT,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/multi-compiler",
3
- "version": "0.0.881",
3
+ "version": "0.0.883",
4
4
  "homepage": "https://bit.dev/teambit/compilation/multi-compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "multi-compiler",
9
- "version": "0.0.881"
9
+ "version": "0.0.883"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
13
  "@babel/runtime": "7.12.18",
14
14
  "core-js": "^3.0.0",
15
15
  "@teambit/harmony": "0.3.3",
16
- "@teambit/builder": "0.0.881",
17
- "@teambit/compiler": "0.0.881",
18
- "@teambit/component": "0.0.881",
16
+ "@teambit/builder": "0.0.883",
17
+ "@teambit/compiler": "0.0.883",
18
+ "@teambit/component": "0.0.883",
19
19
  "@teambit/pipelines.modules.merge-component-results": "0.0.491",
20
20
  "@teambit/cli": "0.0.591"
21
21
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.881/dist/multi-compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.881/dist/multi-compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.883/dist/multi-compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.883/dist/multi-compiler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];