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 b63a44a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
with:
version: 9.12.3

- name: Install dependencies
- name: Install and Build
run: |
cd ui/admin
pnpm install
pnpm run build
- name: Run linter
run: make lint-admin
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 b63a44a

Please sign in to comment.