shoelace/scripts/make-metadata.js

11 wiersze
342 B
JavaScript
Czysty Zwykły widok Historia

2021-02-26 14:09:13 +00:00
//
// This script runs the Custom Elements Manifest analyzer to generate custom-elements.json
2021-02-26 14:09:13 +00:00
//
2023-06-07 17:28:22 +00:00
import { execSync } from 'child_process';
import commandLineArgs from 'command-line-args';
2021-02-26 14:09:13 +00:00
const { outdir } = commandLineArgs({ name: 'outdir', type: String });
2023-06-07 20:14:32 +00:00
execSync(`cem analyze --litelement --outdir "${outdir}"`, { stdio: 'inherit' });