update dependencies, cleanup, refine (#642)

* update dependencies, cleanup, refine

fixes #637

* update CI command to verify
This commit is contained in:
Jason O'Neill
2022-01-06 05:44:13 -08:00
committed by GitHub
parent 46f05224ab
commit ca346ccbb2
18 changed files with 5108 additions and 6710 deletions

View File

@@ -4,19 +4,19 @@
import chalk from 'chalk';
import commandLineArgs from 'command-line-args';
import fs from 'fs/promises';
import glob from 'globby';
import mkdirp from 'mkdirp';
import { mkdirSync } from 'fs';
import { globbySync } from 'globby';
import path from 'path';
import prettier from 'prettier';
import stripComments from 'strip-css-comments';
const { outdir } = commandLineArgs({ name: 'outdir', type: String });
const files = glob.sync('./src/themes/**/*.styles.ts');
const files = globbySync('./src/themes/**/*.styles.ts');
const themesDir = path.join(outdir, 'themes');
console.log('Generating stylesheets');
mkdirp.sync(themesDir);
mkdirSync(themesDir, { recursive: true });
try {
files.map(async file => {