1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-11 21:28:14 +09:00
hotomoe/scripts/build.js
2021-11-14 00:07:07 +09:00

28 lines
591 B
JavaScript

const execa = require('execa');
(async () => {
console.log('building packages/backend ...');
await execa('npm', ['run', 'build'], {
cwd: __dirname + '/../packages/backend',
stdout: process.stdout,
stderr: process.stderr,
});
console.log('building packages/client ...');
await execa('npm', ['run', 'build'], {
cwd: __dirname + '/../packages/client',
stdout: process.stdout,
stderr: process.stderr,
});
console.log('build finishing ...');
await execa('npm', ['run', 'gulp'], {
cwd: __dirname + '/../',
stdout: process.stdout,
stderr: process.stderr,
});
})();