You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
506 B
JavaScript
30 lines
506 B
JavaScript
4 years ago
|
const concurrently = require("concurrently");
|
||
|
|
||
|
concurrently(
|
||
|
[
|
||
|
{
|
||
|
command: "vite",
|
||
|
name: "vite",
|
||
|
prefixColor: "green",
|
||
|
env: { NODE_ENV: "development" },
|
||
|
},
|
||
|
{
|
||
|
command: "node esbuild.config.js && electron dist/main/index.js",
|
||
|
name: "electron",
|
||
|
prefixColor: "blue",
|
||
|
env: { NODE_ENV: "development" },
|
||
|
},
|
||
|
],
|
||
|
{
|
||
|
prefix: "name",
|
||
|
killOthers: ["failure", "success"],
|
||
|
}
|
||
|
).then(
|
||
|
() => {
|
||
|
// 成功
|
||
|
},
|
||
|
() => {
|
||
|
// 失败
|
||
|
}
|
||
|
);
|