feat: 脚手架基本ok

This commit is contained in:
volare
2022-11-22 00:24:06 +08:00
parent c1981f2951
commit 22b9b2878d
29 changed files with 4001 additions and 9 deletions

13
bin/utils/shell.ts Normal file
View File

@@ -0,0 +1,13 @@
import shelljs from 'shelljs';
export function shellExec(command: string) {
return new Promise<number>((resolve, reject) => {
shelljs.exec(command, { async: true, silent: false}, (code) => {
if (code === 0) {
resolve(0);
} else {
reject(new Error(`${code}`));
}
});
});
}