Skip to content

Commit

Permalink
Merge pull request #8280 from mokibit/add-vite-plugin-checker
Browse files Browse the repository at this point in the history
www: Add "vite-plugin-checker" for typescript types errors
  • Loading branch information
p12tic authored Jan 5, 2025
2 parents 1fb0f12 + 9a5b552 commit 2601069
Show file tree
Hide file tree
Showing 23 changed files with 2,202 additions and 44 deletions.
4 changes: 3 additions & 1 deletion www/console_view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
"react-router-dom": "^6.3.0",
"sass": "^1.56.0",
"vite": "~5.4.10",
"vite-plugin-checker": "^0.8.0",
"vitest": "~2.0.5"
},
"license": "GPL-2.0",
"dependencies": {
"react-icons": "^5.3.0"
"react-icons": "^5.3.0",
"typescript": "~5.6.3"
}
}
2 changes: 2 additions & 0 deletions www/console_view/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {resolve} from "path";
import {defineConfig} from "vite";
import checker from 'vite-plugin-checker';
import react from "@vitejs/plugin-react";

const outDir = 'buildbot_console_view/static';
Expand All @@ -13,6 +14,7 @@ export default defineConfig({
}
}
}),
checker({typescript: true}),
],
define: {
'process.env.NODE_ENV': '"production"',
Expand Down
334 changes: 328 additions & 6 deletions www/console_view/yarn.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions www/data-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"react": "^18.2.0",
"react-app-polyfill": "~3.0.0",
"vite": "~5.4.10",
"vite-plugin-checker": "^0.8.0",
"vite-plugin-dts": "^4.1.0",
"vitest": "~2.0.5"
},
Expand Down
1 change: 1 addition & 0 deletions www/data-module/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export * from "./data/DataMultiPropertiesCollection";
export * from "./data/DataPropertiesCollection";
export * from "./data/DataQuery";
export * from "./data/DataUtils";
export * from "./data/MockDataCollection";
export * from "./data/ReactUtils";
export * from "./data/RestClient";
export * from "./data/WebSocketClient";
Expand Down
2 changes: 2 additions & 0 deletions www/data-module/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {resolve} from "path";
import {defineConfig} from "vite";
import checker from 'vite-plugin-checker';
import react from "@vitejs/plugin-react";
import dts from 'vite-plugin-dts'

Expand All @@ -15,6 +16,7 @@ export default defineConfig({
}
}),
dts(),
checker({typescript: true}),
],
build: {
lib: {
Expand Down
343 changes: 339 additions & 4 deletions www/data-module/yarn.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion www/grid_view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
"react-router-dom": "^6.3.0",
"sass": "^1.56.0",
"vite": "~5.4.10",
"vite-plugin-checker": "^0.8.0",
"vitest": "~2.0.5"
},
"license": "GPL-2.0",
"dependencies": {
"react-icons": "^5.3.0"
"react-icons": "^5.3.0",
"typescript": "~5.6.3"
}
}
2 changes: 2 additions & 0 deletions www/grid_view/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {resolve} from "path";
import {defineConfig} from "vite";
import checker from 'vite-plugin-checker';
import react from "@vitejs/plugin-react";
import { ModuleFormat } from "rollup";

Expand All @@ -14,6 +15,7 @@ export default defineConfig({
}
}
}),
checker({typescript: true}),
],
define: {
'process.env.NODE_ENV': '"production"',
Expand Down
Loading

0 comments on commit 2601069

Please sign in to comment.