Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a Monorepo #787

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
47cda62
feat: apps/next-frontend packages/common packages/database packages/e…
hiteshsharma-gh Jun 9, 2024
de93078
run using docker, Dockerfile and docker-compose.yml
hiteshsharma-gh Jun 11, 2024
3747137
prettier and eslint fix, github templates
hiteshsharma-gh Jun 11, 2024
a1a2a96
remove extra files
hiteshsharma-gh Jun 11, 2024
50d8b05
merge
hiteshsharma-gh Jun 11, 2024
ef02f4e
update Readme.md and fix docker-compose.yml
hiteshsharma-gh Jun 12, 2024
dc39192
formatting the whole codebase
thrishank Jun 5, 2024
141f4a9
chore: improving code maintainability for singleton cache
Jun 12, 2024
daa5be0
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
de9481f
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
81c33d7
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
d00f027
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
2e390a0
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
a7bb68b
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
dc431a8
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
9766360
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
354601a
Update ContentRenderer.tsx
TanmayDhobale Jun 13, 2024
babf9fe
Update ContentRenderer.tsx
TanmayDhobale Jun 14, 2024
be9ebc6
feat: apps/next-frontend packages/common packages/database packages/e…
hiteshsharma-gh Jun 9, 2024
6e56c4c
run using docker, Dockerfile and docker-compose.yml
hiteshsharma-gh Jun 11, 2024
f4a67f6
prettier and eslint fix, github templates
hiteshsharma-gh Jun 11, 2024
2af4ff2
merge
hiteshsharma-gh Jun 11, 2024
f5e1825
merge pull and minor fix
hiteshsharma-gh Jun 15, 2024
619a6d8
minor fix
hiteshsharma-gh Jun 15, 2024
e870d84
minor fix
hiteshsharma-gh Jun 15, 2024
39ab1dd
format
hiteshsharma-gh Jun 15, 2024
467257d
merge pull
hiteshsharma-gh Jun 15, 2024
3a1abc3
resolve conflicts
hiteshsharma-gh Jun 16, 2024
c3a39bf
add husky
hiteshsharma-gh Jun 17, 2024
ceac16a
resolve conflicts
hiteshsharma-gh Jun 20, 2024
bb19112
resolve conflicts
hiteshsharma-gh Jun 26, 2024
0ba5fea
resolve conflicts
hiteshsharma-gh Jul 8, 2024
0e5e732
resolve conflicts
hiteshsharma-gh Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules
build
.git
.gitignore
.env.example
.env
postgres-data
.next
.env
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

120 changes: 0 additions & 120 deletions .eslintrc

This file was deleted.

10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This configuration only applies to the package manager root.
/** @type {import("eslint").Linter.Config} */
module.exports = {
ignorePatterns: ["apps/**", "packages/**"],
extends: ["@repo/eslint-config/library.js"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
};
24 changes: 0 additions & 24 deletions .github/workflows/lint.yml

This file was deleted.

56 changes: 28 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
.env
# dependencies
/node_modules
/.pnp

# Dependencies
node_modules
.pnp
.pnp.js
.yarn/install-state.gz
.storybook

# docker volume
/postgres-data/
# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# testing
/coverage
# Testing
coverage

# next.js
/.next/
/out/
# Turbo
.turbo

# production
/build
# Vercel
.vercel

# misc
.DS_Store
*.pem
# Build Outputs
.next/
out/
build
dist

# debug

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
# Misc
.DS_Store
*.pem

*storybook.log
postgres-data
File renamed without changes.
4 changes: 0 additions & 4 deletions .husky/post-merge

This file was deleted.

17 changes: 12 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run format:fix
npm run lint:fix
# Check for unwanted lock files in the staged changes
if git diff --cached --name-only | grep -qE "^(package-lock\.json|pnpm-lock\.yaml|bun\.lockb)$"; then
echo "Error: Commits containing 'package-lock.json', 'pnpm-lock.yaml', or 'bun.lockb' are not allowed. Please use Yarn and remove these files from your commit."
exit 1
fi

git add .
# Allow only yarn.lock, not mandatory but should be the only lock file if present
if git diff --cached --name-only | grep -qE "^(package-lock\.json|pnpm-lock\.yaml|bun\.lockb)$"; then
echo "Error: Only 'yarn.lock' is allowed as a lock file. Please remove any other lock files from your commit."
exit 1
fi
Empty file added .npmrc
Empty file.
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
.github
.github
dist
.env.*
.env
postgres-data
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"plugins": [
"prettier-plugin-tailwindcss"
]
}
}
24 changes: 0 additions & 24 deletions .storybook/main.ts

This file was deleted.

15 changes: 0 additions & 15 deletions .storybook/preview.ts

This file was deleted.

5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN npm install
RUN DATABASE_URL=$DATABASE_URL npx prisma generate
RUN DATABASE_URL=$DATABASE_URL npm run build

RUN yarn install

EXPOSE 3000
EXPOSE 5555

CMD ["npm", "run", "start"]
CMD [ "yarn", "run", "dev:docker" ]
14 changes: 0 additions & 14 deletions Dockerfile.prod

This file was deleted.

Loading