Skip to content

Commit 6e3743c

Browse files
committed
chore: use turborepo
1 parent d5ef3ff commit 6e3743c

9 files changed

Lines changed: 212 additions & 258 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ node_modules
1717

1818
dist/
1919
out/
20+
.turbo/

Justfile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
deps:
2-
bun install
3-
4-
[working-directory: 'frontend']
5-
build-frontend: deps
6-
bun run build
7-
8-
[working-directory: 'backend']
9-
build-backend: deps
1+
build:
102
bun run build
113

12-
build-all: build-frontend build-backend
13-
14-
dist: build-all
4+
dist: build
155
mkdir -p dist
166
cp -r backend/out/index.js dist/
177
cp -r backend/drizzle dist/

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"name": "nexus-gate-server",
2727
"private": true,
2828
"scripts": {
29-
"build": "NODE_ENV=production bun build src/index.ts --target bun --outdir out/",
29+
"build": "bun check && NODE_ENV=production COMMIT_SHA=$(git rev-parse HEAD) bun build src/index.ts --target bun --outdir out/",
3030
"check": "tsgo -p tsconfig.check.json",
3131
"dev": "COMMIT_SHA=$(git rev-parse HEAD) CONSOLA_LEVEL=9999 FRONTEND_DIR=../frontend/dist bun --watch --hot --no-clear-screen --inspect src/index.ts",
3232
"fmt": "oxfmt .",

bun.lock

Lines changed: 25 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"start": "VITE_COMMIT_SHA=$(git rev-parse HEAD) vite --port 3001",
6+
"dev": "VITE_COMMIT_SHA=$(git rev-parse HEAD) vite --port 3001",
77
"build": "vite build",
88
"serve": "vite preview",
9-
"test": "vitest run"
9+
"test": "vitest run",
10+
"check": "tsc --noEmit",
11+
"lint": "eslint",
12+
"fmt": "prettier --write --list-different ."
1013
},
1114
"dependencies": {
1215
"@elysiajs/eden": "^1.4.6",

0 commit comments

Comments
 (0)