function main()

in scripts/devserver.js [13:27]


function main() {
  const app = express();
  app.use(express.static(DST_PATH));

  console.log(`Serving content from ${DST_PATH} at http://localhost:${PORT}`);

  chokidar.watch(LAB_PATH).on("all", (event, path) => {
    console.log(`Detected file change (${path}), recompiling...`);
    childProcess.exec(`claat export index.lab.md`, {
      cwd: SRC_PATH,
    });
  });

  app.listen(PORT);
}