-
Notifications
You must be signed in to change notification settings - Fork 1
Improve developer experience baseline #108
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
Open
deancochran
wants to merge
1
commit into
dev
Choose a base branch
from
dx/developer-experience-baseline
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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,50 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - dev | ||
| - main | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| ci: | ||
| name: Typecheck, lint, test, and build | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| CI: true | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Enable pnpm from packageManager | ||
| run: corepack enable && corepack prepare pnpm@10.33.0 --activate | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Check types | ||
| run: pnpm check-types | ||
|
|
||
| - name: Lint | ||
| run: pnpm lint | ||
|
|
||
| - name: Unit and component tests | ||
| run: pnpm test | ||
|
|
||
| - name: Build web | ||
| run: pnpm --filter web build | ||
|
|
||
| - name: Verify database static checks | ||
| run: pnpm --filter @repo/db db:verify:static |
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
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
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,21 @@ | ||
| # GradientPeak mobile Maestro/E2E template. | ||
| # Copy to apps/mobile/.env.e2e for local Maestro runs. | ||
|
|
||
| APP_ENV=development | ||
| EXPO_PUBLIC_MAESTRO_E2E=1 | ||
| EXPO_PUBLIC_API_URL=http://127.0.0.1:3000 | ||
| EXPO_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321 | ||
| EXPO_PUBLIC_MAESTRO_E2E_API_URL=http://10.0.2.2:3000 | ||
| EXPO_PUBLIC_MAESTRO_E2E_SUPABASE_URL=http://10.0.2.2:54321 | ||
| EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEY= | ||
| EXPO_PUBLIC_REDIRECT_URI=gradientpeak-dev://integrations | ||
| EXPO_PUBLIC_GOOGLE_API_KEY= | ||
| MAESTRO_APP_ID=com.deancochran.gradientpeak.dev | ||
| MAESTRO_SIGNUP_EMAIL_PREFIX=gradientpeak.maestro | ||
| MAESTRO_SIGNUP_EMAIL_DOMAIN=example.com | ||
|
|
||
| # Sentry and PostHog are normally disabled for E2E unless these are filled. | ||
| EXPO_PUBLIC_SENTRY_DSN= | ||
| EXPO_PUBLIC_ENABLE_SENTRY_IN_DEV=0 | ||
| EXPO_PUBLIC_POSTHOG_KEY= | ||
| EXPO_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com |
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,25 @@ | ||
| # GradientPeak mobile local development template. | ||
| # Copy to apps/mobile/.env and fill in real local or hosted values. | ||
|
|
||
| APP_ENV=development | ||
| EXPO_PUBLIC_APP_SCHEME=gradientpeak-dev | ||
| EXPO_PUBLIC_API_URL=http://localhost:3000 | ||
| EXPO_PUBLIC_SUPABASE_URL=http://localhost:54321 | ||
| EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEY= | ||
| EXPO_PUBLIC_REDIRECT_URI=gradientpeak-dev://integrations | ||
| EXPO_PUBLIC_GOOGLE_API_KEY= | ||
| EXPO_PUBLIC_ENABLE_SERVER_OVERRIDE=1 | ||
| EXPO_PUBLIC_ENABLE_MOBILE_LOGS=0 | ||
|
|
||
| # Sentry and PostHog telemetry. Leave blank to disable local telemetry. | ||
| EXPO_PUBLIC_SENTRY_DSN= | ||
| EXPO_PUBLIC_ENABLE_SENTRY_IN_DEV=0 | ||
| EXPO_PUBLIC_SENTRY_TRACES_SAMPLE_RATE=1 | ||
| EXPO_PUBLIC_SENTRY_REPLAYS_ON_ERROR_SAMPLE_RATE=1 | ||
| EXPO_PUBLIC_SENTRY_REPLAYS_SESSION_SAMPLE_RATE=0 | ||
| SENTRY_ORG= | ||
| SENTRY_PROJECT= | ||
| SENTRY_AUTH_TOKEN= | ||
| EXPO_PUBLIC_POSTHOG_KEY= | ||
| EXPO_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com | ||
| EXPO_PUBLIC_POSTHOG_DEBUG=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
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,61 @@ | ||
| # GradientPeak web local development template. | ||
| # Copy to apps/web/.env.local and fill in provider/client secrets as needed. | ||
|
|
||
| APP_URL=http://localhost:3000 | ||
| NEXT_PUBLIC_APP_URL=http://localhost:3000 | ||
| BETTER_AUTH_SECRET=local-development-secret-change-me | ||
|
|
||
| DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres | ||
| POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres | ||
| NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321 | ||
| NEXT_PRIVATE_SUPABASE_URL=http://127.0.0.1:54321 | ||
| NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY= | ||
| NEXT_PRIVATE_SUPABASE_SECRET_KEY= | ||
| SUPABASE_SERVICE_ROLE_KEY= | ||
|
|
||
| SUPABASE_AUTH_SITE_URL=http://localhost:3000 | ||
| SUPABASE_AUTH_WEB_REDIRECT_URL=http://localhost:3000/auth/confirm | ||
| SUPABASE_AUTH_WEB_REDIRECT_URL_SECURE=http://localhost:3000/auth/confirm | ||
|
|
||
| OAUTH_CALLBACK_BASE_URL=http://localhost:3000 | ||
| WAHOO_WEBHOOK_TOKEN= | ||
| STRAVA_CLIENT_ID= | ||
| STRAVA_CLIENT_SECRET= | ||
| WAHOO_CLIENT_ID= | ||
| WAHOO_CLIENT_SECRET= | ||
| TRAININGPEAKS_CLIENT_ID= | ||
| TRAININGPEAKS_CLIENT_SECRET= | ||
| GARMIN_CLIENT_ID= | ||
| GARMIN_CLIENT_SECRET= | ||
| ZWIFT_CLIENT_ID= | ||
| ZWIFT_CLIENT_SECRET= | ||
|
|
||
| NEXT_PUBLIC_MOBILE_AUTH_REDIRECT_URI=gradientpeak-dev://auth/confirm | ||
| NEXT_PUBLIC_MOBILE_REDIRECT_URI=gradientpeak-dev://integrations | ||
| NEXT_PUBLIC_MOBILE_REDIRECT_FALLBACK=gradientpeak-dev://integrations | ||
| AUTH_ALLOWED_DEEP_LINK_PREFIXES=gradientpeak-dev://,gradientpeak:// | ||
| EXPO_PUBLIC_APP_SCHEME=gradientpeak-dev | ||
|
|
||
| AUTH_EMAIL_MODE=smtp | ||
| AUTH_EMAIL_FROM=GradientPeak Local <noreply@localhost> | ||
| AUTH_EMAIL_REPLY_TO=noreply@localhost | ||
| AUTH_SMTP_HOST=127.0.0.1 | ||
| AUTH_SMTP_PORT=54324 | ||
| AUTH_SMTP_USER= | ||
| AUTH_SMTP_PASS= | ||
| AUTH_SMTP_SECURE=false | ||
|
|
||
| # Sentry and PostHog telemetry. These are safe to leave blank for local work. | ||
| # Fill them when you want the local dev server/browser to send events upstream. | ||
| APP_ENV=development | ||
| SENTRY_DSN= | ||
| SENTRY_TRACES_SAMPLE_RATE=1 | ||
| VITE_SENTRY_DSN= | ||
| VITE_SENTRY_TRACES_SAMPLE_RATE=1 | ||
| POSTHOG_KEY= | ||
| POSTHOG_HOST=https://us.i.posthog.com | ||
| POSTHOG_SECRET_KEY= | ||
| POSTHOG_PERSONAL_API_KEY= | ||
| VITE_POSTHOG_KEY= | ||
| VITE_POSTHOG_HOST=https://us.i.posthog.com | ||
| VITE_POSTHOG_DEBUG=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
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
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
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,6 @@ | ||
| # GradientPeak local database template. | ||
| # Copy to packages/db/.env when DB package commands need explicit connection values. | ||
|
|
||
| DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres | ||
| POSTGRES_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres | ||
| SUPABASE_DB_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this template, any developer who copies
apps/web/.env.exampleand usesAUTH_EMAIL_MODE=smtpwill send Nodemailer to port 54324. In our Supabase config that port is the Inbucket web UI (packages/db/supabase/config.toml:92-95); the SMTP listener is 54325, so verification/reset emails fail to send instead of appearing in Inbucket. Set this to 54325 or change the Supabase SMTP port to match.Useful? React with 👍 / 👎.