angular/aio/tools/stackblitz-builder/generateStackblitz.mjs
Derek Cormier 9a27c4cb50 build(bazel): incrementally build aio example zips and live examples
The existing scripts were amended to work on one example at a time
2022-11-22 13:51:16 -07:00

12 lines
339 B
JavaScript

import {StackblitzBuilder} from './builder.mjs';
const argv = process.argv.slice(2);
if (argv.length !== 2) {
console.error("Usage: node generateStackblitz.mjs [example-path] [output-path]");
process.exit(1);
}
const EXAMPLE_PATH = argv[0];
const OUTPUT_PATH = argv[1];
new StackblitzBuilder(EXAMPLE_PATH, OUTPUT_PATH).build();