Files
taskpile/frontend/node_modules/next/dist/esm/lib/verifyAndLint.js
Alvis f1d51b8cc8 Add side panels, task selection, graph animation, and project docs
- Foldable left panel (user profile) and right panel (task details)
- Clicking a task in the list or graph node selects it and shows details
- Both views (task list + graph) always mounted via absolute inset-0 for
  correct canvas dimensions; tabs toggle visibility with opacity
- Graph node selection animation: other nodes repel outward (charge -600),
  then selected node smoothly slides to center (500ms cubic ease-out),
  then charge restores to -120 and graph stabilizes
- Graph re-fits on tab switch and panel resize via ResizeObserver
- Fix UUID string IDs throughout (backend returns UUIDs, not integers)
- Add TaskDetailPanel, UserPanel components
- Add CLAUDE.md project documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 11:23:06 +00:00

60 lines
2.3 KiB
JavaScript

import { red } from "./picocolors";
import { Worker } from "next/dist/compiled/jest-worker";
import { existsSync } from "fs";
import { join } from "path";
import { ESLINT_DEFAULT_DIRS } from "./constants";
import { eventLintCheckCompleted } from "../telemetry/events";
import { CompileError } from "./compile-error";
import isError from "./is-error";
export async function verifyAndLint(dir, cacheLocation, configLintDirs, enableWorkerThreads, telemetry) {
try {
const lintWorkers = new Worker(require.resolve("./eslint/runLintCheck"), {
numWorkers: 1,
enableWorkerThreads,
maxRetries: 0
});
lintWorkers.getStdout().pipe(process.stdout);
lintWorkers.getStderr().pipe(process.stderr);
const lintDirs = (configLintDirs ?? ESLINT_DEFAULT_DIRS).reduce((res, d)=>{
const currDir = join(dir, d);
if (!existsSync(currDir)) return res;
res.push(currDir);
return res;
}, []);
const lintResults = await lintWorkers.runLintCheck(dir, lintDirs, {
lintDuringBuild: true,
eslintOptions: {
cacheLocation
}
});
const lintOutput = typeof lintResults === "string" ? lintResults : lintResults == null ? void 0 : lintResults.output;
if (typeof lintResults !== "string" && (lintResults == null ? void 0 : lintResults.eventInfo)) {
telemetry.record(eventLintCheckCompleted({
...lintResults.eventInfo,
buildLint: true
}));
}
if (typeof lintResults !== "string" && (lintResults == null ? void 0 : lintResults.isError) && lintOutput) {
await telemetry.flush();
throw new CompileError(lintOutput);
}
if (lintOutput) {
console.log(lintOutput);
}
lintWorkers.end();
} catch (err) {
if (isError(err)) {
if (err.type === "CompileError" || err instanceof CompileError) {
console.error(red("\nFailed to compile."));
console.error(err.message);
process.exit(1);
} else if (err.type === "FatalError") {
console.error(err.message);
process.exit(1);
}
}
throw err;
}
}
//# sourceMappingURL=verifyAndLint.js.map