mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
13 lines
288 B
JavaScript
Executable File
13 lines
288 B
JavaScript
Executable File
#!/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);
|
|
}
|