Skip to content

Commit

Permalink
updated configs
Browse files Browse the repository at this point in the history
  • Loading branch information
ValiuchenkoVladyslav committed Sep 13, 2024
1 parent 2e53294 commit 13555e2
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DB_HOST="shoggoth"
# DB connection
DB_USER="shoggoth"
DB_PASSWORD="admin123"
DB_NAME="shoggoth"
DB_PORT="5432"
DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@localhost:${DB_PORT}/${DB_NAME}"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Node dependencies
**/node_modules/

# NestJS & Vite output
# Hono & Vite outputs
**/dist/

# Next.js
Expand Down
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
sherif -f
biome check --staged --no-errors-on-unmatched --write

# Readd staged files (--ignore-missing flag is needed when we're trying to readd deleted file)
git add $(git diff --name-only --cached) --dry-run --ignore-missing
# Readd staged files (--ignore-missing is needed when trying to readd deleted files)
$(git add $(git diff --name-only --cached) --dry-run --ignore-missing)
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"files.exclude": {
"bun.lockb": true,
"LICENSE": true,
"prisma/migrations/": true,
},
"explorer.excludeGitIgnore": true
}
3 changes: 3 additions & 0 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
},
"dependencies": {
"@prisma/client": "^5.19.1",
"@tanstack/react-query": "^5.56.2",
"@trpc/client": "^11.0.0-rc.498",
"@trpc/react-query": "^11.0.0-rc.498",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
10 changes: 9 additions & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
output: "export",
images: {
unoptimized: true,
},
experimental: {
externalDir: true,
},
};

export default nextConfig;
6 changes: 5 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build"
"build": "next build --no-lint"
},
"dependencies": {
"@prisma/client": "^5.19.1",
"@shoggoth/trpc-provider": "*",
"@tanstack/react-query": "^5.56.2",
"@trpc/client": "^11.0.0-rc.498",
"@trpc/react-query": "^11.0.0-rc.498",
"next": "14.2.8",
"react": "^18.3.1",
"react-dom": "^18.3.1"
Expand Down
3 changes: 2 additions & 1 deletion apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
}
],
"paths": {
"~/*": ["./src/*"]
"~/*": ["./src/*"],
"@shoggoth/trpc-provider": ["../../packages/trpc-provider/src/index.tsx"],
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
Expand Down
2 changes: 1 addition & 1 deletion apps/web/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"]
"outputs": [".next/**", "!.next/cache/**", "out/**"]
}
}
}
Binary file modified bun.lockb
Binary file not shown.
File renamed without changes.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "shoggoth",
"private": true,
"workspaces": ["./apps/*"],
"workspaces": ["./apps/*", "./packages/*"],
"packageManager": "[email protected]",
"scripts": {
"build": "turbo build",
"lint": "sherif && biome check",
"lint:fix": "sherif -f && biome check --write",
"dev": "docker-compose -f docker/dev.db.compose.yml up -d && turbo dev"
"dev": "docker-compose --env-file .env -f docker/dev.compose.yml up -d && prisma generate && turbo dev",
"studio": "prisma studio"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand Down

0 comments on commit 13555e2

Please sign in to comment.