kopia lustrzana https://github.com/shoelace-style/shoelace
13 wiersze
434 B
JavaScript
13 wiersze
434 B
JavaScript
//
|
|
// This script runs the Custom Elements Manifest analyzer to generate custom-elements.json
|
|
//
|
|
import chalk from 'chalk';
|
|
import commandLineArgs from 'command-line-args';
|
|
import { execSync } from 'child_process';
|
|
|
|
const { outdir } = commandLineArgs({ name: 'outdir', type: String });
|
|
|
|
// Run the analyzer
|
|
console.log('Generating component metadata');
|
|
execSync(`cem analyze --litelement --outdir "${outdir}"`, { stdio: 'inherit' });
|