包文件→ .shtukbase/packages/ontology/actions/build.ts
actions/build.ts
11 行, 464 B.
文件按包中的原样显示:代码及其注释不做翻译。
- // Action `build`: writes the static lens base/ontology/layers.html (layers, bridges, contours, placement)
- // from the project's markdown. Needs no kit. Run from the project root; the one option is --out <file>.
- import { outOption } from './lib/lenscommon.ts';
- import { main } from './lib/render_ontology.ts';
- try {
- console.log('wrote', main('.', outOption(process.argv.slice(2))));
- } catch (err) {
- console.error((err as Error).message);
- process.exit(1);
- }