📚✨ Enhance project setup & maintenance workflows
- 📝 Add comprehensive README.md, CONTRIBUTING.md, and 🔒 SECURITY.md documentation - 🔧 Integrate code formatting tool and refactor existing codebase to meet style guidelines - ⬆️ Update project dependencies to latest stable versions - 🤖 Implement pre-commit hook for automated code formatting #documentation #tooling #maintenance
This commit is contained in:
parent
25b3972f8b
commit
18e4ad7629
47 changed files with 1027 additions and 568 deletions
18
setup-hooks.ts
Executable file
18
setup-hooks.ts
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import { spawnSync } from "child_process";
|
||||
import { resolve } from "path";
|
||||
|
||||
const hooksPath = resolve(".hooks");
|
||||
|
||||
console.log(`Setting git hooks path to ${hooksPath}...`);
|
||||
const result = spawnSync("git", ["config", "core.hooksPath", hooksPath], {
|
||||
stdio: "inherit",
|
||||
});
|
||||
|
||||
if (result.status === 0) {
|
||||
console.log("Git hooks successfully configured!");
|
||||
} else {
|
||||
console.error("Failed to configure git hooks.");
|
||||
process.exit(1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue