Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
678f56a
Remove react-scripts
RichDom2185 Apr 25, 2025
6e6a7d2
Install rspack dependencies
RichDom2185 Apr 25, 2025
24d2dfc
Migrate and simplify index.html
RichDom2185 Apr 25, 2025
1a96375
Create rsbuild config
RichDom2185 Apr 25, 2025
9194617
Migrate webpack config
RichDom2185 Apr 25, 2025
6734eb6
Fix env var loading
RichDom2185 Apr 25, 2025
4441bc9
Fix import types
RichDom2185 Apr 25, 2025
815dd08
Add ESLint plugin in dev mode
RichDom2185 Apr 25, 2025
f6d7b24
Set up test dependencies
RichDom2185 Apr 25, 2025
c186deb
Migrate jest config
RichDom2185 Apr 25, 2025
91c0841
Use SWV for jest
RichDom2185 Apr 25, 2025
f947a69
Fix test configuration
RichDom2185 Apr 25, 2025
ebd6969
Update snapshot serialization
RichDom2185 Apr 25, 2025
9237cf3
Fix SVG test issues
RichDom2185 Apr 25, 2025
9168cac
Move import resolver to test utils
RichDom2185 Apr 25, 2025
9a2511a
Fix test environment issues with modern jest
RichDom2185 Apr 25, 2025
fc5b7d4
Fix timezone issues
RichDom2185 Apr 25, 2025
cf53020
Fix image loading
RichDom2185 Apr 25, 2025
c3fcd1b
Update more snapshots
RichDom2185 Apr 25, 2025
90ef7b9
Deduplicate dependencies
RichDom2185 Apr 26, 2025
f6a8d8e
Fix jest module resolution
RichDom2185 Apr 26, 2025
2d4f209
Fix some tests
RichDom2185 Apr 26, 2025
6aff589
Fix GitHub callback tests
RichDom2185 Apr 26, 2025
03d1501
Update more snapshots
RichDom2185 Apr 26, 2025
22cb5e5
Fix tree node creator tests
RichDom2185 Apr 26, 2025
1ac6769
Fix `FileExplorerDialog` tests
RichDom2185 Apr 26, 2025
4dd19ce
Fix most tests
RichDom2185 Apr 26, 2025
c7c0af0
Fix repository dialog tests
RichDom2185 Apr 26, 2025
9a9c617
Fix remaining test cases
RichDom2185 Apr 26, 2025
f9603f8
Fix test utils
RichDom2185 Apr 26, 2025
575e50e
Update scripts
RichDom2185 Apr 26, 2025
84dd7da
Remove CRACO
RichDom2185 Apr 26, 2025
83ef40b
Remove old CRACO config
RichDom2185 Apr 26, 2025
c3d0098
Fix and check tsc
RichDom2185 Apr 26, 2025
7c8bc0c
Re-add the ignore warnings for dynamic modules
leeyi45 Apr 28, 2025
2ab1e08
Merge branch 'master' into rust
RichDom2185 May 14, 2025
5c91790
Address PR comments
RichDom2185 May 14, 2025
dbbc452
Merge branch 'master' of https://github.com/source-academy/frontend i…
RichDom2185 Jun 13, 2025
2f47cd4
Update snapshots
RichDom2185 Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"analyze": "yarn build --stats; webpack-bundle-analyzer build/bundle-stats.json",
"build": "rsbuild build",
"build": "tsc -b && rsbuild build",
"coverage": "./scripts/coverage-fix.sh do && yarn test --coverage && ./scripts/coverage-fix.sh undo",
"dev": "rsbuild dev",
"format": "eslint --fix src && prettier --write \"src/**/*.{js,jsx,ts,tsx}\" && prettier --write --parser scss \"src/**/*.scss\"",
Expand Down Expand Up @@ -100,6 +100,9 @@
"sourceror": "^0.8.5",
"unified": "^11.0.0",
"uuid": "^11.0.2",
"workbox-core": "^7.3.0",
"workbox-precaching": "^7.3.0",
"workbox-routing": "^7.3.0",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz",
"xml2js": "^0.6.0",
"yareco": "^0.1.5"
Expand Down
8 changes: 8 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ declare module '*.svg?react' {
const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>;
export default ReactComponent;
}
declare module '*.module.scss' {
const content: { [className: string]: string };
export default content;
}
declare module '*.jpg' {
const content: string;
export default content;
}
39 changes: 39 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7387,6 +7387,9 @@ __metadata:
url: "npm:^0.11.1"
uuid: "npm:^11.0.2"
webpack-bundle-analyzer: "npm:^4.9.0"
workbox-core: "npm:^7.3.0"
workbox-precaching: "npm:^7.3.0"
workbox-routing: "npm:^7.3.0"
xlsx: "https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz"
xml2js: "npm:^0.6.0"
yareco: "npm:^0.1.5"
Expand Down Expand Up @@ -14279,6 +14282,42 @@ __metadata:
languageName: node
linkType: hard

"workbox-core@npm:7.3.0, workbox-core@npm:^7.3.0":
version: 7.3.0
resolution: "workbox-core@npm:7.3.0"
checksum: 10c0/b7dce640cd9665ed207f65f5b08a50e2e24e5599790c6ea4fec987539b9d2ef81765d8c5f94acfee3a8a45d5ade8e1a4ebd0b8847a1471302ef75a5b93c7bd04
languageName: node
linkType: hard

"workbox-precaching@npm:^7.3.0":
version: 7.3.0
resolution: "workbox-precaching@npm:7.3.0"
dependencies:
workbox-core: "npm:7.3.0"
workbox-routing: "npm:7.3.0"
workbox-strategies: "npm:7.3.0"
checksum: 10c0/15c4c5cf5dfec684711ce3536bbfa6873f7af16b712d02ded81d3ff490ea4097e46602705548f5872c49f06e3516fd69f17e72a7fc60631ff6d68460e48f7648
languageName: node
linkType: hard

"workbox-routing@npm:7.3.0, workbox-routing@npm:^7.3.0":
version: 7.3.0
resolution: "workbox-routing@npm:7.3.0"
dependencies:
workbox-core: "npm:7.3.0"
checksum: 10c0/8ac1824211d0fbe0e916ecb2c2427bcb0ef8783f9225d8114fe22e6c326f2d8a040a089bead58064e8b096ec95abe070c04cd7353dd8830dba3ab8d608a053aa
languageName: node
linkType: hard

"workbox-strategies@npm:7.3.0":
version: 7.3.0
resolution: "workbox-strategies@npm:7.3.0"
dependencies:
workbox-core: "npm:7.3.0"
checksum: 10c0/50f3c28b46b54885a9461ad6559010d9abb2a7e35e0128d05c268f3ea0a96b1a747934758121d0e821f7af63946d9db8f4d2d7e0146f12555fb05c768e6b82bb
languageName: node
linkType: hard

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0, wrap-ansi@npm:^7.0.0":
version: 7.0.0
resolution: "wrap-ansi@npm:7.0.0"
Expand Down
Loading