Govern task context and advance execution pointer
This commit is contained in:
7
tools/web/print-task-context.mjs
Normal file
7
tools/web/print-task-context.mjs
Normal file
@@ -0,0 +1,7 @@
|
||||
import { buildTaskContext, contextSizeReport } from "./task-context-lib.mjs";
|
||||
|
||||
const index = process.argv.indexOf("--task");
|
||||
const task = index >= 0 ? process.argv[index + 1] : undefined;
|
||||
const bundle = buildTaskContext(task);
|
||||
const report = contextSizeReport(bundle);
|
||||
process.stdout.write(`${JSON.stringify({ ...bundle.context, size: report }, null, 2)}\n`);
|
||||
Reference in New Issue
Block a user