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