Skip to content

Commit 1f5e5d8

Browse files
committed
🆙 repo Upgrade repo & rename packages (#73)
1 parent 7e23723 commit 1f5e5d8

File tree

262 files changed

+2851
-2229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

262 files changed

+2851
-2229
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
body:
2+
- type: markdown
3+
attributes:
4+
value: |
5+
Thank you for taking the time to file a feature request. Please fill out this form as completely as possible.
6+
- type: textarea
7+
attributes:
8+
label: Describe the feature you'd like to request
9+
description: Please describe the feature as clear and concise as possible. Remember to add context as to why you believe this feature is needed.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Describe the solution you'd like to see
15+
description: Please describe the solution you would like to see. Adding example usage is a good way to provide context.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: Additional information
21+
description: Add any other information related to the feature here. If your feature request is related to any issues or discussions, link them here.

‎.github/renovate.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"extends": ["config:base"],
44
"packageRules": [
55
{
6-
"matchPackagePatterns": ["^@acme/"],
6+
"matchPackagePatterns": ["^@swy/"],
77
"enabled": false
88
}
99
],

‎.gitignore‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ out/
1818

1919
# expo
2020
.expo/
21-
dist/
2221
expo-env.d.ts
2322
apps/expo/.gitignore
23+
apps/expo/ios
24+
apps/expo/android
2425

2526
# production
2627
build
@@ -43,6 +44,8 @@ yarn-error.log*
4344
.vercel
4445

4546
# typescript
47+
dist/
48+
.cache
4649
*.tsbuildinfo
4750

4851
# turbo

‎.npmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# The symbolic links of pnpm break the rules of Expo monorepos.
33
# @link https://docs.expo.dev/guides/monorepos/#common-issues
44
node-linker=hoisted
5-
strict-peer-dependencies=false
5+
link-workspace-packages=true
66

77
# storybook
88
auto-install-peers=true

‎.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.10
1+
20.16

‎.vscode/settings.json‎

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": "explicit"
4+
},
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true,
7+
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }],
8+
"eslint.runtime": "node",
29
"eslint.workingDirectories": [
3-
{
4-
"mode": "auto"
5-
}
10+
{ "pattern": "apps/*/" },
11+
{ "pattern": "packages/*/" },
12+
{ "pattern": "tooling/*/" }
613
],
7-
"editor.formatOnSave": true,
8-
"editor.defaultFormatter": "esbenp.prettier-vscode",
9-
"eslint.format.enable": true,
10-
"[typescript]": {
11-
"editor.defaultFormatter": "esbenp.prettier-vscode"
12-
},
13-
"[typescriptreact]": {
14-
"editor.defaultFormatter": "esbenp.prettier-vscode"
15-
}
14+
"prettier.ignorePath": ".gitignore",
15+
"tailwindCSS.experimental.classRegex": [
16+
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
17+
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]
18+
],
19+
"tailwindCSS.experimental.configFile": "./tooling/tailwind/web.ts",
20+
"typescript.enablePromptUseWorkspaceTsdk": true,
21+
"typescript.preferences.autoImportFileExcludePatterns": [
22+
"next/router.d.ts",
23+
"next/dist/client/router.d.ts"
24+
],
25+
"typescript.tsdk": "node_modules/typescript/lib"
1626
}

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## Version `1.2.0`
4+
5+
### 🆕 Core Updates
6+
7+
- Migrate repo to commit [`create-t3-turbo:86c5f8`](https://github.com/t3-oss/create-t3-turbo/commit/86c5f8898ec67de0c1af6a893f64f1476fb40bb9)
8+
- Upgrade `nodejs` from `20.10` to `20.16`
9+
- Upgrade `pnpm` from `9.1.x` to `9.7`
10+
- Rename `@acme/*` to `@swy/*`
11+
- Add more lint rules & fix
12+
313
## Version `1.1.0`
414

515
### 🆕 Core Updates

‎apps/auth-proxy/README.md‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
# Auth Proxy
22

3-
This is a simple proxy server that enables OAuth authentication for preview environments.
3+
This is a simple proxy server that enables OAuth authentication for preview environments and Expo apps.
44

55
## Setup
66

77
Deploy it somewhere (Vercel is a one-click, zero-config option) and set the following environment variables:
88

99
- `AUTH_DISCORD_ID` - The Discord OAuth client ID
1010
- `AUTH_DISCORD_SECRET` - The Discord OAuth client secret
11-
- `AUTH_REDIRECT_PROXY_URL` - The URL of this proxy server
11+
- `AUTH_REDIRECT_PROXY_URL` - The URL of this proxy server (e.g. )
1212
- `AUTH_SECRET` - Your secret
1313

14-
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.
14+
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.
15+
`AUTH_REDIRECT_PROXY_URL` should only be set for the main application's preview environment. Do not set it for the production environment.
16+
The lines below shows what values should match eachother in both deployments.
17+
18+
> [!NOTE]
19+
>
20+
> For using the proxy for local development set the `AUTH_REDIRECT_PROXY_URL` in the `.env` file as well.
1521
1622
![Environment variables setup](https://github.com/t3-oss/create-t3-turbo/assets/51714798/5fadd3f5-f705-459a-82ab-559a3df881d0)
23+
24+
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.
25+
26+
![Google credentials setup](https://github.com/ahkhanjani/create-t3-turbo/assets/72540492/eaa88685-6fc2-4c23-b7ac-737eb172fa0e)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import baseConfig from "@swy/eslint-config/base";
2+
3+
/** @type {import('typescript-eslint').Config} */
4+
export default [
5+
{
6+
ignores: [".nitro/**", ".output/**"],
7+
},
8+
...baseConfig,
9+
];
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
{
2-
"name": "@acme/auth-proxy",
2+
"name": "@swy/auth-proxy",
33
"private": true,
44
"type": "module",
55
"scripts": {
66
"build": "nitro build",
7-
"clean": "rm -rf .turbo node_modules",
8-
"dev": "nitro dev --port 3001",
9-
"lint": "eslint .",
7+
"clean": "git clean -xdf .cache .nitro .output .turbo .vercel node_modules",
8+
"lint": "eslint",
109
"format": "prettier --check . --ignore-path ../../.gitignore",
1110
"typecheck": "tsc --noEmit"
1211
},
1312
"dependencies": {
14-
"@auth/core": "^0.19.0"
13+
"@auth/core": "0.34.2"
1514
},
1615
"devDependencies": {
17-
"@acme/eslint-config": "workspace:*",
18-
"@acme/prettier-config": "workspace:*",
19-
"@acme/tsconfig": "workspace:*",
20-
"eslint": "^8.56.0",
21-
"nitropack": "^2.8.1",
22-
"prettier": "^3.2.5",
23-
"typescript": "^5.5.4"
16+
"@swy/eslint-config": "workspace:*",
17+
"@swy/prettier-config": "workspace:*",
18+
"@swy/tailwind-config": "workspace:*",
19+
"@swy/tsconfig": "workspace:*",
20+
"@types/node": "catalog:node20",
21+
"eslint": "catalog:",
22+
"h3": "^1.12.0",
23+
"nitropack": "^2.9.7",
24+
"prettier": "catalog:",
25+
"typescript": "catalog:"
2426
},
25-
"eslintConfig": {
26-
"root": true,
27-
"extends": [
28-
"@acme/eslint-config/base"
29-
]
30-
},
31-
"prettier": "@acme/prettier-config"
27+
"prettier": "@swy/prettier-config"
3228
}

0 commit comments

Comments
 (0)