Use a Snowpack plugin to check TypeScript types (#844)
This commit is contained in:
parent
234a2dcba6
commit
ef1f8b0734
6 changed files with 3 additions and 5 deletions
1
.github/pull_request_template.md
vendored
1
.github/pull_request_template.md
vendored
|
@ -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
|
||||
<!--
|
||||
|
|
1
.github/workflows/node.js.yml
vendored
1
.github/workflows/node.js.yml
vendored
|
@ -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
|
|
@ -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
1
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue