UNPKG

lina-infratech-cli

Version:

A CLI tool for Lina Infratech Developers

18 lines (17 loc) 563 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.commitAndLint = void 0; const child_process_1 = require("child_process"); function commit(commitMsg) { (0, child_process_1.execSync)('git add .'); (0, child_process_1.execSync)(`git commit -m "${commitMsg}"`); } function formatAndLint() { (0, child_process_1.execSync)('npm run lint .'); (0, child_process_1.execSync)('npm run prettier'); } function commitAndLint(commitMsg) { commit(commitMsg); formatAndLint(); } exports.commitAndLint = commitAndLint;