mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 19:28:39 +08:00
9ff0fd9944
* fix: remove issue hunt * chore: remote pnpm-lock file, and fix lint * chore: update action * chore: fix ci * chore: remove coverall
89 lines
3.3 KiB
JSON
89 lines
3.3 KiB
JSON
{
|
|
"name": "g6",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"build:demos": "cd ./packages/pc && npm run demos",
|
|
"build:site": "cd ./packages/site && npm run site:build",
|
|
"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:react-node && 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": "npm run build:all",
|
|
"start": "cd ./packages/site && npm run start",
|
|
"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": "rimraf node_modules",
|
|
"ci": "npm run clean && npm run clean:modules && npm install && npm run bootstrap && npm run build:all && npm run lint:all && npm run test"
|
|
},
|
|
"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.32.0",
|
|
"eslint-config-prettier": "^6.15.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"husky": "^4.3.8",
|
|
"lint-staged": "^10.5.4",
|
|
"monaco-editor": "0.29.1",
|
|
"monaco-editor-webpack-plugin": "5.0.0",
|
|
"normalize-url": "^7.2.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^2.8.8",
|
|
"pretty-quick": "^3.1.3",
|
|
"react-monaco-editor": "0.40.0",
|
|
"rimraf": "^3.0.2",
|
|
"tslint": "^6.1.3",
|
|
"tslint-config-airbnb": "^5.11.2",
|
|
"tslint-config-prettier": "^1.18.0",
|
|
"tslint-eslint-rules": "^5.4.0",
|
|
"typescript": "^5.3.3"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/cli": "^2.27.1",
|
|
"@types/react": "^16.14.54",
|
|
"@types/react-dom": "^16.9.24",
|
|
"@umijs/fabric": "^2.14.1",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-unicorn": "^27.0.0",
|
|
"pre-commit": "^1.2.2",
|
|
"react-scripts": "3.1.2"
|
|
},
|
|
"overrides": {
|
|
"@types/react": "^16.9.35",
|
|
"monaco-editor": "0.29.1",
|
|
"monaco-editor-webpack-plugin": "5.0.0",
|
|
"react-monaco-editor": "^0.40.0",
|
|
"normalize-url": "^4.1.0",
|
|
"sharp": "^0.30.4",
|
|
"electron": "23.3.13"
|
|
}
|
|
}
|