-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆙
repo
Upgrade repo & rename packages (#73)
- Loading branch information
1 parent
7e23723
commit 1f5e5d8
Showing
262 changed files
with
2,851 additions
and
2,229 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for taking the time to file a feature request. Please fill out this form as completely as possible. | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature you'd like to request | ||
description: Please describe the feature as clear and concise as possible. Remember to add context as to why you believe this feature is needed. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like to see | ||
description: Please describe the solution you would like to see. Adding example usage is a good way to provide context. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
description: Add any other information related to the feature here. If your feature request is related to any issues or discussions, link them here. |
This file contains 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 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 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 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 |
---|---|---|
@@ -1 +1 @@ | ||
20.10 | ||
20.16 |
This file contains 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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], | ||
"eslint.runtime": "node", | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
{ "pattern": "apps/*/" }, | ||
{ "pattern": "packages/*/" }, | ||
{ "pattern": "tooling/*/" } | ||
], | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"eslint.format.enable": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
"prettier.ignorePath": ".gitignore", | ||
"tailwindCSS.experimental.classRegex": [ | ||
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | ||
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] | ||
], | ||
"tailwindCSS.experimental.configFile": "./tooling/tailwind/web.ts", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"typescript.preferences.autoImportFileExcludePatterns": [ | ||
"next/router.d.ts", | ||
"next/dist/client/router.d.ts" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains 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 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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
# Auth Proxy | ||
|
||
This is a simple proxy server that enables OAuth authentication for preview environments. | ||
This is a simple proxy server that enables OAuth authentication for preview environments and Expo apps. | ||
|
||
## Setup | ||
|
||
Deploy it somewhere (Vercel is a one-click, zero-config option) and set the following environment variables: | ||
|
||
- `AUTH_DISCORD_ID` - The Discord OAuth client ID | ||
- `AUTH_DISCORD_SECRET` - The Discord OAuth client secret | ||
- `AUTH_REDIRECT_PROXY_URL` - The URL of this proxy server | ||
- `AUTH_REDIRECT_PROXY_URL` - The URL of this proxy server (e.g. ) | ||
- `AUTH_SECRET` - Your secret | ||
|
||
Make sure the `AUTH_SECRET` and `AUTH_REDIRECT_PROXY_URL` match the values set for the main application's deployment for preview environments, and that you're using the same OAuth credentials for the proxy and the application's preview environment. The lines below shows what values should match eachother in both deployments. | ||
Make sure the `AUTH_SECRET` and `AUTH_REDIRECT_PROXY_URL` match the values set for the main application's deployment for preview environments, and that you're using the same OAuth credentials for the proxy and the application's preview environment. | ||
`AUTH_REDIRECT_PROXY_URL` should only be set for the main application's preview environment. Do not set it for the production environment. | ||
The lines below shows what values should match eachother in both deployments. | ||
|
||
> [!NOTE] | ||
> | ||
> For using the proxy for local development set the `AUTH_REDIRECT_PROXY_URL` in the `.env` file as well. | ||
![Environment variables setup](https://github.com/t3-oss/create-t3-turbo/assets/51714798/5fadd3f5-f705-459a-82ab-559a3df881d0) | ||
|
||
For providers that require an origin and a redirect URL, set them to `{AUTH_REDIRECT_PROXY_URL}` and `{AUTH_REDIRECT_PROXY_URL}/r/callback/{provider}` accordingly. | ||
|
||
![Google credentials setup](https://github.com/ahkhanjani/create-t3-turbo/assets/72540492/eaa88685-6fc2-4c23-b7ac-737eb172fa0e) |
This file contains 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,9 @@ | ||
import baseConfig from "@swy/eslint-config/base"; | ||
|
||
/** @type {import('typescript-eslint').Config} */ | ||
export default [ | ||
{ | ||
ignores: [".nitro/**", ".output/**"], | ||
}, | ||
...baseConfig, | ||
]; |
This file contains 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 |
---|---|---|
@@ -1,32 +1,28 @@ | ||
{ | ||
"name": "@acme/auth-proxy", | ||
"name": "@swy/auth-proxy", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "nitro build", | ||
"clean": "rm -rf .turbo node_modules", | ||
"dev": "nitro dev --port 3001", | ||
"lint": "eslint .", | ||
"clean": "git clean -xdf .cache .nitro .output .turbo .vercel node_modules", | ||
"lint": "eslint", | ||
"format": "prettier --check . --ignore-path ../../.gitignore", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@auth/core": "^0.19.0" | ||
"@auth/core": "0.34.2" | ||
}, | ||
"devDependencies": { | ||
"@acme/eslint-config": "workspace:*", | ||
"@acme/prettier-config": "workspace:*", | ||
"@acme/tsconfig": "workspace:*", | ||
"eslint": "^8.56.0", | ||
"nitropack": "^2.8.1", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.5.4" | ||
"@swy/eslint-config": "workspace:*", | ||
"@swy/prettier-config": "workspace:*", | ||
"@swy/tailwind-config": "workspace:*", | ||
"@swy/tsconfig": "workspace:*", | ||
"@types/node": "catalog:node20", | ||
"eslint": "catalog:", | ||
"h3": "^1.12.0", | ||
"nitropack": "^2.9.7", | ||
"prettier": "catalog:", | ||
"typescript": "catalog:" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"extends": [ | ||
"@acme/eslint-config/base" | ||
] | ||
}, | ||
"prettier": "@acme/prettier-config" | ||
"prettier": "@swy/prettier-config" | ||
} |
This file contains 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"extends": "@acme/tsconfig/base.json", | ||
"extends": "@swy/tsconfig/base.json", | ||
"include": ["routes"] | ||
} |
This file contains 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 @@ | ||
{ | ||
"$schema": "https://turborepo.org/schema.json", | ||
"extends": ["//"], | ||
"tasks": { | ||
"build": { | ||
"dependsOn": ["^build"], | ||
"outputs": [".nitro/**", ".output/**", ".vercel/**"] | ||
}, | ||
"dev": { | ||
"persistent": true | ||
} | ||
} | ||
} |
This file contains 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,15 @@ | ||
import baseConfig from "@swy/eslint-config/base"; | ||
import nextjsConfig from "@swy/eslint-config/nextjs"; | ||
import reactConfig from "@swy/eslint-config/react"; | ||
import storybookConfig from "@swy/eslint-config/storybook"; | ||
|
||
/** @type {import('typescript-eslint').Config} */ | ||
export default [ | ||
{ | ||
ignores: [".next/**", "next-env.d.ts"], | ||
}, | ||
...baseConfig, | ||
...reactConfig, | ||
...nextjsConfig, | ||
...storybookConfig, | ||
]; |
This file contains 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 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
1 change: 0 additions & 1 deletion
1
apps/storybook/postcss.config.js → apps/storybook/postcss.config.cjs
This file contains 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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
This file contains 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 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 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 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
Oops, something went wrong.