chore: move git hooks to js

This commit is contained in:
AJ ONeal
2023-10-12 04:40:25 +00:00
parent db5113e025
commit 73af48eb9d
4 changed files with 49 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env node
'use strict';
var Process = require('child_process');
var procOpts = { stdio: 'inherit' };
var commands = ['npm run fmt', 'npm run lint', 'npm run test'];
for (let cmd of commands) {
console.info(`[pre-commit] exec: ${cmd}`);
Process.execSync(cmd, procOpts);
}