-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Setup Monorepo foundation #1
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2d0df2f
feat: Setup Monorepo foundation
senutpal d49c904
fix: remove conflicting project setting in shared eslint config
senutpal d7cebb6
fix: address code review feedback
senutpal f6a9dd6
fix: increase PRESENCE_TTL to 2x heartbeat interval
senutpal 434c138
fix: add JSDoc for PRESENCE_TTL, createdAt, and editors fields
senutpal 8511226
refactor: derive TIER_FEATURES from lower tiers to reduce duplication
senutpal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # ================================== | ||
| # DevRadar Environment Configuration | ||
| # ================================== | ||
|
|
||
| # Node Environment | ||
| NODE_ENV=development | ||
|
|
||
| # Server Configuration | ||
| PORT=3000 | ||
| HOST=localhost | ||
|
|
||
| # Database (PostgreSQL) | ||
| DATABASE_URL=postgresql://devradar:devradar@localhost:5432/devradar?schema=public | ||
|
|
||
| # Redis | ||
| REDIS_URL=redis://localhost:6379 | ||
|
|
||
| # GitHub OAuth | ||
| GITHUB_CLIENT_ID=your_github_client_id | ||
| GITHUB_CLIENT_SECRET=your_github_client_secret | ||
| GITHUB_CALLBACK_URL=http://localhost:3000/auth/callback | ||
|
|
||
| # JWT | ||
| JWT_SECRET=your_super_secret_jwt_key_change_in_production | ||
| JWT_EXPIRES_IN=7d | ||
|
|
||
| # WebSocket | ||
| WS_PORT=3001 | ||
|
|
||
| # Logging | ||
| LOG_LEVEL=debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: 'npm' | ||
| directory: '/' | ||
| schedule: | ||
| interval: 'weekly' | ||
| day: 'monday' | ||
| time: '09:00' | ||
| timezone: 'UTC' | ||
| open-pull-requests-limit: 10 | ||
| groups: | ||
| dev-dependencies: | ||
| dependency-type: 'development' | ||
| update-types: | ||
| - 'minor' | ||
| - 'patch' | ||
| production-dependencies: | ||
| dependency-type: 'production' | ||
| update-types: | ||
| - 'patch' | ||
| labels: | ||
| - 'dependencies' | ||
| - 'automated' | ||
| commit-message: | ||
| prefix: 'deps' | ||
|
|
||
| - package-ecosystem: 'github-actions' | ||
| directory: '/' | ||
| schedule: | ||
| interval: 'weekly' | ||
| day: 'monday' | ||
| labels: | ||
| - 'ci' | ||
| - 'automated' | ||
| commit-message: | ||
| prefix: 'ci' | ||
|
|
||
| - package-ecosystem: 'docker' | ||
| directory: '/' | ||
| schedule: | ||
| interval: 'weekly' | ||
| day: 'monday' | ||
| labels: | ||
| - 'docker' | ||
| - 'automated' | ||
| commit-message: | ||
| prefix: 'docker' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
| branches: [main, develop] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build and Test | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 2 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10.27.0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Check formatting | ||
| run: pnpm format:check | ||
|
|
||
| - name: Lint | ||
| run: pnpm lint | ||
|
|
||
| - name: Type check | ||
| run: pnpm check-types | ||
|
|
||
| - name: Build | ||
| run: pnpm build | ||
|
|
||
| - name: Test | ||
| run: pnpm test | ||
| env: | ||
| CI: true | ||
|
|
||
| security: | ||
| name: Security Scan | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| permissions: | ||
| security-events: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10.27.0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Audit dependencies | ||
| run: pnpm audit --audit-level high | ||
| continue-on-error: true | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: typescript | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: 'Version to release (e.g., 1.0.0)' | ||
| required: true | ||
| type: string | ||
|
|
||
| concurrency: | ||
| group: release | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
| TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
| # Set release version from tag or manual input | ||
| RELEASE_VERSION: ${{ github.event.inputs.version || github.ref_name }} | ||
|
|
||
| jobs: | ||
| release: | ||
| name: Build and Publish | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10.27.0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build all packages | ||
| run: pnpm build | ||
|
|
||
| - name: Run tests | ||
| run: pnpm test | ||
| env: | ||
| CI: true | ||
|
|
||
| # Extension packaging (will be configured in Phase 1) | ||
| # - name: Package VS Code Extension | ||
| # run: pnpm --filter @devradar/extension package | ||
|
|
||
| # - name: Publish to VS Code Marketplace | ||
| # run: pnpm --filter @devradar/extension publish | ||
| # env: | ||
| # VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
|
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/') | ||
| with: | ||
| tag_name: ${{ github.event_name == 'workflow_dispatch' && format('v{0}', env.RELEASE_VERSION) || github.ref_name }} | ||
| generate_release_notes: true | ||
| # files: | | ||
| # apps/extension/*.vsix | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Dependencies | ||
| node_modules/ | ||
| .pnpm-store/ | ||
|
|
||
| # Build outputs | ||
| dist/ | ||
| build/ | ||
| .next/ | ||
| out/ | ||
| *.tsbuildinfo | ||
|
|
||
| # Turbo | ||
| .turbo/ | ||
|
|
||
| # Environment | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
| !.env.example | ||
|
|
||
| # IDE | ||
| .idea/ | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/extensions.json | ||
| *.swp | ||
| *.swo | ||
|
|
||
| # OS | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Logs | ||
| *.log | ||
| npm-debug.log* | ||
| pnpm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
|
|
||
| # Testing | ||
| coverage/ | ||
|
|
||
| # VS Code Extension | ||
| *.vsix | ||
|
|
||
| # Docker | ||
| docker-compose.override.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pnpm lint-staged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 22.12.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Dependencies and build outputs | ||
| node_modules/ | ||
| dist/ | ||
| build/ | ||
| .next/ | ||
| coverage/ | ||
| .turbo/ | ||
|
|
||
| # Lock files (already formatted by package managers) | ||
| pnpm-lock.yaml | ||
| package-lock.json | ||
| yarn.lock | ||
| *.lock | ||
|
|
||
| # VS Code extension builds | ||
| *.vsix | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Environment files | ||
| .env | ||
| .env.local | ||
| .env.*.local | ||
|
|
||
| # IDE and editor files | ||
| .idea/ | ||
| .vscode/ | ||
| *.swp | ||
| *.swo | ||
|
|
||
| # OS files | ||
| .DS_Store | ||
| Thumbs.db | ||
|
|
||
| # Logs | ||
| *.log | ||
| npm-debug.log* | ||
| pnpm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "semi": true, | ||
| "singleQuote": true, | ||
| "tabWidth": 2, | ||
| "trailingComma": "es5", | ||
| "printWidth": 100, | ||
| "bracketSpacing": true, | ||
| "arrowParens": "always", | ||
| "endOfLine": "lf" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "recommendations": [ | ||
| "dbaeumer.vscode-eslint", | ||
| "esbenp.prettier-vscode", | ||
| "ms-vscode.vscode-typescript-next", | ||
| "bradlc.vscode-tailwindcss", | ||
| "prisma.prisma", | ||
| "Orta.vscode-jest", | ||
| "ms-azuretools.vscode-docker", | ||
| "GitHub.copilot", | ||
| "eamodio.gitlens" | ||
| ] | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.