-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florian
authored and
Florian
committed
Nov 14, 2023
1 parent
4df932a
commit 79e95ed
Showing
42 changed files
with
2,535 additions
and
600 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,9 @@ | ||
node_modules | ||
dist | ||
.webpack | ||
.data | ||
build | ||
infra | ||
release.config.js | ||
.next | ||
routeTree.gen.ts |
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,15 @@ | ||
name: CI | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run yarn install | ||
run: yarn install | ||
|
||
- name: Run prettier and eslint | ||
run: yarn lint |
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,11 @@ | ||
dist | ||
.yarn | ||
node_modules | ||
.next | ||
|
||
styled-system | ||
styled-system/** | ||
styled-system/**/* | ||
routeTree.gen.ts | ||
build | ||
.docusaurus |
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,37 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"**/*/lib": true, | ||
"**/*/build": true, | ||
"**/.webpack": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/*/lib": true, | ||
"**/*/dist": true, | ||
"**/*/build": true, | ||
"**/.webpack": true, | ||
"**/node_modules": false | ||
}, | ||
"search.exclude": { | ||
"**/*/lib": true, | ||
"**/*/dist": true, | ||
"**/*/build": true, | ||
"**/.webpack": true, | ||
"**/.next": true, | ||
"**/node_modules": true | ||
}, | ||
"javascript.preferences.importModuleSpecifier": "relative", | ||
"typescript.preferences.importModuleSpecifier": "relative" | ||
} |
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,6 +1,18 @@ | ||
{ | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"scripts": { | ||
"lint": "yarn lint:eslint && yarn lint:prettier", | ||
"lint:eslint": "eslint .", | ||
"lint:prettier": "prettier --check ." | ||
}, | ||
"devDependencies": { | ||
"typescript": "^5.0.4", | ||
"@typescript-eslint/eslint-plugin": "^5.30.0", | ||
"@typescript-eslint/parser": "^5.30.0", | ||
"eslint": "^8.51.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"prettier": "^3.0.3" | ||
} | ||
} |
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,8 +1,8 @@ | ||
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ | ||
module.exports = { | ||
transform: { | ||
"^.+\\.tsx?$": "esbuild-jest", | ||
'^.+\\.tsx?$': 'esbuild-jest', | ||
}, | ||
collectCoverageFrom: ["src/**/*.{ts,tsx}"], | ||
testEnvironment: "node", | ||
collectCoverageFrom: ['src/**/*.{ts,tsx}'], | ||
testEnvironment: 'node', | ||
}; |
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,13 @@ | ||
import { AxiosRequestConfig } from 'axios'; | ||
|
||
import { SchemaTypeBox } from './providers/TypeboxProvider'; | ||
import { SchemaZod } from './providers/ZodProvider'; | ||
|
||
export type Schema = SchemaTypeBox | SchemaZod; | ||
|
||
export type RouteDefinition = { | ||
method: AxiosRequestConfig['method']; | ||
url: string | (({ params }: { params: { [s: string]: string } }) => string); | ||
okCode?: number; | ||
schema: Schema; | ||
}; |
Oops, something went wrong.