2023-06-24 04:22:44 +00:00
|
|
|
const execa = require("execa");
|
2021-11-19 05:48:59 +00:00
|
|
|
|
|
|
|
(async () => {
|
2023-07-24 07:57:15 +00:00
|
|
|
await execa("yarn", ["clean"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2022-02-05 23:39:30 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-11-15 14:53:55 +00:00
|
|
|
await execa("yarn", ["build"], {
|
2023-07-24 07:57:15 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
})
|
|
|
|
|
|
|
|
execa("yarn", ["gulp", "watch"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2021-11-19 05:48:59 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-07-24 07:57:15 +00:00
|
|
|
execa("yarn", ["workspace", "backend", "watch"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2021-11-19 05:48:59 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-07-24 07:57:15 +00:00
|
|
|
execa("yarn", ["workspace", "client", "watch"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2021-11-19 05:48:59 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2023-07-24 07:57:15 +00:00
|
|
|
execa("yarn", ["workspace", "sw", "watch"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2022-04-30 12:52:07 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
|
2021-11-19 05:48:59 +00:00
|
|
|
const start = async () => {
|
|
|
|
try {
|
2023-07-24 07:57:15 +00:00
|
|
|
await execa("yarn", ["start"], {
|
2023-06-24 04:22:44 +00:00
|
|
|
cwd: __dirname + "/../",
|
2021-11-19 05:48:59 +00:00
|
|
|
stdout: process.stdout,
|
|
|
|
stderr: process.stderr,
|
|
|
|
});
|
|
|
|
} catch (e) {
|
2023-06-24 04:22:44 +00:00
|
|
|
await new Promise((resolve) => setTimeout(resolve, 3000));
|
2021-11-19 05:48:59 +00:00
|
|
|
start();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
start();
|
|
|
|
})();
|