mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
hooks
This commit is contained in:
parent
4f3fe2813e
commit
7d9842bdfb
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,7 @@ import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
|
||||||
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
import { epoxyPath } from "@mercuryworkshop/epoxy-transport";
|
||||||
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
import { libcurlPath } from "@mercuryworkshop/libcurl-transport";
|
||||||
import { bareModulePath } from "@mercuryworkshop/bare-as-module3";
|
import { bareModulePath } from "@mercuryworkshop/bare-as-module3";
|
||||||
|
import { writeFileSync } from "fs";
|
||||||
|
|
||||||
const bare = createBareServer("/bare/", {
|
const bare = createBareServer("/bare/", {
|
||||||
logErrors: true,
|
logErrors: true,
|
||||||
|
@ -71,6 +72,11 @@ fastify.listen({
|
||||||
host: "0.0.0.0",
|
host: "0.0.0.0",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
writeFileSync(".git/hooks/pre-commit", "pnpm prettier . -w");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const watch = spawn("pnpm", ["rspack", "-w"], {
|
const watch = spawn("pnpm", ["rspack", "-w"], {
|
||||||
detached: true,
|
detached: true,
|
||||||
cwd: process.cwd(),
|
cwd: process.cwd(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue