@teambit/compiler 1.0.928 → 1.0.929

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,5 +1,5 @@
1
1
  import type { Command, CommandOptions } from '@teambit/cli';
2
- import { Logger } from '@teambit/logger';
2
+ import type { Logger } from '@teambit/logger';
3
3
  import type { PubsubMain } from '@teambit/pubsub';
4
4
  import type { WorkspaceCompiler, CompileOptions, BuildResult } from './workspace-compiler';
5
5
  export declare class CompileCmd implements Command {
@@ -17,6 +17,7 @@ export declare class CompileCmd implements Command {
17
17
  alias: string;
18
18
  group: string;
19
19
  options: CommandOptions;
20
+ loader: boolean;
20
21
  constructor(compile: WorkspaceCompiler, logger: Logger, pubsub: PubsubMain);
21
22
  report([components]: [string[]], compilerOptions: CompileOptions): Promise<{
22
23
  data: string;
@@ -27,7 +28,6 @@ export declare class CompileCmd implements Command {
27
28
  code: number;
28
29
  }>;
29
30
  private failedComponents;
30
- private getSummaryIcon;
31
31
  private getExitCode;
32
- private getStatusLine;
32
+ private getSummaryLine;
33
33
  }
@@ -4,16 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CompileCmd = void 0;
7
- function _logger() {
8
- const data = require("@teambit/logger");
9
- _logger = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
- function _chalk() {
15
- const data = _interopRequireDefault(require("chalk"));
16
- _chalk = function () {
7
+ function _cli() {
8
+ const data = require("@teambit/cli");
9
+ _cli = function () {
17
10
  return data;
18
11
  };
19
12
  return data;
@@ -63,23 +56,21 @@ automatically triggered by "bit watch", "bit start", or IDE extensions, but can
63
56
  _defineProperty(this, "alias", '');
64
57
  _defineProperty(this, "group", 'component-development');
65
58
  _defineProperty(this, "options", [['c', 'changed', 'compile only new and modified components'], ['v', 'verbose', 'show more data, such as, dist paths'], ['j', 'json', 'return the compile results in json format'], ['d', 'delete-dist-dir', 'delete existing dist folder before writing new compiled files'], ['', 'generate-types', 'EXPERIMENTAL. generate d.ts files for typescript components (hurts performance)']]);
59
+ _defineProperty(this, "loader", true);
66
60
  }
67
61
  async report([components = []], compilerOptions) {
68
62
  const startTimestamp = process.hrtime();
69
- this.logger.setStatusLine('Compiling your components, hold tight.');
70
- let outputString = '';
63
+ this.logger.setStatusLine('compiling components...');
71
64
  const results = await this.compile.compileComponents(components, _objectSpread(_objectSpread({}, compilerOptions), {}, {
72
65
  initiator: _types().CompilationInitiator.CmdReport
73
66
  }));
74
67
  const compileTimeLength = process.hrtime(startTimestamp);
75
- outputString += '\n';
76
- outputString += ` ${_chalk().default.underline('STATUS')}\t${_chalk().default.underline('COMPONENT ID')}\n`;
77
- outputString += (0, _outputFormatter().formatCompileResults)(results, !!compilerOptions.verbose);
78
- outputString += '\n';
79
- outputString += this.getStatusLine(results, compileTimeLength);
68
+ const compiledOutput = (0, _outputFormatter().formatCompileResults)(results, !!compilerOptions.verbose);
69
+ const summaryLine = this.getSummaryLine(results);
70
+ const timingLine = (0, _cli().formatHint)(`Finished. (${(0, _prettyTime().default)(compileTimeLength)})`);
80
71
  this.logger.clearStatusLine();
81
72
  return {
82
- data: outputString,
73
+ data: (0, _cli().joinSections)([compiledOutput, `${summaryLine}\n${timingLine}`]),
83
74
  code: this.getExitCode(results)
84
75
  };
85
76
  }
@@ -97,26 +88,17 @@ automatically triggered by "bit watch", "bit start", or IDE extensions, but can
97
88
  failedComponents(componentsStatus) {
98
89
  return componentsStatus.filter(component => component.errors.length);
99
90
  }
100
- getSummaryIcon(componentsStatus) {
101
- switch (this.failedComponents(componentsStatus).length) {
102
- case 0:
103
- return _logger().Logger.successSymbol();
104
- case componentsStatus.length:
105
- return _chalk().default.red('✗');
106
- default:
107
- return _chalk().default.yellow('⍻');
108
- }
109
- }
110
91
  getExitCode(componentsStatus) {
111
92
  return this.failedComponents(componentsStatus).length ? 1 : 0;
112
93
  }
113
- getStatusLine(componentsStatus, compileTimeLength) {
94
+ getSummaryLine(componentsStatus) {
114
95
  const numberOfComponents = componentsStatus.length;
115
96
  const numberOfFailingComponents = this.failedComponents(componentsStatus).length;
116
97
  const numberOfSuccessfulComponents = componentsStatus.filter(component => !component.errors.length).length;
117
- const icon = this.getSummaryIcon(componentsStatus);
118
- const summaryLine = numberOfFailingComponents ? `${icon} ${numberOfFailingComponents}/${numberOfComponents} components failed to compile.` : `${icon} ${numberOfSuccessfulComponents}/${numberOfComponents} components compiled successfully.`;
119
- return `${summaryLine}\nFinished. (${(0, _prettyTime().default)(compileTimeLength)})`;
98
+ if (numberOfFailingComponents) {
99
+ return (0, _cli().formatWarningSummary)(`${numberOfFailingComponents}/${numberOfComponents} components failed to compile.`);
100
+ }
101
+ return (0, _cli().formatSuccessSummary)(`${numberOfSuccessfulComponents}/${numberOfComponents} components compiled successfully.`);
120
102
  }
121
103
  }
122
104
  exports.CompileCmd = CompileCmd;
@@ -1 +1 @@
1
- {"version":3,"names":["_logger","data","require","_chalk","_interopRequireDefault","_prettyTime","_outputFormatter","_types","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompileCmd","constructor","compile","logger","pubsub","name","description","report","components","compilerOptions","startTimestamp","process","hrtime","setStatusLine","outputString","results","compileComponents","initiator","CompilationInitiator","CmdReport","compileTimeLength","chalk","underline","formatCompileResults","verbose","getStatusLine","clearStatusLine","code","getExitCode","json","deleteDistDir","compileResults","CmdJson","failedComponents","componentsStatus","component","errors","getSummaryIcon","Logger","successSymbol","red","yellow","numberOfComponents","numberOfFailingComponents","numberOfSuccessfulComponents","icon","summaryLine","prettyTime","exports"],"sources":["compiler.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport { Logger } from '@teambit/logger';\nimport type { PubsubMain } from '@teambit/pubsub';\nimport chalk from 'chalk';\nimport prettyTime from 'pretty-time';\nimport { formatCompileResults } from './output-formatter';\nimport type { WorkspaceCompiler, CompileOptions, BuildResult } from './workspace-compiler';\nimport { CompilationInitiator } from './types';\n\nexport class CompileCmd implements Command {\n name = 'compile [component-names...]';\n description = 'transpile component source files';\n extendedDescription = `compiles TypeScript, JSX, and other source files into JavaScript using the compiler configured by each component's environment.\noutputs compiled files to node_modules/component-package-name/dist for consumption by other components.\nautomatically triggered by \"bit watch\", \"bit start\", or IDE extensions, but can be run manually for debugging.`;\n helpUrl = 'reference/compiling/compiler-overview';\n arguments = [\n {\n name: 'component-names...',\n description: 'a list of component names or component IDs (defaults to all components)',\n },\n ];\n alias = '';\n group = 'component-development';\n options = [\n ['c', 'changed', 'compile only new and modified components'],\n ['v', 'verbose', 'show more data, such as, dist paths'],\n ['j', 'json', 'return the compile results in json format'],\n ['d', 'delete-dist-dir', 'delete existing dist folder before writing new compiled files'],\n ['', 'generate-types', 'EXPERIMENTAL. generate d.ts files for typescript components (hurts performance)'],\n ] as CommandOptions;\n\n constructor(\n private compile: WorkspaceCompiler,\n private logger: Logger,\n private pubsub: PubsubMain\n ) {}\n\n async report([components = []]: [string[]], compilerOptions: CompileOptions) {\n const startTimestamp = process.hrtime();\n this.logger.setStatusLine('Compiling your components, hold tight.');\n\n let outputString = '';\n const results = await this.compile.compileComponents(components, {\n ...compilerOptions,\n initiator: CompilationInitiator.CmdReport,\n });\n const compileTimeLength = process.hrtime(startTimestamp);\n\n outputString += '\\n';\n outputString += ` ${chalk.underline('STATUS')}\\t${chalk.underline('COMPONENT ID')}\\n`;\n outputString += formatCompileResults(results, !!compilerOptions.verbose);\n outputString += '\\n';\n\n outputString += this.getStatusLine(results, compileTimeLength);\n\n this.logger.clearStatusLine();\n\n return {\n data: outputString,\n code: this.getExitCode(results),\n };\n }\n\n async json([components]: [string[]], compilerOptions: CompileOptions) {\n compilerOptions.deleteDistDir = true;\n const compileResults = await this.compile.compileComponents(components, {\n ...compilerOptions,\n initiator: CompilationInitiator.CmdJson,\n });\n return {\n data: compileResults,\n // @todo: fix the code once compile is ready.\n code: 0,\n };\n }\n\n private failedComponents(componentsStatus: BuildResult[]): BuildResult[] {\n return componentsStatus.filter((component) => component.errors.length);\n }\n\n private getSummaryIcon(componentsStatus: BuildResult[]) {\n switch (this.failedComponents(componentsStatus).length) {\n case 0:\n return Logger.successSymbol();\n case componentsStatus.length:\n return chalk.red('✗');\n default:\n return chalk.yellow('⍻');\n }\n }\n\n private getExitCode(componentsStatus: BuildResult[]) {\n return this.failedComponents(componentsStatus).length ? 1 : 0;\n }\n\n private getStatusLine(componentsStatus: BuildResult[], compileTimeLength) {\n const numberOfComponents = componentsStatus.length;\n const numberOfFailingComponents = this.failedComponents(componentsStatus).length;\n const numberOfSuccessfulComponents = componentsStatus.filter((component) => !component.errors.length).length;\n\n const icon = this.getSummaryIcon(componentsStatus);\n const summaryLine = numberOfFailingComponents\n ? `${icon} ${numberOfFailingComponents}/${numberOfComponents} components failed to compile.`\n : `${icon} ${numberOfSuccessfulComponents}/${numberOfComponents} components compiled successfully.`;\n\n return `${summaryLine}\\nFinished. (${prettyTime(compileTimeLength)})`;\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,QAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,OAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,YAAA;EAAA,MAAAJ,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAG,WAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,iBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA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gBAAgB,CAAC3D,MAAM,CAAE4D,SAAS,IAAK,CAACA,SAAS,CAACC,MAAM,CAACtD,MAAM,CAAC,CAACA,MAAM;IAE5G,MAAM+D,IAAI,GAAG,IAAI,CAACR,cAAc,CAACH,gBAAgB,CAAC;IAClD,MAAMY,WAAW,GAAGH,yBAAyB,GACzC,GAAGE,IAAI,IAAIF,yBAAyB,IAAID,kBAAkB,gCAAgC,GAC1F,GAAGG,IAAI,IAAID,4BAA4B,IAAIF,kBAAkB,oCAAoC;IAErG,OAAO,GAAGI,WAAW,gBAAgB,IAAAC,qBAAU,EAAC3B,iBAAiB,CAAC,GAAG;EACvE;AACF;AAAC4B,OAAA,CAAAhD,UAAA,GAAAA,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","_prettyTime","_interopRequireDefault","_outputFormatter","_types","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","CompileCmd","constructor","compile","logger","pubsub","name","description","report","components","compilerOptions","startTimestamp","process","hrtime","setStatusLine","results","compileComponents","initiator","CompilationInitiator","CmdReport","compileTimeLength","compiledOutput","formatCompileResults","verbose","summaryLine","getSummaryLine","timingLine","formatHint","prettyTime","clearStatusLine","joinSections","code","getExitCode","json","deleteDistDir","compileResults","CmdJson","failedComponents","componentsStatus","component","errors","numberOfComponents","numberOfFailingComponents","numberOfSuccessfulComponents","formatWarningSummary","formatSuccessSummary","exports"],"sources":["compiler.cmd.ts"],"sourcesContent":["import type { Command, CommandOptions } from '@teambit/cli';\nimport { formatSuccessSummary, formatWarningSummary, formatHint, joinSections } from '@teambit/cli';\nimport type { Logger } from '@teambit/logger';\nimport type { PubsubMain } from '@teambit/pubsub';\nimport prettyTime from 'pretty-time';\nimport { formatCompileResults } from './output-formatter';\nimport type { WorkspaceCompiler, CompileOptions, BuildResult } from './workspace-compiler';\nimport { CompilationInitiator } from './types';\n\nexport class CompileCmd implements Command {\n name = 'compile [component-names...]';\n description = 'transpile component source files';\n extendedDescription = `compiles TypeScript, JSX, and other source files into JavaScript using the compiler configured by each component's environment.\noutputs compiled files to node_modules/component-package-name/dist for consumption by other components.\nautomatically triggered by \"bit watch\", \"bit start\", or IDE extensions, but can be run manually for debugging.`;\n helpUrl = 'reference/compiling/compiler-overview';\n arguments = [\n {\n name: 'component-names...',\n description: 'a list of component names or component IDs (defaults to all components)',\n },\n ];\n alias = '';\n group = 'component-development';\n options = [\n ['c', 'changed', 'compile only new and modified components'],\n ['v', 'verbose', 'show more data, such as, dist paths'],\n ['j', 'json', 'return the compile results in json format'],\n ['d', 'delete-dist-dir', 'delete existing dist folder before writing new compiled files'],\n ['', 'generate-types', 'EXPERIMENTAL. generate d.ts files for typescript components (hurts performance)'],\n ] as CommandOptions;\n loader = true;\n\n constructor(\n private compile: WorkspaceCompiler,\n private logger: Logger,\n private pubsub: PubsubMain\n ) {}\n\n async report([components = []]: [string[]], compilerOptions: CompileOptions) {\n const startTimestamp = process.hrtime();\n this.logger.setStatusLine('compiling components...');\n\n const results = await this.compile.compileComponents(components, {\n ...compilerOptions,\n initiator: CompilationInitiator.CmdReport,\n });\n const compileTimeLength = process.hrtime(startTimestamp);\n\n const compiledOutput = formatCompileResults(results, !!compilerOptions.verbose);\n const summaryLine = this.getSummaryLine(results);\n const timingLine = formatHint(`Finished. (${prettyTime(compileTimeLength)})`);\n\n this.logger.clearStatusLine();\n\n return {\n data: joinSections([compiledOutput, `${summaryLine}\\n${timingLine}`]),\n code: this.getExitCode(results),\n };\n }\n\n async json([components]: [string[]], compilerOptions: CompileOptions) {\n compilerOptions.deleteDistDir = true;\n const compileResults = await this.compile.compileComponents(components, {\n ...compilerOptions,\n initiator: CompilationInitiator.CmdJson,\n });\n return {\n data: compileResults,\n // @todo: fix the code once compile is ready.\n code: 0,\n };\n }\n\n private failedComponents(componentsStatus: BuildResult[]): BuildResult[] {\n return componentsStatus.filter((component) => component.errors.length);\n }\n\n private getExitCode(componentsStatus: BuildResult[]) {\n return this.failedComponents(componentsStatus).length ? 1 : 0;\n }\n\n private getSummaryLine(componentsStatus: BuildResult[]) {\n const numberOfComponents = componentsStatus.length;\n const numberOfFailingComponents = this.failedComponents(componentsStatus).length;\n const numberOfSuccessfulComponents = componentsStatus.filter((component) => !component.errors.length).length;\n\n if (numberOfFailingComponents) {\n return formatWarningSummary(`${numberOfFailingComponents}/${numberOfComponents} components failed to compile.`);\n }\n return formatSuccessSummary(\n `${numberOfSuccessfulComponents}/${numberOfComponents} components compiled successfully.`\n );\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,iBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,gBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,OAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,MAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA+C,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,QAAAH,CAAA,EAAAI,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAP,CAAA,OAAAM,MAAA,CAAAE,qBAAA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AACC,gBAA+B,EAAiB;IACvE,OAAOA,gBAAgB,CAAC9D,MAAM,CAAE+D,SAAS,IAAKA,SAAS,CAACC,MAAM,CAACzD,MAAM,CAAC;EACxE;EAEQiD,WAAWA,CAACM,gBAA+B,EAAE;IACnD,OAAO,IAAI,CAACD,gBAAgB,CAACC,gBAAgB,CAAC,CAACvD,MAAM,GAAG,CAAC,GAAG,CAAC;EAC/D;EAEQ0C,cAAcA,CAACa,gBAA+B,EAAE;IACtD,MAAMG,kBAAkB,GAAGH,gBAAgB,CAACvD,MAAM;IAClD,MAAM2D,yBAAyB,GAAG,IAAI,CAACL,gBAAgB,CAACC,gBAAgB,CAAC,CAACvD,MAAM;IAChF,MAAM4D,4BAA4B,GAAGL,gBAAgB,CAAC9D,MAAM,CAAE+D,SAAS,IAAK,CAACA,SAAS,CAACC,MAAM,CAACzD,MAAM,CAAC,CAACA,MAAM;IAE5G,IAAI2D,yBAAyB,EAAE;MAC7B,OAAO,IAAAE,2BAAoB,EAAC,GAAGF,yBAAyB,IAAID,kBAAkB,gCAAgC,CAAC;IACjH;IACA,OAAO,IAAAI,2BAAoB,EACzB,GAAGF,4BAA4B,IAAIF,kBAAkB,oCACvD,CAAC;EACH;AACF;AAACK,OAAA,CAAA7C,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -4,35 +4,26 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.formatCompileResults = void 0;
7
- function _chalk() {
8
- const data = _interopRequireDefault(require("chalk"));
9
- _chalk = function () {
7
+ function _cli() {
8
+ const data = require("@teambit/cli");
9
+ _cli = function () {
10
10
  return data;
11
11
  };
12
12
  return data;
13
13
  }
14
- function _logger() {
15
- const data = require("@teambit/logger");
16
- _logger = function () {
17
- return data;
18
- };
19
- return data;
20
- }
21
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
22
- const formatCompileResults = (compileResults, verbose) => compileResults.map(componentResult => ({
23
- componentId: componentResult.component,
24
- files: componentResult.buildResults,
25
- status: componentResult.errors.length ? 'FAILURE' : 'SUCCESS',
26
- icon: componentResult.errors.length ? _chalk().default.red('✗') : _logger().Logger.successSymbol()
27
- })).reduce((outputString, result) => {
28
- outputString += `${result.icon} ${result.status}\t${result.componentId}`;
29
- if (verbose) {
30
- outputString += ':';
31
- outputString += result?.files?.reduce((fileList, file) => `${fileList}\t\t - ${file}\n`, '\n');
32
- }
33
- outputString += '\n';
34
- return outputString;
35
- }, '');
14
+ const formatCompileResults = (compileResults, verbose) => {
15
+ const lines = compileResults.filter(result => verbose || result.errors.length > 0).map(componentResult => {
16
+ const failed = componentResult.errors.length > 0;
17
+ const symbol = failed ? _cli().errorSymbol : undefined;
18
+ const suffix = failed ? ' ... failed' : '';
19
+ let line = (0, _cli().formatItem)(`${componentResult.component}${suffix}`, symbol);
20
+ if (verbose && componentResult.buildResults?.length) {
21
+ line += '\n' + componentResult.buildResults.map(file => `\t\t - ${file}`).join('\n');
22
+ }
23
+ return line;
24
+ });
25
+ return lines.join(verbose ? '\n\n' : '\n');
26
+ };
36
27
  exports.formatCompileResults = formatCompileResults;
37
28
 
38
29
  //# sourceMappingURL=output-formatter.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_logger","e","__esModule","default","formatCompileResults","compileResults","verbose","map","componentResult","componentId","component","files","buildResults","status","errors","length","icon","chalk","red","Logger","successSymbol","reduce","outputString","result","fileList","file","exports"],"sources":["output-formatter.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { Logger } from '@teambit/logger';\nimport type { BuildResult } from './workspace-compiler';\n\nexport const formatCompileResults = (compileResults: BuildResult[], verbose: boolean) =>\n compileResults\n .map((componentResult: BuildResult) => ({\n componentId: componentResult.component,\n files: componentResult.buildResults,\n status: componentResult.errors.length ? 'FAILURE' : 'SUCCESS',\n icon: componentResult.errors.length ? chalk.red('') : Logger.successSymbol(),\n }))\n .reduce((outputString, result) => {\n outputString += `${result.icon} ${result.status}\\t${result.componentId}`;\n if (verbose) {\n outputString += ':';\n outputString += result?.files?.reduce((fileList, file) => `${fileList}\\t\\t - ${file}\\n`, '\\n');\n }\n outputString += '\\n';\n return outputString;\n }, '');\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAyC,SAAAC,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGlC,MAAMG,oBAAoB,GAAGA,CAACC,cAA6B,EAAEC,OAAgB,KAClFD,cAAc,CACXE,GAAG,CAAEC,eAA4B,KAAM;EACtCC,WAAW,EAAED,eAAe,CAACE,SAAS;EACtCC,KAAK,EAAEH,eAAe,CAACI,YAAY;EACnCC,MAAM,EAAEL,eAAe,CAACM,MAAM,CAACC,MAAM,GAAG,SAAS,GAAG,SAAS;EAC7DC,IAAI,EAAER,eAAe,CAACM,MAAM,CAACC,MAAM,GAAGE,gBAAK,CAACC,GAAG,CAAC,GAAG,CAAC,GAAGC,gBAAM,CAACC,aAAa,CAAC;AAC9E,CAAC,CAAC,CAAC,CACFC,MAAM,CAAC,CAACC,YAAY,EAAEC,MAAM,KAAK;EAChCD,YAAY,IAAI,GAAGC,MAAM,CAACP,IAAI,IAAIO,MAAM,CAACV,MAAM,KAAKU,MAAM,CAACd,WAAW,EAAE;EACxE,IAAIH,OAAO,EAAE;IACXgB,YAAY,IAAI,GAAG;IACnBA,YAAY,IAAIC,MAAM,EAAEZ,KAAK,EAAEU,MAAM,CAAC,CAACG,QAAQ,EAAEC,IAAI,KAAK,GAAGD,QAAQ,UAAUC,IAAI,IAAI,EAAE,IAAI,CAAC;EAChG;EACAH,YAAY,IAAI,IAAI;EACpB,OAAOA,YAAY;AACrB,CAAC,EAAE,EAAE,CAAC;AAACI,OAAA,CAAAtB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_cli","data","require","formatCompileResults","compileResults","verbose","lines","filter","result","errors","length","map","componentResult","failed","symbol","errorSymbol","undefined","suffix","line","formatItem","component","buildResults","file","join","exports"],"sources":["output-formatter.ts"],"sourcesContent":["import { errorSymbol, formatItem } from '@teambit/cli';\nimport type { BuildResult } from './workspace-compiler';\n\nexport const formatCompileResults = (compileResults: BuildResult[], verbose: boolean) => {\n const lines = compileResults\n .filter((result) => verbose || result.errors.length > 0)\n .map((componentResult: BuildResult) => {\n const failed = componentResult.errors.length > 0;\n const symbol = failed ? errorSymbol : undefined;\n const suffix = failed ? ' ... failed' : '';\n let line = formatItem(`${componentResult.component}${suffix}`, symbol);\n if (verbose && componentResult.buildResults?.length) {\n line += '\\n' + componentResult.buildResults.map((file) => `\\t\\t - ${file}`).join('\\n');\n }\n return line;\n });\n return lines.join(verbose ? '\\n\\n' : '\\n');\n};\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGO,MAAME,oBAAoB,GAAGA,CAACC,cAA6B,EAAEC,OAAgB,KAAK;EACvF,MAAMC,KAAK,GAAGF,cAAc,CACzBG,MAAM,CAAEC,MAAM,IAAKH,OAAO,IAAIG,MAAM,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CACvDC,GAAG,CAAEC,eAA4B,IAAK;IACrC,MAAMC,MAAM,GAAGD,eAAe,CAACH,MAAM,CAACC,MAAM,GAAG,CAAC;IAChD,MAAMI,MAAM,GAAGD,MAAM,GAAGE,kBAAW,GAAGC,SAAS;IAC/C,MAAMC,MAAM,GAAGJ,MAAM,GAAG,aAAa,GAAG,EAAE;IAC1C,IAAIK,IAAI,GAAG,IAAAC,iBAAU,EAAC,GAAGP,eAAe,CAACQ,SAAS,GAAGH,MAAM,EAAE,EAAEH,MAAM,CAAC;IACtE,IAAIT,OAAO,IAAIO,eAAe,CAACS,YAAY,EAAEX,MAAM,EAAE;MACnDQ,IAAI,IAAI,IAAI,GAAGN,eAAe,CAACS,YAAY,CAACV,GAAG,CAAEW,IAAI,IAAK,UAAUA,IAAI,EAAE,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;IACxF;IACA,OAAOL,IAAI;EACb,CAAC,CAAC;EACJ,OAAOZ,KAAK,CAACiB,IAAI,CAAClB,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC;AAC5C,CAAC;AAACmB,OAAA,CAAArB,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.928/dist/compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.928/dist/compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.929/dist/compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_compiler@1.0.929/dist/compiler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,24 +1,22 @@
1
1
  {
2
2
  "name": "@teambit/compiler",
3
- "version": "1.0.928",
3
+ "version": "1.0.929",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "compiler",
9
- "version": "1.0.928"
9
+ "version": "1.0.929"
10
10
  },
11
11
  "dependencies": {
12
- "chalk": "4.1.2",
13
12
  "pretty-time": "1.1.0",
14
13
  "fs-extra": "10.0.0",
14
+ "chalk": "4.1.2",
15
15
  "cli-highlight": "2.1.9",
16
16
  "globby": "11.0.1",
17
17
  "lodash": "4.17.21",
18
18
  "p-map-series": "2.1.0",
19
19
  "@teambit/harmony": "0.4.7",
20
- "@teambit/cli": "0.0.1307",
21
- "@teambit/logger": "0.0.1400",
22
20
  "@teambit/component-id": "1.2.4",
23
21
  "@teambit/component-issues": "0.0.171",
24
22
  "@teambit/legacy.constants": "0.0.24",
@@ -29,21 +27,23 @@
29
27
  "@teambit/workspace.modules.node-modules-linker": "0.0.333",
30
28
  "@teambit/workspace.root-components": "1.0.1",
31
29
  "@teambit/bit-error": "0.0.404",
32
- "@teambit/envs": "1.0.928",
33
- "@teambit/pubsub": "1.0.928",
34
- "@teambit/aspect-loader": "1.0.928",
35
- "@teambit/builder": "1.0.928",
36
- "@teambit/bundler": "1.0.928",
37
- "@teambit/component": "1.0.928",
38
- "@teambit/dependency-resolver": "1.0.928",
39
- "@teambit/generator": "1.0.929",
40
- "@teambit/issues": "1.0.928",
41
- "@teambit/ui": "1.0.928",
42
- "@teambit/watcher": "1.0.928",
43
- "@teambit/workspace": "1.0.928",
44
- "@teambit/isolator": "1.0.928",
45
- "@teambit/graph": "1.0.928",
46
- "@teambit/multi-compiler": "1.0.928"
30
+ "@teambit/envs": "1.0.929",
31
+ "@teambit/cli": "0.0.1308",
32
+ "@teambit/logger": "0.0.1401",
33
+ "@teambit/pubsub": "1.0.929",
34
+ "@teambit/aspect-loader": "1.0.929",
35
+ "@teambit/builder": "1.0.929",
36
+ "@teambit/bundler": "1.0.929",
37
+ "@teambit/component": "1.0.929",
38
+ "@teambit/dependency-resolver": "1.0.929",
39
+ "@teambit/generator": "1.0.930",
40
+ "@teambit/issues": "1.0.929",
41
+ "@teambit/ui": "1.0.929",
42
+ "@teambit/watcher": "1.0.929",
43
+ "@teambit/workspace": "1.0.929",
44
+ "@teambit/isolator": "1.0.929",
45
+ "@teambit/graph": "1.0.929",
46
+ "@teambit/multi-compiler": "1.0.929"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/pretty-time": "^1.1.5",