mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
wip: update size tool to allow running without examples (since they don't work currently)
This commit is contained in:
parent
76ee4f06bd
commit
ac1c6e9c3c
@ -37,12 +37,13 @@ const translatorPath = path.join(
|
||||
);
|
||||
const configPath = path.join(__dirname, "../.sizes.json");
|
||||
const shouldWrite = process.argv.includes("--write");
|
||||
const skipExamples = process.argv.includes("--no-examples");
|
||||
|
||||
run(configPath).catch(console.error);
|
||||
|
||||
async function run(configPath: string) {
|
||||
const { examples, results: previous } = loadData(configPath);
|
||||
const current = await getResults(examples);
|
||||
const current = await getResults(skipExamples ? {} : examples);
|
||||
const measure = (process.env.MEASURE as undefined | keyof Sizes) || "gzip";
|
||||
|
||||
console.log(measure);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user