mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
15 lines
357 B
JavaScript
15 lines
357 B
JavaScript
const child_process = require("child_process")
|
|
|
|
async function buildAppDist(srcPath) {
|
|
// build app for production
|
|
console.log("⚒ Building app...")
|
|
await child_process.execSync("yarn build", {
|
|
cwd: srcPath,
|
|
stdio: "inherit"
|
|
})
|
|
console.log("⚒ Building app done!")
|
|
|
|
return srcPath
|
|
}
|
|
|
|
module.exports = buildAppDist |