mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
chore: move git hooks to js
This commit is contained in:
Executable
+12
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user