-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prisma 5 * remove separate 'common' package * fix eslint and paths * WIP * WIP * WIP * WIP * WIP * gql generation improvements * lint * build dir * no -b * web vitest * WIP
- Loading branch information
Showing
60 changed files
with
12,343 additions
and
10,026 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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
PRISMA_CONNECTION_LIMIT=5 | ||
|
||
# for local dev environments which use docker-compose, you can disable running migrations in AWS by setting this to false | ||
RUN_DB_MIGRATIONS=true | ||
|
||
# set this to enable a bastion EC2 host you can tunnel through to connect to the database | ||
# create a keypair in your desired account and region and add the name here | ||
# SSH_KEYPAIR_NAME= |
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
root: true | ||
env: | ||
browser: false | ||
node: true | ||
es6: true | ||
extends: | ||
- "eslint:recommended" | ||
- "plugin:@typescript-eslint/eslint-recommended" | ||
- "plugin:@typescript-eslint/recommended" | ||
- "plugin:import/recommended" | ||
- "plugin:import/typescript" | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
parser: "@typescript-eslint/parser" | ||
parserOptions: | ||
ecmaVersion: 2019 | ||
sourceType: module | ||
plugins: | ||
- "@typescript-eslint" | ||
ignorePatterns: | ||
- node_modules | ||
- build | ||
- "prisma-generated-client" | ||
- generated/ | ||
- cdk.out | ||
- __mocks__ | ||
settings: | ||
import/parsers: | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
import/ignore: | ||
- \.test\.ts$ # tests aren't imported | ||
- \.(scss|less|css)$ # can't parse unprocessed CSS modules | ||
- node_modules | ||
- build/ | ||
- \.next | ||
import/resolver: | ||
typescript: | ||
alwaysTryTypes: true | ||
project: | ||
- "tsconfig.json" | ||
- "*/tsconfig.json" | ||
rules: | ||
|
||
"@typescript-eslint/explicit-module-boundary-types": off | ||
|
||
"@typescript-eslint/no-unused-vars": off | ||
|
||
"@typescript-eslint/no-non-null-assertion": off | ||
|
||
"@typescript-eslint/no-empty-interface": off | ||
|
||
"@typescript-eslint/no-explicit-any": off | ||
|
||
"@typescript-eslint/triple-slash-reference": off | ||
|
||
# gets confused about imported Function from SST etc | ||
"@typescript-eslint/ban-types": off | ||
|
||
# makes switch/case statements really annoying | ||
"no-case-declarations": off | ||
|
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
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
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 @@ | ||
import { Logger } from '@aws-lambda-powertools/logger'; | ||
import { APP_NAME } from 'common'; | ||
import { APP_NAME } from '@common/index'; | ||
|
||
export const logger = new Logger({ serviceName: APP_NAME }); |
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,10 +1,15 @@ | ||
{ | ||
"extends": "../tsconfig.base.json", | ||
"include": ["src"], | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"module": "esnext", | ||
"target": "es2021" | ||
"paths": { | ||
"@common/*": ["../common/src/*"], | ||
"@backend/*": ["./src/*"] | ||
}, | ||
"baseUrl": ".", | ||
"rootDir": "..", | ||
"outDir": "./.build" | ||
}, | ||
"references": [{ "path": "../common" }] | ||
"files": ["./src/index.d.ts", "../common/src/index.d.ts"], | ||
"include": ["src/**/*", "../common/src/**/*"] | ||
} |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,2 +1,3 @@ | ||
// import this for all graphql types | ||
export * as GQL from '../graphql/generated/gql.js'; | ||
// import this for all graphql defined types | ||
// read more: https://the-guild.dev/graphql/codegen/docs/guides/react-vue | ||
export * as GQL from './generated/gql/graphql'; |
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,11 +1,6 @@ | ||
// TODO: I don't want to export any of these from index.ts | ||
// I want package subpath exports in package.json to work properly with TypeScript | ||
// so that users can say `import { sleep } from 'common/util/sleep'` | ||
// this is still quite experimental though | ||
// https://devblogs.microsoft.com/typescript/announcing-typescript-4-7-beta/#package-json-exports-imports-and-self-referencing | ||
export * from './env.js'; | ||
export * from './gql.js'; | ||
export * from './util/index.js'; | ||
export * from './env'; | ||
export * from './gql'; | ||
export * from './util/index'; | ||
|
||
// change this | ||
export const APP_NAME = 'myapp'; |
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 @@ | ||
export * from './sleep.js'; | ||
export * from './sleep'; |
Oops, something went wrong.