mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-10-02 01:15:23 +08:00
* ci(pages): add smoke test step to verify build output is servable Serve dist/ after build and assert key SPA routes return HTML with bundle references so broken templates cannot slip through CI. Co-authored-by: Cursor <cursoragent@cursor.com> * ci(pages): harden smoke test route checks Clarify the SPA fallback limitation, make the curl failure branch work under set -e, and add a /404.html static-file assertion to confirm dist assets are actually served. --------- Co-authored-by: Cursor <cursoragent@cursor.com>
70 lines
1.9 KiB
JSON
70 lines
1.9 KiB
JSON
{
|
|
"name": "open-code-review-landing",
|
|
"version": "1.0.0",
|
|
"description": "Landing page for Open Code Review",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "webpack serve",
|
|
"build": "NODE_ENV=production webpack --mode production",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"lint": "eslint src/",
|
|
"size": "size-limit"
|
|
},
|
|
"dependencies": {
|
|
"@agentscope-ai/icons": "^1.0.68",
|
|
"dompurify": "^3.4.11",
|
|
"marked": "^18.0.5",
|
|
"mermaid": "^11.16.0",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-router-dom": "^6.8.0",
|
|
"three": "^0.185.0"
|
|
},
|
|
"overrides": {
|
|
"fast-uri": "^3.1.2"
|
|
},
|
|
"size-limit": [
|
|
{
|
|
"path": "dist/*.bundle.js",
|
|
"limit": "150 kB"
|
|
}
|
|
],
|
|
"devDependencies": {
|
|
"@babel/core": "^7.23.5",
|
|
"@babel/preset-env": "^7.29.5",
|
|
"@babel/preset-react": "^7.23.5",
|
|
"@babel/preset-typescript": "^7.23.3",
|
|
"@eslint/js": "^10.0.1",
|
|
"@size-limit/file": "^13.0.1",
|
|
"@testing-library/jest-dom": "^7.0.0",
|
|
"@testing-library/react": "^16.3.2",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/dompurify": "^3.0.5",
|
|
"@types/react": "^18.2.0",
|
|
"@types/react-dom": "^18.2.0",
|
|
"@types/three": "^0.185.0",
|
|
"@vitejs/plugin-react": "^6.0.4",
|
|
"autoprefixer": "^10.4.16",
|
|
"babel-loader": "^9.1.3",
|
|
"copy-webpack-plugin": "^14.0.0",
|
|
"css-loader": "^6.8.1",
|
|
"eslint": "^10.8.0",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"html-webpack-plugin": "^5.5.3",
|
|
"jsdom": "^30.0.0",
|
|
"postcss": "^8.5.15",
|
|
"postcss-loader": "^7.3.3",
|
|
"serve": "^14.2.6",
|
|
"size-limit": "^13.0.1",
|
|
"style-loader": "^3.3.3",
|
|
"tailwindcss": "^3.3.5",
|
|
"typescript": "^5.3.2",
|
|
"typescript-eslint": "^8.65.0",
|
|
"vitest": "^4.1.10",
|
|
"webpack": "^5.89.0",
|
|
"webpack-cli": "^5.1.4",
|
|
"webpack-dev-server": "^5.2.4"
|
|
}
|
|
}
|