mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update dev scripts (#2427)
- add type-gen - remove some unused air settings - restrict air monitoring to changed go files
This commit is contained in:
@@ -18,24 +18,43 @@ foreach ($dir in @(".", "../")) {
|
||||
$frontendPort = 3001
|
||||
# Tasks to run, in order
|
||||
$runTasks = @(
|
||||
@{
|
||||
Desc = "install frontend dependencies";
|
||||
Exe = "powershell.exe";
|
||||
Args = (
|
||||
"-Command",
|
||||
"pnpm i"
|
||||
);
|
||||
Dir = "$repoRoot/web"
|
||||
Wait = $true;
|
||||
},
|
||||
@{
|
||||
Desc = "generate buf types";
|
||||
Exe = "powershell.exe";
|
||||
Args = (
|
||||
"-Command",
|
||||
"pnpm type-gen"
|
||||
);
|
||||
Dir = "$repoRoot/web"
|
||||
Wait = $true;
|
||||
},
|
||||
@{
|
||||
Desc = "start backend with live reload";
|
||||
Exe = "air.exe";
|
||||
Args = "-c .\scripts\.air-windows.toml";
|
||||
Args = (
|
||||
"-c",
|
||||
".\scripts\.air-windows.toml"
|
||||
);
|
||||
Dir = "$repoRoot";
|
||||
Wait = $false;
|
||||
},
|
||||
@{
|
||||
Desc = "install frontend dependencies";
|
||||
Exe = "pnpm.exe";
|
||||
Args = "i";
|
||||
Dir = "$repoRoot/web"
|
||||
Wait = $true;
|
||||
}
|
||||
@{
|
||||
Desc = "start frontend with live reload";
|
||||
Exe = "pnpm.exe";
|
||||
Args = "dev";
|
||||
Exe = "powershell.exe";
|
||||
Args = (
|
||||
"-Command",
|
||||
"pnpm dev"
|
||||
);
|
||||
Dir = "$repoRoot/web";
|
||||
Wait = $false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user