g6/package.json
2023-02-02 10:31:36 +08:00

91 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 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",
"monaco-editor": "0.29.1",
"monaco-editor-webpack-plugin": "5.0.0",
"normalize-url": "^7.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"pretty-quick": "^3.0.2",
"react-monaco-editor": "0.40.0",
"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": "^4.6.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",
"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"
}
}