mirror of
				https://github.com/usememos/memos.git
				synced 2025-10-31 16:59:30 +08:00 
			
		
		
		
	chore: remove type-gen script
This commit is contained in:
		
							parent
							
								
									e35225ff24
								
							
						
					
					
						commit
						ba460382b0
					
				
					 6 changed files with 3 additions and 29 deletions
				
			
		
							
								
								
									
										4
									
								
								.github/workflows/frontend-tests.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/frontend-tests.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -25,8 +25,6 @@ jobs: | |||
|           cache-dependency-path: "web/pnpm-lock.yaml" | ||||
|       - run: pnpm install | ||||
|         working-directory: web | ||||
|       - run: pnpm type-gen | ||||
|         working-directory: web | ||||
|       - name: Run eslint check | ||||
|         run: pnpm lint | ||||
|         working-directory: web | ||||
|  | @ -45,8 +43,6 @@ jobs: | |||
|           cache-dependency-path: "web/pnpm-lock.yaml" | ||||
|       - run: pnpm install | ||||
|         working-directory: web | ||||
|       - run: pnpm type-gen | ||||
|         working-directory: web | ||||
|       - name: Run frontend build | ||||
|         run: pnpm build | ||||
|         working-directory: web | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ COPY . . | |||
| 
 | ||||
| WORKDIR /frontend-build/web | ||||
| 
 | ||||
| RUN corepack enable && pnpm i --frozen-lockfile && pnpm type-gen | ||||
| RUN corepack enable && pnpm i --frozen-lockfile | ||||
| 
 | ||||
| RUN pnpm build | ||||
| 
 | ||||
|  |  | |||
|  | @ -30,7 +30,7 @@ Memos is built with a curated tech stack. It is optimized for developer experien | |||
| 3. Install frontend dependencies and generate TypeScript code from protobuf | ||||
| 
 | ||||
|    ``` | ||||
|    cd web && pnpm i && pnpm type-gen | ||||
|    cd web && pnpm i | ||||
|    ``` | ||||
| 
 | ||||
| 4. Start the dev server of frontend | ||||
|  |  | |||
|  | @ -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"; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue