generated from t3-oss/create-t3-turbo
-
-
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.
Merge pull request #1 from ErickCReis/app-router
feat:wip: Migração app router
- Loading branch information
Showing
172 changed files
with
10,454 additions
and
11,964 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,57 +5,53 @@ on: | |
branches: ["*"] | ||
push: | ||
branches: ["main"] | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
# You can leverage Vercel Remote Caching with Turbo to speed up your builds | ||
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds | ||
env: | ||
FORCE_COLOR: 3 | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
|
||
jobs: | ||
build-lint: | ||
env: | ||
DATABASE_URL: file:./db.sqlite | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Copy env | ||
shell: bash | ||
run: cp .env.example .env | ||
|
||
- name: Lint | ||
run: pnpm lint && pnpm lint:ws | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Setup Node 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install deps (with cache) | ||
run: pnpm install | ||
|
||
# Normally, this would be done as part of the turbo pipeline - however since the Expo app doesn't depend on `@acme/db` it doesn't care. | ||
# TODO: Free for all to find a better solution here. | ||
- name: Generate Prisma Client | ||
run: pnpm turbo db:generate | ||
|
||
- name: Build, lint and type-check | ||
run: pnpm turbo build lint type-check | ||
env: | ||
SKIP_ENV_VALIDATION: true | ||
|
||
# FIXME: Add this back once we have an Expo SDK supporting React 18.2 | ||
# - name: Check workspaces | ||
# run: pnpm manypkg check | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Format | ||
run: pnpm format | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Typecheck | ||
run: pnpm typecheck |
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,12 +1 @@ | ||
# Expo doesn't play nice with pnpm by default. | ||
# The symbolic links of pnpm break the rules of Expo monorepos. | ||
# @link https://docs.expo.dev/guides/monorepos/#common-issues | ||
node-linker=hoisted | ||
|
||
# In order to cache Prisma correctly | ||
public-hoist-pattern[]=*prisma* | ||
|
||
# FIXME: @prisma/client is required by the @acme/auth, | ||
# but we don't want it installed there since it's already | ||
# installed in the @acme/db package | ||
strict-peer-dependencies=false |
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 @@ | ||
18 | ||
20.12 |
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,9 +1,14 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], | ||
"eslint.rules.customizations": [ | ||
{ | ||
"rule": "*", | ||
"severity": "warn" | ||
} | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} | ||
} |
Oops, something went wrong.