1
0
Fork 1
mirror of https://example.com synced 2024-11-23 05:26:37 +09:00
firefish/scripts/build.js

34 lines
731 B
JavaScript
Raw Normal View History

2021-11-12 10:24:19 +09:00
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,
});
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,
});
})();