everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
1 lines • 1.84 kB
Source Map (JSON)
{"version":3,"file":"workspace-build.mjs","names":[],"sources":["../../../src/cli/render/workspace-build.ts"],"sourcesContent":["import type { WorkspaceBuildRender } from \"../../services/workspace/build-train\";\nimport { padRight } from \"../../utils/string\";\nimport { colors, icons } from \"../../utils/theme\";\nimport { formatDuration } from \"../../utils/timing\";\n\n/** The deploy build train's ✓/✗ table — exact presentation moved out of the\n * service by #424. */\nexport const cliWorkspaceBuildRender: WorkspaceBuildRender = {\n banner: (total) => {\n console.log();\n console.log(` Building ${total} workspace${total > 1 ? \"s\" : \"\"}...`);\n console.log();\n },\n prerequisites: (names) => {\n console.log(` ${colors.dim(`prerequisites: rebuilt ${names.join(\", \")}`)}`);\n },\n outcome: (outcome) => {\n const name = padRight(outcome.key, 28);\n if (outcome.success) {\n console.log(\n ` ${colors.green(icons.ok)} ${name} ${colors.dim(formatDuration(outcome.durationMs))}`,\n );\n } else {\n const errorLine = (outcome.error ?? \"Failed\").split(\"\\n\")[0];\n console.log(` ${colors.error(icons.err)} ${name} ${errorLine}`);\n }\n },\n end: () => {\n console.log();\n },\n};\n"],"mappings":";;;;;;;AAOA,MAAa,0BAAgD;CAC3D,SAAS,UAAU;EACjB,QAAQ,IAAI;EACZ,QAAQ,IAAI,cAAc,MAAM,YAAY,QAAQ,IAAI,MAAM,GAAG,IAAI;EACrE,QAAQ,IAAI;CACd;CACA,gBAAgB,UAAU;EACxB,QAAQ,IAAI,KAAK,OAAO,IAAI,0BAA0B,MAAM,KAAK,IAAI,GAAG,GAAG;CAC7E;CACA,UAAU,YAAY;EACpB,MAAM,OAAO,SAAS,QAAQ,KAAK,EAAE;EACrC,IAAI,QAAQ,SACV,QAAQ,IACN,KAAK,OAAO,MAAM,MAAM,EAAE,EAAE,GAAG,KAAK,GAAG,OAAO,IAAI,eAAe,QAAQ,UAAU,CAAC,GACtF;OACK;GACL,MAAM,aAAa,QAAQ,SAAS,SAAQ,CAAE,MAAM,IAAI,CAAC,CAAC;GAC1D,QAAQ,IAAI,KAAK,OAAO,MAAM,MAAM,GAAG,EAAE,GAAG,KAAK,GAAG,WAAW;EACjE;CACF;CACA,WAAW;EACT,QAAQ,IAAI;CACd;AACF"}