Skip to content

Commit

Permalink
add types checking to web-awesome package
Browse files Browse the repository at this point in the history
  • Loading branch information
epszaw committed Jan 16, 2025
1 parent a048f77 commit 8eaaf09
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 3 deletions.
84 changes: 84 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
1 change: 1 addition & 0 deletions packages/web-awesome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "^4.6.2",
"filesize": "^10.1.6",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"globals": "^15.9.0",
"html-webpack-plugin": "^5.6.3",
"mini-css-extract-plugin": "^2.9.1",
Expand Down
6 changes: 4 additions & 2 deletions packages/web-awesome/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
"allowSyntheticDefaultImports": true,
"useUnknownInCatchVariables": false,
"noEmit": true,
"noImplicitAny": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["ES2019", "dom"],
// node types should not be used in web-commons
"types": []
"types": [],
"skipLibCheck": true
},
"include": ["src"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "dist"]
}
2 changes: 2 additions & 0 deletions packages/web-awesome/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { fileURLToPath } from "node:url";
import SpriteLoaderPlugin from "svg-sprite-loader/plugin.js";
import webpack from "webpack";
import { WebpackManifestPlugin } from "webpack-manifest-plugin";
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";

const { SINGLE_FILE_MODE } = env;
const baseDir = dirname(fileURLToPath(import.meta.url));
Expand Down Expand Up @@ -68,6 +69,7 @@ export default (env, argv) => {
},
},
plugins: [
new ForkTsCheckerPlugin(),
new webpack.DefinePlugin({
DEVELOPMENT: devMode,
}),
Expand Down
1 change: 1 addition & 0 deletions packages/web-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"handlebars-loader": "^1.7.3",
"mini-css-extract-plugin": "^2.9.1",
"normalize-css": "^2.3.1",
Expand Down
27 changes: 26 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ __metadata:
eslint-plugin-react: "npm:^7.36.1"
eslint-plugin-react-hooks: "npm:^4.6.2"
filesize: "npm:^10.1.6"
fork-ts-checker-webpack-plugin: "npm:^9.0.2"
globals: "npm:^15.9.0"
html-webpack-plugin: "npm:^5.6.3"
i18next: "npm:^24.0.2"
Expand Down Expand Up @@ -620,6 +621,7 @@ __metadata:
eslint-plugin-prefer-arrow: "npm:^1.2.3"
file-loader: "npm:^6.2.0"
filesize: "npm:^10.1.6"
fork-ts-checker-webpack-plugin: "npm:^9.0.2"
handlebars: "npm:^4.7.8"
handlebars-loader: "npm:^1.7.3"
highlight.js: "npm:^10.7.3"
Expand Down Expand Up @@ -9659,7 +9661,7 @@ __metadata:
languageName: node
linkType: hard

"cosmiconfig@npm:^8.1.3":
"cosmiconfig@npm:^8.1.3, cosmiconfig@npm:^8.2.0":
version: 8.3.6
resolution: "cosmiconfig@npm:8.3.6"
dependencies:
Expand Down Expand Up @@ -12425,6 +12427,29 @@ __metadata:
languageName: node
linkType: hard

"fork-ts-checker-webpack-plugin@npm:^9.0.2":
version: 9.0.2
resolution: "fork-ts-checker-webpack-plugin@npm:9.0.2"
dependencies:
"@babel/code-frame": "npm:^7.16.7"
chalk: "npm:^4.1.2"
chokidar: "npm:^3.5.3"
cosmiconfig: "npm:^8.2.0"
deepmerge: "npm:^4.2.2"
fs-extra: "npm:^10.0.0"
memfs: "npm:^3.4.1"
minimatch: "npm:^3.0.4"
node-abort-controller: "npm:^3.0.1"
schema-utils: "npm:^3.1.1"
semver: "npm:^7.3.5"
tapable: "npm:^2.2.1"
peerDependencies:
typescript: ">3.6.0"
webpack: ^5.11.0
checksum: 10/3399ea114d9397da5e51baaa1cf2ca704f4616c8255df672889cafc2a823f77e8bf9913133852d29d676657b1d40e4a2fba8eb9fafee09e00faeda924289220e
languageName: node
linkType: hard

"form-data@npm:^4.0.0, form-data@npm:^4.0.1":
version: 4.0.1
resolution: "form-data@npm:4.0.1"
Expand Down

0 comments on commit 8eaaf09

Please sign in to comment.