From 1912b978dc7f746b4f3a81a2682dba83e6f31606 Mon Sep 17 00:00:00 2001 From: seveibar Date: Thu, 21 Mar 2024 20:30:27 -0700 Subject: [PATCH] add "Rebuilding..." loader, upgrade deps --- .gitignore | 1 + bun.lockb | Bin 186181 -> 186229 bytes .../routes/api/dev_package_examples/get.ts | 2 ++ dev-server-api/src/db/get-db.ts | 2 +- dev-server-frontend/bun.lockb | Bin 200996 -> 201366 bytes dev-server-frontend/package.json | 9 +++++---- .../src/ExampleContentView.tsx | 7 +++++++ lib/cmd-fns/dev/index.ts | 4 ++-- package.json | 9 +++++---- 9 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index bc419471..762ebab5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ tmp dist # tests/example-init .npmrc +*.__tmp_entrypoint.tsx \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 058e66dddcc8c8e6b4929e84f89563712686e56a..155f170b5ab9c0e4959d2e42c11f502a302313cf 100755 GIT binary patch delta 4987 zcmY+I3y@Rg8HUdZYh+o-u3W-BEDHn_42xm_!HAbe%o(DE|_RL<>*3&eV@vb$emfKcOd}o)i1bPcPC%`i3`-he! zSONXJw4`=*U29pEZ8cgOwq>=*eEMiQ=d)GYcHMXL{GDBu+r9Jtdh79%hrH3be^}oh zT=Q(DcWU9f^4(uPxisIpzIWY2M?Zc%dFxZYk**Er*XJumHM`Yl(qH(DOenaj*n>Khu%`%b>5WB?(qQ{|PNAunGn~ z*OCTnVDJkq8L$q9zSNQh8({b=EjiG6Qs)Sm2VJMMM8N{+ZfJ>tMbPuLmN-~a{>E!7 z6JS}{>$9OGRiXS2#1vJf0{sxvRE-KYA!evL6*>bkOEsvl6ER0Q&%`c5KRGkWqM$A$TDm(@;M>)r07oqZ$%YzuD3LblS_dWTYzuSM;*7gr-EnSTbt5;^5 zS`J>nX?yp`zPST`{qwPdU!DB-+qQ1p{Htlp@7{B7ZS#ipZSTxHdE~cO9hkLa;E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/routes/api/dev_package_examples/get.ts index f089e950..5fbeb8e8 100644 --- a/dev-server-api/routes/api/dev_package_examples/get.ts +++ b/dev-server-api/routes/api/dev_package_examples/get.ts @@ -12,6 +12,7 @@ export default withEdgeSpec({ dev_package_example_id: z.coerce.number(), file_path: z.string(), tscircuit_soup: z.any(), + is_loading: z.boolean(), error: z.string().nullable().optional().default(null), last_updated_at: z.string().datetime(), }), @@ -32,6 +33,7 @@ export default withEdgeSpec({ }) .then((r) => ({ ...r, + is_loading: r.is_loading === 1, tscircuit_soup: JSON.parse(r.tscircuit_soup), })), }) diff --git a/dev-server-api/src/db/get-db.ts b/dev-server-api/src/db/get-db.ts index e9e373e5..451258ed 100644 --- a/dev-server-api/src/db/get-db.ts +++ b/dev-server-api/src/db/get-db.ts @@ -24,7 +24,7 @@ export type DbClient = Kysely let globalDb: Kysely | undefined export const getDbFilePath = () => - process.env.TSCI_DEV_SERVER_DB ?? "./.tscircuit/dev-server.db" + process.env.TSCI_DEV_SERVER_DB ?? "./.tscircuit/dev-server.sqlite" export const getDb = async (): Promise> => { if (globalDb) return globalDb diff --git a/dev-server-frontend/bun.lockb b/dev-server-frontend/bun.lockb index 1fa2e8192fa1c84cd3b128eb4773498b2e443ef7..de8f3d5a06f4e584776ba6f6987afb965c9c1263 100755 GIT binary patch delta 15649 zcmeHOd0bUhyWVTdNw#T7P9PwHqN0H^c|aydoIo5vK>;};3JS{LL=NCU;(*gmUr})? zODik0L`qBh8pLu;OEfF}>`QV=?N?6decnBYb^E^G{o~&ISNwc@*88k?&BNYjowHuv z+HlRbhAVu%?=?;7b$aa=KD(xFi{7n%GROB){Lbh;4&!0Gv8reXg#7R*s#5f_$G$_ zC{y>V0dw6~p0nhF-w; zV6NB^)%JAz!kzh&)Bx5?1}9C?M=2|P+9aM6Lt%4#XM;n)+>c|^({p?>^Q9M&&H;7_ zxFI+V>;;~X?^9sQ&XR0-<8y3z`RVb{d6oz%bYaUXKIdA3!4+%QvDjXaJ*HZTYgBzlWD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z-fQNBN+YN|3lmfykhT_HD9LmN627RoWJiwCH)@%Koq8d8O_c|THIy|~j{bA|9_C9z zzdhOF(&JShlDSC75ZZpuGQk1)x6ajC^i_gzZ@|4|9VJzQ;!_nXw3JeW-e6+oZl62!tD2d8WAH1 zS)UK>9ke-wd2EhCd(Yr7^G&PwJlfnVuWP~kl(A-Z(0w#4f3||$rpw#@-_s4B$20P^ zB~&&8G>JTOK}F<0Qx2t^Ts#x@BhE4I4lagidN}6c$yKG`0@;;H^6<=8MW5%%+uhBV zxb}W^@QTl@?rsRs*uV7Z+|75uujuptS zcD$!)h@GS+F>@l~yn`vP3ZHN<@U6!Nh2S+_JZ7^vgQN1deHv?VTlTI diff --git a/dev-server-frontend/package.json b/dev-server-frontend/package.json index 7ac5b2eb..7ffa2f5a 100644 --- a/dev-server-frontend/package.json +++ b/dev-server-frontend/package.json @@ -12,7 +12,8 @@ "start": "npm run dev", "build": "tsc && vite build --base /preview && rm -f dist/bundle* && make-vfs --dir dist --outfile ./dist/bundle.ts", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 10", - "preview": "vite preview" + "preview": "vite preview", + "update-deps": "bun add @tscircuit/pcb-viewer@latest @tscircuit/builder@latest @tscircuit/schematic-viewer@latest" }, "dependencies": { "@radix-ui/react-alert-dialog": "^1.0.5", @@ -28,9 +29,9 @@ "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-toggle-group": "^1.0.4", "@radix-ui/react-tooltip": "^1.0.7", - "@tscircuit/builder": "^1.5.5", - "@tscircuit/pcb-viewer": "^1.2.12", - "@tscircuit/schematic-viewer": "^1.1.7", + "@tscircuit/builder": "latest", + "@tscircuit/pcb-viewer": "latest", + "@tscircuit/schematic-viewer": "latest", "axios": "^1.6.7", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", diff --git a/dev-server-frontend/src/ExampleContentView.tsx b/dev-server-frontend/src/ExampleContentView.tsx index cc92d145..15b87c62 100644 --- a/dev-server-frontend/src/ExampleContentView.tsx +++ b/dev-server-frontend/src/ExampleContentView.tsx @@ -39,6 +39,7 @@ export const ExampleContentView = () => { const itemHeight = viewMode === "split" && splitMode === "vertical" ? halfHeight : editorHeight + console.log(pkg) return (
{
)} + {pkg && pkg.is_loading && ( +
+
+ Rebuilding... +
+ )} {pkg && (viewMode === "schematic" || viewMode === "split") && ( { // Add .tscircuit to .gitignore if it's not already there // TODO - // Delete old .tscircuit/dev-server.db - unlink(Path.join(cwd, ".tscircuit/dev-server.db")).catch(() => {}) + // Delete old .tscircuit/dev-server.sqlite + unlink(Path.join(cwd, ".tscircuit/dev-server.sqlite")).catch(() => {}) console.log( kleur.green( diff --git a/package.json b/package.json index c3233f9f..1a77a0fa 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,15 @@ "bootstrap": "bun i && cd dev-server-api && bun i && cd ../dev-server-frontend && bun i", "bootstrap:ci": "bun i --frozen-lockfile && cd dev-server-api && bun i --frozen-lockfile && cd ../dev-server-frontend && bun i --frozen-lockfile", "start": "bun cli.ts", - "start:dev-server:dev": "TSCI_DEV_SERVER_DB=$(pwd)/.tscircuit/dev-server.db concurrently 'cd dev-server-api && bun start' 'cd dev-server-frontend && bun start'", + "start:dev-server:dev": "TSCI_DEV_SERVER_DB=$(pwd)/.tscircuit/dev-server.sqlite concurrently 'cd dev-server-api && bun start' 'cd dev-server-frontend && bun start'", "start:dev-server": "bun build:dev-server && bun cli.ts dev -y --cwd ./tests/assets/example-project", "build:dev-server": "cd dev-server-api && bun run build && cd ../dev-server-frontend && bun run build", "build:dev-server:api": "cd dev-server-api && bun run build", "build:cli": "bun build-cli.ts", "build": "bun build:dev-server && npm run build:cli", "dev-with-test-project": "bun cli.ts dev --cwd ./tests/assets/example-project", - "test:init": "bun cli.ts init --dir ./tmp/test --name test" + "test:init": "bun cli.ts init --dir ./tmp/test --name test", + "update-deps": "bun add @tscircuit/builder@latest @tscircuit/react-fiber@latest && cd dev-server-frontend && bun run update-deps" }, "bin": { "tscircuit": "./dist/cli.js", @@ -34,8 +35,8 @@ "dependencies": { "@edge-runtime/primitives": "^4.1.0", "@hono/node-server": "^1.8.2", - "@tscircuit/builder": "^1.5.10", - "@tscircuit/react-fiber": "^1.0.10", + "@tscircuit/builder": "latest", + "@tscircuit/react-fiber": "latest", "axios": "^1.6.7", "better-sqlite3": "^9.4.3", "chokidar": "^3.6.0",