2023-06-24 06:22:44 +02:00
|
|
|
const execa = require("execa");
|
2021-11-19 06:48:59 +01:00
|
|
|
|
|
|
|
(async () => {
|
2023-06-24 06:22:44 +02:00
|
|
|
await execa("pnpm", ["clean"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2022-02-06 00:39:30 +01:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-06-24 06:22:44 +02:00
|
|
|
execa("pnpm", ["dlx", "gulp", "watch"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2021-11-19 06:48:59 +01:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-06-24 06:22:44 +02:00
|
|
|
execa("pnpm", ["--filter", "backend", "watch"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2021-11-19 06:48:59 +01:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-06-24 06:22:44 +02:00
|
|
|
execa("pnpm", ["--filter", "client", "watch"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2021-11-19 06:48:59 +01:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-06-24 06:22:44 +02:00
|
|
|
execa("pnpm", ["--filter", "sw", "watch"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2022-04-30 14:52:07 +02:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2021-11-19 06:48:59 +01:00
|
|
|
const start = async () => {
|
|
|
|
try {
|
2023-06-24 06:22:44 +02:00
|
|
|
await execa("pnpm", ["start"], {
|
2023-09-02 01:56:57 +02:00
|
|
|
cwd: `${__dirname}/../`,
|
2021-11-19 06:48:59 +01:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
} catch (e) {
|
2023-06-24 06:22:44 +02:00
|
|
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|
2021-11-19 06:48:59 +01:00
|
|
|
start();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
start();
|
|
|
|
})();
|