93 lines
2.1 KiB
JSON
93 lines
2.1 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"version": "0.0.6",
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"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.0.0",
|
|
"npm": ">=10.0.0"
|
|
},
|
|
"scripts": {
|
|
"dev": "npm run dev --workspace=@page-agent/website",
|
|
"start": "npm run dev --workspace=@page-agent/website",
|
|
"build": "npm run build --workspaces --if-present",
|
|
"build:lib": "npm run build --workspace=page-agent",
|
|
"version": "node scripts/sync-version.js",
|
|
"lint": "eslint .",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^20.1.0",
|
|
"@commitlint/config-conventional": "^20.0.0",
|
|
"@eslint/js": "^9.37.0",
|
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
"dotenv": "^17.2.3",
|
|
"eslint": "^9.37.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-react-dom": "^2.3.9",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
"eslint-plugin-react-x": "^2.3.9",
|
|
"globals": "^16.4.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.2.4",
|
|
"prettier": "^3.6.2",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.46.0",
|
|
"vite": "^7.1.9"
|
|
},
|
|
"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
|
|
}
|
|
}
|