mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
81 lines
3.0 KiB
JSON
81 lines
3.0 KiB
JSON
{
|
|
"name": "g6",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build:demos": "cd ./packages/pc && npm run demos",
|
|
"build:site": "cd ./packages/site && npm run start",
|
|
"build:core": "cd ./packages/core && npm run build",
|
|
"build:element": "cd ./packages/element && npm run build",
|
|
"build:plugin": "cd ./packages/plugin && npm run build",
|
|
"build:pc": "cd ./packages/pc && npm run build",
|
|
"build:g6": "cd ./packages/g6 && npm run build",
|
|
"build:react-node": "cd ./packages/react-node && npm run build",
|
|
"build:all": "npm run build:core && npm run build:element && npm run build:plugin && npm run build:pc && npm run build:g6",
|
|
"lint:core": "cd ./packages/core && npm run lint",
|
|
"lint:element": "cd ./packages/element && npm run lint",
|
|
"lint:plugin": "cd ./packages/plugin && npm run lint",
|
|
"lint:pc": "cd ./packages/pc && npm run lint",
|
|
"lint:g6": "cd ./packages/g6 && npm run lint",
|
|
"lint:all": "npm run lint:core && npm run lint:element && npm run lint:plugin && npm run lint:pc && npm run lint:g6",
|
|
"build": "lerna run build --include-dependencies --stream",
|
|
"lint": "npm run lint:all",
|
|
"test:core": "cd ./packages/core && npm run test",
|
|
"test:element": "cd ./packages/element && npm run test",
|
|
"test:plugin": "cd ./packages/plugin && npm run test",
|
|
"test:pc": "cd ./packages/pc && npm run test",
|
|
"test": "npm run test:core && npm run test:element && npm run test:plugin && npm run test:pc",
|
|
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
|
|
"pretty-quick": "pretty-quick",
|
|
"clean": "lerna clean -y",
|
|
"clear": "lerna clean && lerna clean -y",
|
|
"clean:modules": "rimraf node_modules",
|
|
"bootstrap": "lerna bootstrap",
|
|
"ci": "npm run clean && npm run clean:modules && npm install && npm run bootstrap && npm run build:all && npm run lint:all && npm run test",
|
|
"ls": "lerna list"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged && lerna run --concurrency 1 --stream precommit"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,tsx,ts,less,md,json}": [
|
|
"pretty-quick —-staged"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"eslint": "^7.11.0",
|
|
"eslint-config-prettier": "^6.7.0",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"husky": "^4.2.5",
|
|
"lerna": "^3.19.0",
|
|
"lint-staged": "^10.2.2",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.1.2",
|
|
"pretty-quick": "^3.0.2",
|
|
"rimraf": "^3.0.0",
|
|
"tslint": "^6.1.3",
|
|
"tslint-config-airbnb": "^5.11.2",
|
|
"tslint-config-prettier": "^1.18.0",
|
|
"tslint-eslint-rules": "^5.4.0",
|
|
"typescript": "^3.5.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^16.9.35",
|
|
"@types/react-dom": "^16.9.8",
|
|
"@umijs/fabric": "^2.3.1",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-react": "^7.22.0",
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
"eslint-plugin-unicorn": "^27.0.0",
|
|
"pre-commit": "^1.2.2",
|
|
"react-scripts": "3.1.2"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "^16.9.35"
|
|
}
|
|
} |