UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

1 lines • 1.9 kB
{"version":3,"file":"workspace-build.cjs","names":["colors","padRight","icons","formatDuration"],"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,KAAKA,qBAAO,IAAI,0BAA0B,MAAM,KAAK,IAAI,GAAG,GAAG;CAC7E;CACA,UAAU,YAAY;EACpB,MAAM,OAAOC,wBAAS,QAAQ,KAAK,EAAE;EACrC,IAAI,QAAQ,SACV,QAAQ,IACN,KAAKD,qBAAO,MAAME,oBAAM,EAAE,EAAE,GAAG,KAAK,GAAGF,qBAAO,IAAIG,8BAAe,QAAQ,UAAU,CAAC,GACtF;OACK;GACL,MAAM,aAAa,QAAQ,SAAS,SAAQ,CAAE,MAAM,IAAI,CAAC,CAAC;GAC1D,QAAQ,IAAI,KAAKH,qBAAO,MAAME,oBAAM,GAAG,EAAE,GAAG,KAAK,GAAG,WAAW;EACjE;CACF;CACA,WAAW;EACT,QAAQ,IAAI;CACd;AACF"}