aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMats Larsen <me@supergrecko.com>2022-04-27 10:05:27 +0200
committerGitHub <noreply@github.com>2022-04-27 10:05:27 +0200
commit15b57aef0ed47f2e9d4928e9f4d74641a385881c (patch)
tree80808041537f88f15ac725166ea0602129bd1c3d
parentfedde61a851e2d4b3354113ebe20a3dc5c83fead (diff)
downloadcompiler-explorer-gh-2604.tar.gz
compiler-explorer-gh-2604.zip
Create npm script for noEmit compiling frontend and backend to catch errors (#3580)gh-2604
-rw-r--r--.github/workflows/test-and-deploy.yml1
-rw-r--r--.github/workflows/test-win.yml2
-rw-r--r--package.json1
-rw-r--r--tsconfig.frontend.json3
4 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml
index 2ccfcfb15..d512dc276 100644
--- a/.github/workflows/test-and-deploy.yml
+++ b/.github/workflows/test-and-deploy.yml
@@ -22,6 +22,7 @@ jobs:
npm run lint
npm run ci-test
npm run format-check
+ npm run ts-check
python3 ./etc/scripts/util/orphancompiler.py
- name: Code coverage
run: npm run codecov
diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml
index 4aad9fafb..9af5a4aba 100644
--- a/.github/workflows/test-win.yml
+++ b/.github/workflows/test-win.yml
@@ -21,3 +21,5 @@ jobs:
run: |
npm run lint
npm run ci-test
+ npm run format-check
+ npm run ts-check
diff --git a/package.json b/package.json
index f65018024..619dee402 100644
--- a/package.json
+++ b/package.json
@@ -171,6 +171,7 @@
"format-fix-files": "prettier --write --ignore-unknown",
"format-check": "prettier --ignore-unknown --check ./static/**/*.ts",
"ts-compile": "tsc",
+ "ts-check": "tsc -p ./tsconfig.backend.json --noEmit --module esnext && tsc -p ./tsconfig.frontend.json --noEmit",
"webpack": "webpack --node-env=production"
},
"lint-staged": {
diff --git a/tsconfig.frontend.json b/tsconfig.frontend.json
index 1678c6bfb..72e1397c6 100644
--- a/tsconfig.frontend.json
+++ b/tsconfig.frontend.json
@@ -8,5 +8,6 @@
"inlineSources": true,
"strictPropertyInitialization": false,
"lib": ["dom", "es5"]
- }
+ },
+ "exclude": ["app.js", "lib", "examples"]
}