Skip to content

Commit

Permalink
chore: improve dev env spin up
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhopperlowe committed Dec 2, 2024
1 parent 7b2a531 commit 0b428ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
cd ui/admin
pnpm install
- name: Run Build
run: pnpm run build

- name: Run linter
run: make lint-admin

Expand Down
2 changes: 1 addition & 1 deletion tools/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ server_ready_pid=$!
print_with_color 153 "[admin-ui](install)" " $line"
done

VITE_API_IN_BROWSER=true npm run dev 2>&1 | while IFS= read -r line; do
VITE_API_IN_BROWSER=true pnpm run dev 2>&1 | while IFS= read -r line; do
print_with_color 153 "[admin-ui]" " $line"
done
) &
Expand Down
5 changes: 5 additions & 0 deletions ui/admin/app/lib/service/routeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import queryString from "query-string";
import { $params, $path, Routes, RoutesWithParams } from "remix-routes";
import { ZodNull, ZodSchema, ZodType, z } from "zod";

// note: If you see a linter error related to `Routes`, or `RoutesWithParams`,
// it's probably because you need to run `pnpm run dev` or `pnpm run build`
// these types are generated by remix-routes, and are used to provide type
// safety when navigating through the app

const QuerySchemas = {
agentSchema: z.object({
threadId: z.string().nullish(),
Expand Down
3 changes: 1 addition & 2 deletions ui/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"dev": "remix vite:dev",
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint . && tsc --noEmit",
"preview": "vite preview",
"format": "prettier --write .",
"postinstall": "npm run build"
"format": "prettier --write ."
},
"dependencies": {
"@gptscript-ai/gptscript": "^0.9.5-rc5",
Expand Down

0 comments on commit 0b428ec

Please sign in to comment.