2021-11-18 22:48:59 -07:00
|
|
|
const execa = require('execa');
|
|
|
|
|
|
|
|
(async () => {
|
2023-01-12 21:18:16 -07:00
|
|
|
await execa('pnpm', ['clean'], {
|
2022-02-05 16:39:30 -07:00
|
|
|
cwd: __dirname + '/../',
|
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-01-12 21:18:16 -07:00
|
|
|
execa('pnpm', ['dlx', 'gulp', 'watch'], {
|
2021-11-18 22:48:59 -07:00
|
|
|
cwd: __dirname + '/../',
|
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-01-12 21:18:16 -07:00
|
|
|
execa('pnpm', ['--filter', 'backend', 'watch'], {
|
2022-06-04 02:01:02 -06:00
|
|
|
cwd: __dirname + '/../',
|
2021-11-18 22:48:59 -07:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-01-12 21:18:16 -07:00
|
|
|
execa('pnpm', ['--filter', 'client', 'watch'], {
|
2022-06-04 02:01:02 -06:00
|
|
|
cwd: __dirname + '/../',
|
2021-11-18 22:48:59 -07:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-01-12 21:18:16 -07:00
|
|
|
execa('pnpm', ['--filter', 'sw', 'watch'], {
|
2022-06-04 02:01:02 -06:00
|
|
|
cwd: __dirname + '/../',
|
2022-04-30 06:52:07 -06:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2021-11-18 22:48:59 -07:00
|
|
|
const start = async () => {
|
|
|
|
try {
|
2023-01-12 21:18:16 -07:00
|
|
|
await execa('pnpm', ['start'], {
|
2021-11-18 22:48:59 -07:00
|
|
|
cwd: __dirname + '/../',
|
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
} catch (e) {
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
|
|
start();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
start();
|
|
|
|
})();
|