feat:Add log output for create

This commit is contained in:
pengfeizhou 2021-02-26 15:11:41 +08:00 committed by osborn
parent 1d12e8985f
commit a62869a99c

View File

@ -101,7 +101,12 @@ export default async function create(name: string) {
await initiOS(cwd, name) await initiOS(cwd, name)
} }
console.log("Install node modules ...".green) console.log("Install node modules ...".green)
await Shell.exec('npm', ['install'], { cwd }); await Shell.exec('npm', ['install'], {
await Shell.exec('npm', ['run', 'build'], { cwd }); cwd,
env: process.env,
consoleHandler: (info) => {
console.log(info)
}
});
console.log("Installed, welcome!".green) console.log("Installed, welcome!".green)
} }