Skip to content

Commit 726d42e

Browse files
committed
begin rewrite
1 parent b4c2d5a commit 726d42e

158 files changed

Lines changed: 9084 additions & 13588 deletions

File tree

Some content is hidden

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

.firebaserc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/checks.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_TEAM_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6+
TURBO_TEAM: ${{ secrets.VERCEL_TEAM_ID }}
7+
on:
8+
pull_request:
9+
branches: ["**"]
10+
11+
jobs:
12+
Checkstyle-Lint-Build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Install dependencies
19+
run: pnpm install --ignore-scripts
20+
- name: Lint and format
21+
run: pnpm check
22+
id: extract_branch
23+
- name: Pull Vercel Environment Information
24+
run: pnpm vercel pull --yes --environment=preview --git-branch=${{ github.base_ref }} --token=${{ secrets.VERCEL_TOKEN }}
25+
- name: Build Project Artifacts
26+
run: pnpm vercel build --token=${{ secrets.VERCEL_TOKEN }}

.github/workflows/ci.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/nextjs.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

.github/workflows/pnpm-build.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/workflows/preview.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Vercel Preview Deployment
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_TEAM_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6+
TURBO_TEAM: ${{ secrets.VERCEL_TEAM_ID }}
7+
on:
8+
push:
9+
branches-ignore:
10+
- main
11+
jobs:
12+
Deploy-Preview:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Install dependencies
19+
run: pnpm install --ignore-scripts
20+
- name: Pull Vercel Environment Information
21+
run: pnpm vercel pull --yes --environment=preview --git-branch=${{ github.head_ref }} --token=${{ secrets.VERCEL_TOKEN }}
22+
- name: Build Project Artifacts
23+
run: pnpm vercel build --token=${{ secrets.VERCEL_TOKEN }}
24+
- name: Deploy Project Artifacts to Vercel
25+
run: pnpm vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

.github/workflows/production.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Vercel Production Deployment
2+
env:
3+
VERCEL_ORG_ID: ${{ secrets.VERCEL_TEAM_ID }}
4+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5+
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
6+
TURBO_TEAM: ${{ secrets.VERCEL_TEAM_ID }}
7+
on:
8+
push:
9+
branches:
10+
- main
11+
jobs:
12+
Deploy-Production:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v4
18+
- name: Install dependencies
19+
run: pnpm install --ignore-scripts
20+
- name: Pull Vercel Environment Information
21+
run: pnpm vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
22+
- name: Build Project Artifacts
23+
run: pnpm vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
24+
- name: Deploy Project Artifacts to Vercel
25+
run: pnpm vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

components.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"prefix": ""
1212
},
1313
"aliases": {
14-
"components": "@/components",
15-
"utils": "@/lib/utils",
16-
"ui": "@/components/ui",
17-
"lib": "@/lib",
18-
"hooks": "@/hooks"
14+
"components": "~/components",
15+
"utils": "~/lib/utils",
16+
"ui": "~/components/ui",
17+
"lib": "~/lib",
18+
"hooks": "~/hooks"
1919
}
2020
}

eslint.config.js

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { FlatCompat } from "@eslint/eslintrc";
2+
import tseslint from "typescript-eslint";
3+
// @ts-ignore -- no types for this plugin
4+
import drizzle from "eslint-plugin-drizzle";
5+
6+
const compat = new FlatCompat({
7+
baseDirectory: import.meta.dirname,
8+
});
9+
10+
export default tseslint.config(
11+
{
12+
ignores: [".next"],
13+
},
14+
...compat.extends("next/core-web-vitals"),
15+
{
16+
files: ["**/*.ts", "**/*.tsx"],
17+
plugins: {
18+
drizzle,
19+
},
20+
extends: [
21+
...tseslint.configs.recommended,
22+
...tseslint.configs.recommendedTypeChecked,
23+
...tseslint.configs.stylisticTypeChecked,
24+
],
25+
rules: {
26+
"@typescript-eslint/array-type": "off",
27+
"@typescript-eslint/consistent-type-definitions": "off",
28+
"@typescript-eslint/consistent-type-imports": [
29+
"warn",
30+
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
31+
],
32+
"@typescript-eslint/no-unused-vars": [
33+
"warn",
34+
{ argsIgnorePattern: "^_" },
35+
],
36+
"@typescript-eslint/require-await": "off",
37+
"@typescript-eslint/no-misused-promises": [
38+
"error",
39+
{ checksVoidReturn: { attributes: false } },
40+
],
41+
"drizzle/enforce-delete-with-where": [
42+
"error",
43+
{ drizzleObjectName: ["db", "ctx.db"] },
44+
],
45+
"drizzle/enforce-update-with-where": [
46+
"error",
47+
{ drizzleObjectName: ["db", "ctx.db"] },
48+
],
49+
},
50+
},
51+
{
52+
linterOptions: {
53+
reportUnusedDisableDirectives: true,
54+
},
55+
languageOptions: {
56+
parserOptions: {
57+
projectService: true,
58+
},
59+
},
60+
},
61+
);

0 commit comments

Comments
 (0)