Use a Snowpack plugin to check TypeScript types (#844)

This commit is contained in:
Jon Koops 2021-07-14 12:43:21 +02:00 committed by GitHub
parent 234a2dcba6
commit ef1f8b0734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 5 deletions

View file

@ -26,7 +26,6 @@ new functionality can follow them, such as QE or documentation.
- [ ] axe report has been run and resulting a11y issues have been resolved
- [ ] Unit tests have been created/updated
- [ ] Formatting has been performed via prettier/eslint
- [ ] Type checking has been performed via 'npm run check-types'
## Additional Notes
<!--

View file

@ -29,6 +29,5 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run check-types
- run: npm run build
- run: npm run build-storybook

View file

@ -43,7 +43,6 @@ If your Keycloak instance is not on `localhost:8180`, create a file `.env` with
```bash
$> npm run lint
$> npm run check-types
```
To switch to a RH-SSO themed version of this console you can run:

1
package-lock.json generated
View file

@ -32,6 +32,7 @@
"@jest/types": "^27.0.6",
"@snowpack/app-scripts-react": "^1.12.6",
"@snowpack/plugin-postcss": "1.4.3",
"@snowpack/plugin-typescript": "^1.2.1",
"@snowpack/plugin-webpack": "3.0.0",
"@storybook/addon-actions": "^6.3.4",
"@storybook/addon-essentials": "^6.3.4",

View file

@ -14,7 +14,6 @@
},
"scripts": {
"build": "snowpack build",
"check-types": "tsc -p ./",
"lint": "eslint \"./src/**/*.{js,jsx,ts,tsx}\"",
"postinstall": "grunt",
"start": "snowpack dev",
@ -49,6 +48,7 @@
"@jest/types": "^27.0.6",
"@snowpack/app-scripts-react": "^1.12.6",
"@snowpack/plugin-postcss": "1.4.3",
"@snowpack/plugin-typescript": "^1.2.1",
"@snowpack/plugin-webpack": "3.0.0",
"@storybook/addon-actions": "^6.3.4",
"@storybook/addon-essentials": "^6.3.4",

View file

@ -3,7 +3,7 @@ module.exports = {
proxy: {
"/auth/admin": "http://localhost:8180/auth/admin/",
},
plugins: ["@snowpack/plugin-postcss"],
plugins: ["@snowpack/plugin-postcss", "@snowpack/plugin-typescript"],
buildOptions: {
baseUrl: "/adminv2",
clean: true,