-
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 #40 from KrustyC/chore/remove-netlify
chore: removed netlify
- Loading branch information
Showing
224 changed files
with
9,965 additions
and
21,970 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,15 @@ | ||
NEXT_PUBLIC_BASE_URL=http://localhost:3000 | ||
DISABLE_CACHE=true | ||
|
||
CONTENTFUL_SPACE_ID= | ||
CONTENTFUL_ACCESS_TOKEN= | ||
CONTENTFUL_PREVIEW_ACCESS_TOKEN= | ||
|
||
POSTGRES_PRISMA_URL= | ||
POSTGRES_URL_NON_POOLING= | ||
|
||
DRAFT_MODE_SECRET_TOKEN= | ||
|
||
PROJECT_PASSWORD_COOKIE_SECRET= | ||
|
||
REBUILD_PROJECTS_INDEX_API_KEY= |
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,56 +1,28 @@ | ||
{ | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"prettier" | ||
], | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"extends": ["next/core-web-vitals", "prettier"], | ||
"plugins": ["simple-import-sort"], | ||
"rules": { | ||
// I suggest you add those two rules: | ||
"react-hooks/exhaustive-deps": 0, | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"prettier/prettier": "error" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"alias": { | ||
"map": [ | ||
[ | ||
"@/components", | ||
"src/components" | ||
], | ||
[ | ||
"@/hooks/*", | ||
"src/hooks/*" | ||
], | ||
[ | ||
"@/contexts/*", | ||
"src/contexts/*" | ||
], | ||
[ | ||
"@/layouts/*", | ||
"src/layouts/*" | ||
], | ||
[ | ||
"@/types/*", | ||
"src/types/*" | ||
], | ||
[ | ||
"@/utils/*", | ||
"src/utils/*" | ||
] | ||
], | ||
"extensions": [ | ||
".ts", | ||
".js", | ||
".jsx", | ||
".json" | ||
"import/newline-after-import": ["error", { "count": 1 }], | ||
// increase the severity of rules so they are auto-fixable | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
"groups": [ | ||
// Packages `react` related packages come first. | ||
["^react", "^@?\\w"], | ||
// Internal packages. | ||
["^(@)(/.*|$)"], | ||
// Side effect imports. | ||
["^\\u0000"], | ||
// Parent imports. Put `..` last. | ||
["^\\.\\.(?!/?$)", "^\\.\\./?$"], | ||
// Other relative imports. Put same-folder imports and `.` last. | ||
["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], | ||
// Style imports. | ||
["^.+\\.?(css)$"] | ||
] | ||
} | ||
} | ||
], | ||
"simple-import-sort/exports": "error" | ||
} | ||
} | ||
} |
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,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run typecheck | ||
run: npm run typecheck | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
needs: typecheck | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run lint | ||
run: npm run lint | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run prettier | ||
run: npm run format |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
v20.11.0 |
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,7 +1,6 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"singleQuote": false, | ||
"tabWidth": 2, | ||
"useTabs": false | ||
"semi": true, | ||
"singleQuote": 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
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,14 @@ | ||
import type { CodegenConfig } from "@graphql-codegen/cli"; | ||
|
||
const config: CodegenConfig = { | ||
overwrite: true, | ||
schema: "./schema.graphql", | ||
generates: { | ||
"src/types/new-generated/": { | ||
preset: "client", | ||
plugins: [], | ||
}, | ||
}, | ||
}; | ||
|
||
export default 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3.9" | ||
services: | ||
beatrice-cox-pg-db: | ||
image: postgres:16.1-alpine3.19 | ||
ports: | ||
- 54320:5432 | ||
volumes: | ||
- ~/apps/postgres:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_PASSWORD=an_amazing_password | ||
- POSTGRES_USER=beatrice | ||
- POSTGRES_DB=beatricedb |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.