2021-02-26 14:09:13 +00:00
|
|
|
//
|
2021-06-24 22:24:54 +00:00
|
|
|
// This script runs the Custom Elements Manifest analyzer to generate custom-elements.json
|
2021-02-26 14:09:13 +00:00
|
|
|
//
|
2021-10-13 21:12:50 +00:00
|
|
|
import commandLineArgs from 'command-line-args';
|
2021-06-24 22:24:54 +00:00
|
|
|
import { execSync } from 'child_process';
|
2021-02-26 14:09:13 +00:00
|
|
|
|
2021-10-13 21:12:50 +00:00
|
|
|
const { outdir } = commandLineArgs({ name: 'outdir', type: String });
|
2021-03-03 21:56:42 +00:00
|
|
|
|
2021-06-24 22:24:54 +00:00
|
|
|
// Run the analyzer
|
|
|
|
console.log('Generating component metadata');
|
2021-10-13 21:12:50 +00:00
|
|
|
execSync(`cem analyze --litelement --outdir "${outdir}"`, { stdio: 'inherit' });
|