ShtukbaseStandard
包文件→ .shtukbase/packages/lenses/actions/build.mjs

actions/build.mjs

11 行, 427 B.

文件按包中的原样显示:代码及其注释不做翻译。

  1. // Action `build`: builds the project's lenses (lib/: data, kit, gallery) with the kit, then the data of the
  2. // service lenses "Project packages" and "Project checks" (lib/base/packages.data.js).
  3. import { lenses } from "./kit.mjs";
  4. import { writePackages } from "./packages.mjs";
  5. const code = lenses("build");
  6. if (code === 0) {
  7. const line = writePackages(process.cwd());
  8. if (line) console.log(line);
  9. }
  10. process.exit(code);