Files
shoelace/scripts/make-metadata.js

13 lines
360 B
JavaScript
Raw Normal View History

2021-02-26 09:09:13 -05:00
//
// This script runs the Custom Elements Manifest analyzer to generate custom-elements.json
2021-02-26 09:09:13 -05:00
//
2021-06-17 17:38:48 -04:00
import chalk from 'chalk';
import mkdirp from 'mkdirp';
import { execSync } from 'child_process';
2021-02-26 09:09:13 -05:00
mkdirp.sync('./dist');
// Run the analyzer
console.log('Generating component metadata');
execSync('cem analyze --litelement --outdir dist', { stdio: 'inherit' });