128 lines
3.7 KiB
JSON
128 lines
3.7 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"version": "1.4.4",
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/page-controller",
|
|
"packages/ui",
|
|
"packages/llms",
|
|
"packages/core",
|
|
"packages/page-agent",
|
|
"packages/extension",
|
|
"packages/website"
|
|
],
|
|
"description": "AI-powered UI agent for web applications",
|
|
"author": "Simon<gaomeng1900>",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/alibaba/page-agent.git"
|
|
},
|
|
"homepage": "https://alibaba.github.io/page-agent/",
|
|
"engines": {
|
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
},
|
|
"scripts": {
|
|
"cleanup": "rm -rf packages/*/dist",
|
|
"start": "npm run dev --workspace=@page-agent/website",
|
|
"build:website": "npm run build:website --workspace=@page-agent/website",
|
|
"build:libs": "npm run build --workspaces --if-present",
|
|
"build": "npm run build:libs && npm run build:website",
|
|
"dev:demo": "npm run dev:demo --workspace=page-agent",
|
|
"version": "node scripts/sync-version.js",
|
|
"lint": "eslint .",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^20.4.2",
|
|
"@commitlint/config-conventional": "^20.4.2",
|
|
"@eslint/js": "^9.39.2",
|
|
"@microsoft/api-extractor": "^7.57.6",
|
|
"@tailwindcss/vite": "^4.2.1",
|
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
"@types/node": "^25.3.3",
|
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
"chalk": "^5.6.2",
|
|
"concurrently": "^9.2.1",
|
|
"dotenv": "^17.3.1",
|
|
"eslint": "^9.39.2",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-react-dom": "^2.13.0",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"eslint-plugin-react-x": "^2.13.0",
|
|
"globals": "^17.4.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.3.1",
|
|
"prettier": "^3.8.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.56.1",
|
|
"unplugin-dts": "^1.0.0-beta.6",
|
|
"vite": "^7.3.1",
|
|
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
"vite-bundle-analyzer": "^1.3.6"
|
|
},
|
|
"overrides": {
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,cjs,cts,mjs,mts}": [
|
|
"npx prettier --write --ignore-unknown",
|
|
"npx eslint --quiet"
|
|
],
|
|
"*.{jsx,tsx}": [
|
|
"npx prettier --write --ignore-unknown",
|
|
"npx eslint --quiet"
|
|
],
|
|
"*.css": [
|
|
"npx prettier --write --ignore-unknown"
|
|
]
|
|
},
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-conventional"
|
|
],
|
|
"rules": {
|
|
"subject-case": [
|
|
0,
|
|
"never"
|
|
]
|
|
}
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"semi": false,
|
|
"useTabs": true,
|
|
"printWidth": 100,
|
|
"trailingComma": "es5",
|
|
"plugins": [
|
|
"@trivago/prettier-plugin-sort-imports"
|
|
],
|
|
"importOrder": [
|
|
"<THIRD_PARTY_MODULES>",
|
|
"^(@/).*(?<!css)$",
|
|
"^[./].*(?<!css)$",
|
|
".css$"
|
|
],
|
|
"importOrderSeparation": true,
|
|
"importOrderSortSpecifiers": true,
|
|
"overrides": [
|
|
{
|
|
"files": "*.md",
|
|
"options": {
|
|
"useTabs": false,
|
|
"tabWidth": 4
|
|
}
|
|
},
|
|
{
|
|
"files": "*.json",
|
|
"options": {
|
|
"useTabs": false,
|
|
"tabWidth": 4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|