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

From monolithic to Turbo repo #4

Merged
merged 28 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9c7e113
feat(create-turbo): apply official-starter transform
turbobot-temp Jul 1, 2024
945db6d
feat(create-turbo): apply package-manager transform
turbobot-temp Jul 1, 2024
82d9ba1
create turbo repo
amitamrutiya Jul 1, 2024
87190ed
feat(chat-room): add Next.js configuration files and initial page com…
amitamrutiya Jul 1, 2024
6cce85f
chore: Add initial code for chat server
amitamrutiya Jul 1, 2024
fa60885
feat(video-server): add User and RoomUser interfaces
amitamrutiya Jul 1, 2024
08f429e
feat(video-room): add Next.js configuration files, ESLint configurati…
amitamrutiya Jul 1, 2024
d845a53
chore: Update dashboard package name and dev server ports
amitamrutiya Jul 1, 2024
90fef9a
feat(ui): add button component and utility function
amitamrutiya Jul 1, 2024
9152b86
chore: Add database configuration files and scripts
amitamrutiya Jul 1, 2024
47e18df
chore: Update Tailwind CSS configuration and styles
amitamrutiya Jul 1, 2024
a089be1
chore: Add @repo/common and @repo/store packages
amitamrutiya Jul 1, 2024
25a55e1
chore: Remove unused configuration and code files for chat-room and v…
amitamrutiya Jul 2, 2024
16ba544
Update dependencies and add new atoms for audio, video, and file tran…
amitamrutiya Jul 2, 2024
6bee955
feat(ui): add toast component and useToast hook
amitamrutiya Jul 2, 2024
aef0c02
feat(common): add types for AvailableFiles
amitamrutiya Jul 2, 2024
371592c
feat: Add bug and feature issue templates
amitamrutiya Jul 4, 2024
4059061
chore: Add pre-commit hook to prevent committing unwanted lock files
amitamrutiya Jul 4, 2024
4ec6bff
chore: Enable generation of .d.ts files for TypeScript and JavaScript…
amitamrutiya Jul 4, 2024
6a23332
chore: Enable generation of .d.ts files for TypeScript and JavaScript…
amitamrutiya Jul 4, 2024
e60f265
chore: Add postcss.config.js and .dockerignore files, and update next…
amitamrutiya Jul 3, 2024
ba2bfb6
chore: Update npm dependencies and add new schemas for chat, profile,…
amitamrutiya Jul 3, 2024
f874ad2
feat(db): add initial database tables for user, Account, and chats
amitamrutiya Jul 3, 2024
dc1c43f
chore: Update npm dependencies and add new atoms for audio, video, an…
amitamrutiya Jul 3, 2024
9075b3c
add all required shadcn ui components
amitamrutiya Jul 4, 2024
7297eca
chore: Add configuration files for commitlint, dockerignore, eslint, …
amitamrutiya Jul 4, 2024
867141e
replace frontend with turbo repo
amitamrutiya Jul 4, 2024
122b44c
chore: Remove .gitignore for db package
amitamrutiya Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [2, "always", ["ci", "chore", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "assets"]]
}
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// 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,
},
rules: {
"no-unused-vars": "off",
"no-redeclare": "off",
}
};
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug
about: Create a report to help us improve
title: "bug: "
labels: bug
assignees: ''
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Do something
2. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots or GIFs**
If applicable, add screenshots to help explain your problem.

**Info (please complete the following information):**
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'feature: '
labels: enhancement
assignees: ''
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### PR Fixes:
- 1
- 2

Resolves #[Issue Number if there]

### Checklist before requesting a review
- [ ] I have performed a self-review of my code
- [ ] I assure there is no similar/duplicate pull request regarding same issue
39 changes: 39 additions & 0 deletions .github/workflows/lint_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CommitLint, Linting and formatting
on:
pull_request:
branches:
- '**'

jobs:

Continuous-Integration:

name: Performs linting, formatting on the application
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Yarn dependencies
uses: actions/cache@v2
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install Yarn and Dependencies
run: yarn install --frozen-lockfile

- name: Print versions
run: |
git --version
yarn --version

- name: Run linting check
run: yarn run lint

- name: Check formatting
run: yarn run format
27 changes: 0 additions & 27 deletions .github/workflows/workflow_backend.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/workflow_frontend.yml

This file was deleted.

144 changes: 25 additions & 119 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,132 +1,38 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
package-lock.json

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Optional stylelint cache
.stylelintcache
# Dependencies
node_modules
.pnp
.pnp.js

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus
# Testing
coverage

# Serverless directories
.serverless/
# Turbo
.turbo

# FuseBox cache
.fusebox/
# Vercel
.vercel

# DynamoDB Local files
.dynamodb/
# Build Outputs
.next/
out/
build
dist

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
yarn.lock
# Misc
.DS_Store
*.pem
File renamed without changes.
19 changes: 19 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# Define the unwanted lock files
unwanted_files=("package-lock.json" "pnpm-lock.yaml" "bun.lockb")

# Check for unwanted lock files in the staged changes
for file in "${unwanted_files[@]}"; do
if git diff --cached --name-only | grep -qE "^$file$"; then
echo "Error: Commits containing '$file' are not allowed. Please use Yarn and remove this file from your commit."
exit 1
fi
done

# 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
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{ts,tsx,json}": ["prettier --write"]
}
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/.vscode
/node_modules
./dist

*.yml
*.yaml

*.env
.env
.env.*
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": false,
"printWidth":120,
"bracketSpacing": true,
"tabWidth": 2,
"trailingComma": "es5",
"semi": true
}
Loading
Loading