Skip to content

Commit

Permalink
feat: route requests
Browse files Browse the repository at this point in the history
Sets up a basic TypeScript project which contains a type for a function that creates a middleware
that tries to route the request.
  • Loading branch information
thewilkybarkid committed May 5, 2022
1 parent 62eb47a commit 0d99493
Show file tree
Hide file tree
Showing 7 changed files with 2,700 additions and 17 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,22 @@ jobs:

- name: 'Run formatter'
run: npm run format

typecheck:
runs-on: ubuntu-20.04

steps:
- name: 'Checkout code'
uses: actions/checkout@v2

- name: 'Set up Node.js'
uses: actions/setup-node@v2
with:
node-version: 16
cache: ${{ !env.ACT && 'npm' || '' }}

- name: 'Install dependencies'
run: npm ci

- name: 'Run typechecker'
run: npm run typecheck
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"arrowParens": "avoid",
"importOrder": ["^[./]"],
"importOrderSortSpecifiers": true,
"printWidth": 120,
"semi": false,
"singleQuote": true,
Expand Down

0 comments on commit 0d99493

Please sign in to comment.