Add Bun and Moon workspace configuration

This commit is contained in:
Asep Haryana Saputra
2026-05-22 12:14:27 +00:00
parent 81bce711b6
commit 4413133bf3
7 changed files with 66 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
WEB_PORT=5173
API_PORT=3000
DATABASE_URL=postgres://postgres:postgres@localhost:5432/zeavis_edu
+13
View File
@@ -0,0 +1,13 @@
node_modules/
.bun/
.moon/cache/
.env
.env.*
!.env.example
dist/
build/
coverage/
*.tsbuildinfo
.DS_Store
+2
View File
@@ -0,0 +1,2 @@
node:
packageManager: bun
+4
View File
@@ -0,0 +1,4 @@
projects:
web: apps/web
api: apps/api
shared: packages/shared
+2
View File
@@ -0,0 +1,2 @@
[install]
exact = true
+18
View File
@@ -0,0 +1,18 @@
{
"name": "zeavis-edu",
"private": true,
"packageManager": "bun@1.1.42",
"workspaces": [
"apps/*",
"packages/*"
],
"scripts": {
"dev": "moon run :dev",
"build": "moon run :build",
"typecheck": "moon run :typecheck"
},
"devDependencies": {
"@moonrepo/cli": "^1.32.4",
"typescript": "^5.6.3"
}
}
+24
View File
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"@zeavis/shared": ["packages/shared/src/index.ts"],
"@zeavis/shared/*": ["packages/shared/src/*"]
}
}
}