UNPKG

gasp-cli

Version:

A cli to build a Google Apps Script Project Locally

19 lines (17 loc) 453 B
import { exec } from "node:child_process"; export default async function execScriptBash(path) { await exec(`cd "${path}" && npm i && git init && git add . && git commit -m 'init'`, (err, stdout, stderr) => { if (err) { console.error(`exec error: ${err}`); return; } // if (stdout) { // console.log(stdout); // return; // } // if (stderr) { // console.error(stderr); // return; // } }); }