UNPKG

lina-infratech-cli

Version:

A CLI tool for Lina Infratech Developers

17 lines (13 loc) 330 B
import { execSync } from 'child_process' function commit(commitMsg: string) { execSync('git add .') execSync(`git commit -m "${commitMsg}"`) } function formatAndLint() { execSync('npm run lint .') execSync('npm run prettier') } export function commitAndLint(commitMsg: string) { commit(commitMsg) formatAndLint() }