mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: remove type-gen script
This commit is contained in:
@ -73,11 +73,7 @@ if (!$?) {
|
||||
Write-Host "Frontend built!" -f green
|
||||
}
|
||||
|
||||
Write-Host "`nGenerating buf types..." -f DarkYellow
|
||||
$frontendTime = Measure-Command {
|
||||
&pnpm type-gen | Out-Host
|
||||
}
|
||||
if (!$?) {
|
||||
f (!$?) {
|
||||
Write-Host -BackgroundColor red -ForegroundColor white "Could not generate buf types. See above."
|
||||
Exit 1
|
||||
} else {
|
||||
|
@ -74,14 +74,6 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
echo -e "\033[32mFrontend dependencies installed!\033[0m"
|
||||
|
||||
echo -e "\n\033[33mGenerating buf types...\033[0m"
|
||||
pnpm type-gen
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\033[0;31mCould not generate buf types! Exiting.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
echo -e "\033[32mbuf types generated!\033[0m"
|
||||
|
||||
echo -e "\n\033[33mBuilding frontend...\033[0m"
|
||||
pnpm build
|
||||
if [ $? -ne 0 ]; then
|
||||
|
@ -28,16 +28,6 @@ $runTasks = @(
|
||||
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";
|
||||
|
Reference in New Issue
Block a user