@teambit/multi-compiler 0.0.1094 → 0.0.1096

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.
@@ -24,7 +24,7 @@ export declare class MultiCompiler implements Compiler {
24
24
  /**
25
25
  * the multi-compiler applies all applicable defined compilers on given content.
26
26
  */
27
- transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput;
27
+ transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput>;
28
28
  transpileComponent(params: TranspileComponentParams): Promise<void>;
29
29
  build(context: BuildContext): Promise<BuiltTaskResult>;
30
30
  preBuild(context: BuildContext): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- require("core-js/modules/es.array.flat-map.js");
4
+ require("core-js/modules/es.array.flat.js");
5
5
  require("core-js/modules/es.array.iterator.js");
6
- require("core-js/modules/es.array.unscopables.flat-map.js");
6
+ require("core-js/modules/es.array.unscopables.flat.js");
7
7
  require("core-js/modules/es.promise.js");
8
8
  Object.defineProperty(exports, "__esModule", {
9
9
  value: true
@@ -72,25 +72,30 @@ class MultiCompiler {
72
72
  /**
73
73
  * the multi-compiler applies all applicable defined compilers on given content.
74
74
  */
75
- transpileFile(fileContent, options) {
76
- const outputs = this.compilers.reduce((files, compiler) => {
75
+ async transpileFile(fileContent, options) {
76
+ const outputs = await this.compilers.reduce(async (files, compiler) => {
77
77
  if (!compiler.transpileFile) {
78
78
  return files;
79
79
  }
80
- return files === null || files === void 0 ? void 0 : files.flatMap(file => {
81
- var _compiler$transpileFi;
80
+ const filesToTranspile = await files;
81
+ if (!filesToTranspile) return null;
82
+ const flatMap = (await (0, _pMapSeries().default)(filesToTranspile, async file => {
82
83
  if (!compiler.isFileSupported(file === null || file === void 0 ? void 0 : file.outputPath)) return [file];
84
+ if (!compiler.transpileFile) return [];
83
85
  const params = Object.assign({}, options, {
84
86
  filePath: file.outputPath
85
87
  });
86
- const compiledContent = (_compiler$transpileFi = compiler.transpileFile) === null || _compiler$transpileFi === void 0 ? void 0 : _compiler$transpileFi.call(compiler, file.outputText, params);
87
- if (!compiledContent) return null;
88
- return compiledContent;
89
- });
90
- }, [{
88
+ const compiledContent = await compiler.transpileFile(file.outputText, params);
89
+ if (compiledContent) {
90
+ return compiledContent;
91
+ }
92
+ return [];
93
+ })).flat();
94
+ return flatMap;
95
+ }, Promise.resolve([{
91
96
  outputText: fileContent,
92
97
  outputPath: options.filePath
93
- }]);
98
+ }]));
94
99
  return outputs;
95
100
  }
96
101
  async transpileComponent(params) {
@@ -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;EAAA;IAAA;EAAA;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AASA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAOO,MAAMA,aAAa,CAAqB;EAS7CC,WAAW,CACAC,EAAU,EACVC,SAAqB,EACrBC,eAAyC,GAAG,CAAC,CAAC,EAC9CC,OAA6B,GAAG,CAAC,CAAC,EAC3C;IAAA,KAJSH,EAAU,GAAVA,EAAU;IAAA,KACVC,SAAqB,GAArBA,SAAqB;IAAA,KACrBC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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
+ {"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","filesToTranspile","flatMap","pMapSeries","file","isFileSupported","outputPath","params","filePath","compiledContent","outputText","flat","Promise","resolve","transpileComponent","all","build","context","builds","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 async transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput> {\n const outputs: TranspileFileOutput = await this.compilers.reduce<Promise<TranspileFileOutput>>(\n async (files: Promise<TranspileFileOutput>, compiler: Compiler) => {\n if (!compiler.transpileFile) {\n return files;\n }\n const filesToTranspile = await files;\n if (!filesToTranspile) return null;\n const flatMap = (\n await pMapSeries(filesToTranspile, async (file) => {\n if (!compiler.isFileSupported(file?.outputPath)) return [file];\n if (!compiler.transpileFile) return [];\n const params = Object.assign({}, options, {\n filePath: file.outputPath,\n });\n const compiledContent = await compiler.transpileFile(file.outputText, params);\n if (compiledContent) {\n return compiledContent;\n }\n return [];\n })\n ).flat();\n return flatMap;\n },\n Promise.resolve([{ outputText: fileContent, outputPath: options.filePath }] as TranspileFileOutput)\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;EAAA;AAAA;AACA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AASA;EAAA;EAAA;IAAA;EAAA;E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AAG,IAAI,CAACxD,SAAS,CAACqD,IAAI,CACxClC,QAAQ,IAAK,OAAOA,QAAQ,CAACmC,2BAA2B,KAAK,WAAW,CAC1E;IACD,IAAI,CAACE,eAAe,EAAE;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,IAAAnC,YAAI,EAAC,IAAI,CAAChB,OAAO,EAAEqD,OAAO,CAAC;IACpC;IAEA,OAAOF,eAAe,CAACC,oBAAoB,CAACC,OAAO,CAAC;EACtD;;EAEA;AACF;AACA;EACE3B,eAAe,CAACG,QAAgB,EAAW;IACzC,OAAO,CAAC,CAAC,IAAI,CAACkB,oBAAoB,CAAClB,QAAQ,CAAC;EAC9C;;EAEA;AACF;AACA;EACEyB,OAAO,GAAW;IAChB,OAAO,IAAI,CAAC3D,SAAS,CAClBkB,GAAG,CAAEC,QAAQ,IAAK;MACjB,OAAQ,GAAEA,QAAQ,CAACC,WAAY,IAAGD,QAAQ,CAACwC,OAAO,EAAG,EAAC;IACxD,CAAC,CAAC,CACDtC,IAAI,CAAC,IAAI,CAAC;EACf;AACF;AAAC"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.1094/dist/multi-compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.1094/dist/multi-compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.1096/dist/multi-compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@0.0.1096/dist/multi-compiler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@teambit/multi-compiler",
3
- "version": "0.0.1094",
3
+ "version": "0.0.1096",
4
4
  "homepage": "https://bit.cloud/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.1094"
9
+ "version": "0.0.1096"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
13
  "core-js": "^3.0.0",
14
14
  "@babel/runtime": "7.20.0",
15
15
  "@teambit/harmony": "0.4.6",
16
- "@teambit/builder": "0.0.1094",
17
- "@teambit/compiler": "0.0.1094",
18
- "@teambit/component": "0.0.1094",
16
+ "@teambit/builder": "0.0.1096",
17
+ "@teambit/compiler": "0.0.1096",
18
+ "@teambit/component": "0.0.1096",
19
19
  "@teambit/pipelines.modules.merge-component-results": "0.0.492",
20
- "@teambit/cli": "0.0.735"
20
+ "@teambit/cli": "0.0.736"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/react": "^17.0.8",
@@ -29,7 +29,7 @@
29
29
  "@teambit/compilation.aspect-docs.multi-compiler": "0.0.153"
30
30
  },
31
31
  "peerDependencies": {
32
- "@teambit/legacy": "1.0.516",
32
+ "@teambit/legacy": "1.0.517",
33
33
  "react": "^16.8.0 || ^17.0.0",
34
34
  "react-dom": "^16.8.0 || ^17.0.0"
35
35
  },