Skip to content

Commit

Permalink
run + build fe + be at once
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 5, 2024
1 parent 821d34a commit e669250
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ pnpm test


### Usage ###
# Run in development mode with hot reload
pnpm dev
# Run both frontend and backend in development mode with hot reload
pnpm dev:all

# Run tests
pnpm test
Expand All @@ -288,8 +288,8 @@ pnpm lint
# Format code
pnpm format

# Build for production
pnpm build
# Build frontend and backend for production
pnpm build:all

# Start production server
pnpm start
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"start": "node dist/index.js",
"dev": "tsx watch src/index.ts",
"dev:all": "concurrently \"pnpm dev\" \"cd frontend && pnpm dev\"",
"prebuild": "rm -rf dist",
"build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --sourcemap --packages=external && cp .env dist/ 2>/dev/null || true",
"prebuild": "rm -rf dist && cd frontend && pnpm build",
"build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --sourcemap --packages=external && cp .env dist/ 2>/dev/null || true && cp -r frontend/dist dist/frontend",
"build:all": "pnpm build",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --detectOpenHandles --maxWorkers=50% --maxConcurrency=7",
"test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests src/__tests__/*.test.ts --maxWorkers=50% --maxConcurrency=7",
"smoke-test": "node scripts/smoke-test.js",
Expand Down

0 comments on commit e669250

Please sign in to comment.