angular-cn/aio/tools/example-zipper/generateZips.mjs

10 lines
370 B
JavaScript
Raw Normal View History

import path from 'canonical-path';
import {fileURLToPath} from 'url';
import {ExampleZipper} from './exampleZipper.mjs';
2017-04-16 23:40:47 +02:00
const __dirname = path.dirname(fileURLToPath(import.meta.url));
2017-04-16 23:40:47 +02:00
const EXAMPLES_PATH = path.join(__dirname, '../../content/examples');
const ZIPS_PATH = path.join(__dirname, '../../src/generated/zips');
2017-04-16 23:40:47 +02:00
new ExampleZipper(EXAMPLES_PATH, ZIPS_PATH);