Skip to content

Commit

Permalink
Add github workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
rcantin-w committed Jun 25, 2024
1 parent aaff1b1 commit bc93ee8
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
push:
pull_request:

jobs:
tsc:
name: tsc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v16
uses: actions/setup-node@v4
with:
node-version: 16
- name: yarn install
run: yarn install
- name: yarn tsc
run: yarn tsc
20 changes: 19 additions & 1 deletion cardigan/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
{
"compilerOptions": {
"jsx": "preserve",
"noEmit": true
"noEmit": true,
"composite": true,
"outDir": "lib",
"rootDir": ".",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"baseUrl": ".",
"paths": {},
"allowJs": false,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"strictNullChecks": true,
"downlevelIteration": true
},
"exclude": ["node_modules", ".dist", ".cache"]
}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@
"eslint --fix --max-warnings=0 --report-unused-disable-directives",
"stylelint --max-warnings=0",
"git add"
],
"*": [
"yarn tsc"
]
},
"husky": {
Expand Down
19 changes: 18 additions & 1 deletion prismic-model/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
{
"compilerOptions": {
"jsx": "preserve",
"noEmit": true,
"composite": true,
"outDir": "lib",
"rootDir": ".",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"baseUrl": ".",
"paths": {},
"allowJs": false,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
// This is for lodash
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"jsx": "preserve"
"isolatedModules": true,
"strictNullChecks": true,
"downlevelIteration": true
},
// This is for https://github.com/wellcomecollection/ts-aws
"ts-node": {
Expand Down
21 changes: 20 additions & 1 deletion toggles/webapp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
{
"compilerOptions": {
"esModuleInterop": true,
"esModuleInterop": true,
"jsx": "preserve",
"noEmit": true,
"composite": true,
"outDir": "lib",
"rootDir": ".",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"baseUrl": ".",
"paths": {},
"allowJs": false,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"strictNullChecks": true,
"downlevelIteration": true
},
// This is for https://github.com/wellcomecollection/ts-aws
"ts-node": {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10883,6 +10883,11 @@ [email protected]:
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==

dotenv@^16.4.5:
version "16.4.5"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f"
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==

dotenv@^8.0.0, dotenv@^8.2.0:
version "8.6.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.6.0.tgz#061af664d19f7f4d8fc6e4ff9b584ce237adcb8b"
Expand Down

0 comments on commit bc93ee8

Please sign in to comment.