@teambit/builder 0.0.752 → 0.0.755

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.
@@ -17,9 +17,8 @@ export type ArtifactsOpts = {
17
17
 
18
18
  export class ArtifactsCmd implements Command {
19
19
  name = 'artifacts <pattern...>';
20
- shortDescription = 'EXPERIMENTAL. list and download components artifacts';
21
- description = `EXPERIMENTAL. list and download components artifacts.
22
- artifacts are created on isolated capsules during tag or snap commands.
20
+ description = 'EXPERIMENTAL. list and download components artifacts';
21
+ extendedDescription = `artifacts are created on isolated capsules during tag or snap commands.
23
22
  example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
24
23
  and a package.tgz file generated by pkg aspect.
25
24
  `;
@@ -11,8 +11,8 @@ export declare class ArtifactsCmd implements Command {
11
11
  private builder;
12
12
  private scope;
13
13
  name: string;
14
- shortDescription: string;
15
14
  description: string;
15
+ extendedDescription: string;
16
16
  alias: string;
17
17
  group: string;
18
18
  options: CommandOptions;
@@ -50,9 +50,8 @@ class ArtifactsCmd {
50
50
  this.builder = builder;
51
51
  this.scope = scope;
52
52
  (0, _defineProperty2().default)(this, "name", 'artifacts <pattern...>');
53
- (0, _defineProperty2().default)(this, "shortDescription", 'EXPERIMENTAL. list and download components artifacts');
54
- (0, _defineProperty2().default)(this, "description", `EXPERIMENTAL. list and download components artifacts.
55
- artifacts are created on isolated capsules during tag or snap commands.
53
+ (0, _defineProperty2().default)(this, "description", 'EXPERIMENTAL. list and download components artifacts');
54
+ (0, _defineProperty2().default)(this, "extendedDescription", `artifacts are created on isolated capsules during tag or snap commands.
56
55
  example of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester
57
56
  and a package.tgz file generated by pkg aspect.
58
57
  `);
@@ -1 +1 @@
1
- {"version":3,"names":["INDENT_TITLE","repeat","INDENT_SUB_TITLE","INDENT_FILES","ArtifactsCmd","constructor","builder","scope","report","userPattern","artifactsOpts","artifactExtractor","ArtifactExtractor","list","grouped","groupResultsByAspect","outputArtifacts","aspectId","artifactData","title","chalk","green","artifactDataStr","map","artifact","subTitle","white","taskName","files","f","dim","join","outputResult","result","idStr","cyan","id","toString","artifacts","Object","keys","footer","outDir"],"sources":["artifacts.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ScopeMain } from '@teambit/scope';\nimport { BuilderMain } from '../builder.main.runtime';\nimport { ArtifactExtractor, ExtractorArtifactResult, ExtractorResultGrouped } from './artifact-extractor';\n\nconst INDENT_TITLE = ' '.repeat(2);\nconst INDENT_SUB_TITLE = ' '.repeat(4);\nconst INDENT_FILES = ' '.repeat(6);\n\nexport type ArtifactsOpts = {\n aspect?: string;\n task?: string;\n files?: string;\n outDir?: string;\n};\n\nexport class ArtifactsCmd implements Command {\n name = 'artifacts <pattern...>';\n shortDescription = 'EXPERIMENTAL. list and download components artifacts';\n description = `EXPERIMENTAL. list and download components artifacts.\nartifacts are created on isolated capsules during tag or snap commands.\nexample of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester\nand a package.tgz file generated by pkg aspect.\n`;\n alias = '';\n group = 'development';\n options = [\n ['', 'aspect <aspect-id>', 'show/download only artifacts generated by this aspect-id'],\n ['', 'task <task-id>', 'show/download only artifacts generated by this task-id'],\n [\n '',\n 'files <glob>',\n 'show/download only artifacts matching the given files or the glob pattern (wrap glob patterns in quotes)',\n ],\n ['', 'out-dir <string>', 'download the files to the specified dir'],\n ] as CommandOptions;\n\n constructor(private builder: BuilderMain, private scope: ScopeMain) {}\n\n async report([userPattern]: [string[]], artifactsOpts: ArtifactsOpts): Promise<string> {\n const artifactExtractor = new ArtifactExtractor(this.scope, this.builder, userPattern, artifactsOpts);\n const list = await artifactExtractor.list();\n const grouped = artifactExtractor.groupResultsByAspect(list);\n const outputArtifacts = (aspectId: string, artifactData: ExtractorArtifactResult[]) => {\n const title = chalk.green(aspectId);\n const artifactDataStr = artifactData\n .map((artifact) => {\n const subTitle = chalk.white(artifact.taskName);\n const files = artifact.files.map((f) => INDENT_FILES + chalk.dim(f)).join('\\n');\n return `${INDENT_SUB_TITLE}${subTitle}\\n${files}`;\n })\n .join('\\n');\n return `${INDENT_TITLE}${title}\\n${artifactDataStr}`;\n };\n const outputResult = (result: ExtractorResultGrouped) => {\n const idStr = chalk.cyan(result.id.toString());\n const artifacts = Object.keys(result.artifacts)\n .map((aspectId) => outputArtifacts(aspectId, result.artifacts[aspectId]))\n .join('\\n\\n');\n return `${idStr}\\n${artifacts}`;\n };\n const footer = artifactsOpts.outDir\n ? chalk.green('\\n\\nThe above files were saved successfully to the file system')\n : '';\n return grouped.map(outputResult).join('\\n\\n') + footer;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA,MAAMA,YAAY,GAAG,IAAIC,MAAJ,CAAW,CAAX,CAArB;AACA,MAAMC,gBAAgB,GAAG,IAAID,MAAJ,CAAW,CAAX,CAAzB;AACA,MAAME,YAAY,GAAG,IAAIF,MAAJ,CAAW,CAAX,CAArB;;AASO,MAAMG,YAAN,CAAsC;EAqB3CC,WAAW,CAASC,OAAT,EAAuCC,KAAvC,EAAyD;IAAA,KAAhDD,OAAgD,GAAhDA,OAAgD;IAAA,KAAlBC,KAAkB,GAAlBA,KAAkB;IAAA,8CApB7D,wBAoB6D;IAAA,0DAnBjD,sDAmBiD;IAAA,qDAlBrD;AACjB;AACA;AACA;AACA,CAcsE;IAAA,+CAb5D,EAa4D;IAAA,+CAZ5D,aAY4D;IAAA,iDAX1D,CACR,CAAC,EAAD,EAAK,oBAAL,EAA2B,0DAA3B,CADQ,EAER,CAAC,EAAD,EAAK,gBAAL,EAAuB,wDAAvB,CAFQ,EAGR,CACE,EADF,EAEE,cAFF,EAGE,0GAHF,CAHQ,EAQR,CAAC,EAAD,EAAK,kBAAL,EAAyB,y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ACC,QAAD,EAAWgB,MAAM,CAACK,SAAP,CAAiBrB,QAAjB,CAAX,CADlB,EAEfc,IAFe,CAEV,MAFU,CAAlB;MAGA,OAAQ,GAAEG,KAAM,KAAII,SAAU,EAA9B;IACD,CAND;;IAOA,MAAMG,MAAM,GAAG/B,aAAa,CAACgC,MAAd,GACXtB,gBAAA,CAAMC,KAAN,CAAY,gEAAZ,CADW,GAEX,EAFJ;IAGA,OAAOP,OAAO,CAACS,GAAR,CAAYS,YAAZ,EAA0BD,IAA1B,CAA+B,MAA/B,IAAyCU,MAAhD;EACD;;AAjD0C"}
1
+ {"version":3,"names":["INDENT_TITLE","repeat","INDENT_SUB_TITLE","INDENT_FILES","ArtifactsCmd","constructor","builder","scope","report","userPattern","artifactsOpts","artifactExtractor","ArtifactExtractor","list","grouped","groupResultsByAspect","outputArtifacts","aspectId","artifactData","title","chalk","green","artifactDataStr","map","artifact","subTitle","white","taskName","files","f","dim","join","outputResult","result","idStr","cyan","id","toString","artifacts","Object","keys","footer","outDir"],"sources":["artifacts.cmd.ts"],"sourcesContent":["import { Command, CommandOptions } from '@teambit/cli';\nimport chalk from 'chalk';\nimport { ScopeMain } from '@teambit/scope';\nimport { BuilderMain } from '../builder.main.runtime';\nimport { ArtifactExtractor, ExtractorArtifactResult, ExtractorResultGrouped } from './artifact-extractor';\n\nconst INDENT_TITLE = ' '.repeat(2);\nconst INDENT_SUB_TITLE = ' '.repeat(4);\nconst INDENT_FILES = ' '.repeat(6);\n\nexport type ArtifactsOpts = {\n aspect?: string;\n task?: string;\n files?: string;\n outDir?: string;\n};\n\nexport class ArtifactsCmd implements Command {\n name = 'artifacts <pattern...>';\n description = 'EXPERIMENTAL. list and download components artifacts';\n extendedDescription = `artifacts are created on isolated capsules during tag or snap commands.\nexample of artifacts are dists files generated by a compiler, a JUnit.xml file generated by a tester\nand a package.tgz file generated by pkg aspect.\n`;\n alias = '';\n group = 'development';\n options = [\n ['', 'aspect <aspect-id>', 'show/download only artifacts generated by this aspect-id'],\n ['', 'task <task-id>', 'show/download only artifacts generated by this task-id'],\n [\n '',\n 'files <glob>',\n 'show/download only artifacts matching the given files or the glob pattern (wrap glob patterns in quotes)',\n ],\n ['', 'out-dir <string>', 'download the files to the specified dir'],\n ] as CommandOptions;\n\n constructor(private builder: BuilderMain, private scope: ScopeMain) {}\n\n async report([userPattern]: [string[]], artifactsOpts: ArtifactsOpts): Promise<string> {\n const artifactExtractor = new ArtifactExtractor(this.scope, this.builder, userPattern, artifactsOpts);\n const list = await artifactExtractor.list();\n const grouped = artifactExtractor.groupResultsByAspect(list);\n const outputArtifacts = (aspectId: string, artifactData: ExtractorArtifactResult[]) => {\n const title = chalk.green(aspectId);\n const artifactDataStr = artifactData\n .map((artifact) => {\n const subTitle = chalk.white(artifact.taskName);\n const files = artifact.files.map((f) => INDENT_FILES + chalk.dim(f)).join('\\n');\n return `${INDENT_SUB_TITLE}${subTitle}\\n${files}`;\n })\n .join('\\n');\n return `${INDENT_TITLE}${title}\\n${artifactDataStr}`;\n };\n const outputResult = (result: ExtractorResultGrouped) => {\n const idStr = chalk.cyan(result.id.toString());\n const artifacts = Object.keys(result.artifacts)\n .map((aspectId) => outputArtifacts(aspectId, result.artifacts[aspectId]))\n .join('\\n\\n');\n return `${idStr}\\n${artifacts}`;\n };\n const footer = artifactsOpts.outDir\n ? chalk.green('\\n\\nThe above files were saved successfully to the file system')\n : '';\n return grouped.map(outputResult).join('\\n\\n') + footer;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA,MAAMA,YAAY,GAAG,IAAIC,MAAJ,CAAW,CAAX,CAArB;AACA,MAAMC,gBAAgB,GAAG,IAAID,MAAJ,CAAW,CAAX,CAAzB;AACA,MAAME,YAAY,GAAG,IAAIF,MAAJ,CAAW,CAAX,CAArB;;AASO,MAAMG,YAAN,CAAsC;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AAuDE,IAAvD,CAA4D,IAA5D,CAAd;QACA,OAAQ,GAAE7B,gBAAiB,GAAEuB,QAAS,KAAIG,KAAM,EAAhD;MACD,CALqB,EAMrBG,IANqB,CAMhB,IANgB,CAAxB;MAOA,OAAQ,GAAE/B,YAAa,GAAEmB,KAAM,KAAIG,eAAgB,EAAnD;IACD,CAVD;;IAWA,MAAMU,YAAY,GAAIC,MAAD,IAAoC;MACvD,MAAMC,KAAK,GAAGd,gBAAA,CAAMe,IAAN,CAAWF,MAAM,CAACG,EAAP,CAAUC,QAAV,EAAX,CAAd;;MACA,MAAMC,SAAS,GAAGC,MAAM,CAACC,IAAP,CAAYP,MAAM,CAACK,SAAnB,EACff,GADe,CACVN,QAAD,IAAcD,eAAe,CAACC,QAAD,EAAWgB,MAAM,CAACK,SAAP,CAAiBrB,QAAjB,CAAX,CADlB,EAEfc,IAFe,CAEV,MAFU,CAAlB;MAGA,OAAQ,GAAEG,KAAM,KAAII,SAAU,EAA9B;IACD,CAND;;IAOA,MAAMG,MAAM,GAAG/B,aAAa,CAACgC,MAAd,GACXtB,gBAAA,CAAMC,KAAN,CAAY,gEAAZ,CADW,GAEX,EAFJ;IAGA,OAAOP,OAAO,CAACS,GAAR,CAAYS,YAAZ,EAA0BD,IAA1B,CAA+B,MAA/B,IAAyCU,MAAhD;EACD;;AAhD0C"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/builder",
3
- "version": "0.0.752",
3
+ "version": "0.0.755",
4
4
  "homepage": "https://bit.dev/teambit/pipelines/builder",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.pipelines",
8
8
  "name": "builder",
9
- "version": "0.0.752"
9
+ "version": "0.0.755"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
@@ -22,17 +22,17 @@
22
22
  "core-js": "^3.0.0",
23
23
  "@teambit/graph.cleargraph": "0.0.1",
24
24
  "@teambit/harmony": "0.3.3",
25
- "@teambit/component": "0.0.752",
26
- "@teambit/envs": "0.0.752",
27
- "@teambit/logger": "0.0.589",
28
- "@teambit/tester": "0.0.752",
29
- "@teambit/isolator": "0.0.752",
30
- "@teambit/cli": "0.0.496",
31
- "@teambit/workspace": "0.0.752",
32
- "@teambit/aspect-loader": "0.0.752",
33
- "@teambit/generator": "0.0.752",
34
- "@teambit/graphql": "0.0.752",
35
- "@teambit/scope": "0.0.752",
25
+ "@teambit/component": "0.0.755",
26
+ "@teambit/envs": "0.0.755",
27
+ "@teambit/logger": "0.0.591",
28
+ "@teambit/tester": "0.0.755",
29
+ "@teambit/isolator": "0.0.755",
30
+ "@teambit/cli": "0.0.498",
31
+ "@teambit/workspace": "0.0.755",
32
+ "@teambit/aspect-loader": "0.0.755",
33
+ "@teambit/generator": "0.0.755",
34
+ "@teambit/graphql": "0.0.755",
35
+ "@teambit/scope": "0.0.755",
36
36
  "@teambit/bit-error": "0.0.394",
37
37
  "@teambit/component-id": "0.0.402"
38
38
  },
@@ -49,7 +49,7 @@
49
49
  "@teambit/pipelines.aspect-docs.builder": "0.0.138"
50
50
  },
51
51
  "peerDependencies": {
52
- "@teambit/legacy": "1.0.276",
52
+ "@teambit/legacy": "1.0.278",
53
53
  "react-dom": "^16.8.0 || ^17.0.0",
54
54
  "react": "^16.8.0 || ^17.0.0"
55
55
  },
@@ -77,7 +77,7 @@
77
77
  "react": "-"
78
78
  },
79
79
  "peerDependencies": {
80
- "@teambit/legacy": "1.0.276",
80
+ "@teambit/legacy": "1.0.278",
81
81
  "react-dom": "^16.8.0 || ^17.0.0",
82
82
  "react": "^16.8.0 || ^17.0.0"
83
83
  }
@@ -1,2 +1,2 @@
1
- export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@0.0.752/dist/builder.composition.js')]
2
- export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@0.0.752/dist/builder.docs.mdx')]
1
+ export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@0.0.755/dist/builder.composition.js')]
2
+ export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.pipelines_builder@0.0.755/dist/builder.docs.mdx')]