https://github.com/angular/angular
Raw File
Tip revision: 440b51b7afec991c7d6b8d4cc2c301bbbb5fb2b5 authored by Pawel Kozlowski on 15 February 2023, 17:41:25 UTC
release: cut the v15.2.0-rc.0 release
Tip revision: 440b51b
generateZip.mjs
import {ExampleZipper} from './exampleZipper.mjs';

const argv = process.argv.slice(2);
if (argv.length !== 2) {
    console.error('Usage: node generateZip.mjs [example-path] [output-path]');
    process.exit(1);
}

const EXAMPLE_PATH = argv[0];
const OUTPUT_PATH = argv[1];

new ExampleZipper(EXAMPLE_PATH, OUTPUT_PATH);
back to top