Migrate to node 16, npm 7. (#3773)
* Migrate to node 16 and nmp 7.
* Step 2
* Moving eslint to one package.json
* Fix package for 3D
* Update package files
* Fix package.json. Update package-lock.json. Update DockeFile.ui
* Change "node-sass" to "sass" due to snyk issues
* Automatically update your stylesheets due to DEPRECATION WARNING from sass
* Moving all dev dependencies to root package.json
* Remove unnecessary dependence from cvat-core-package.json
* Update of the year in copyrights
* Update CHANGELOG.md
* Define workspaces
* Update npm command to root package.json
* Update npm commands and corresponding files
* Update npm command.
* Fix Dockerfile.ui
* Fix error loading rule '@typescript-eslint/dot-notation'
* Fix eslint check issue
Co-authored-by: NBoris Sekachev <boris.sekachev@intel.com>
Showing
此差异已折叠。
... | ... | @@ -6,24 +6,63 @@ |
"directories": { | ||
"test": "tests" | ||
}, | ||
"workspaces": [ | ||
"cvat-data", | ||
"cvat-core", | ||
"cvat-canvas", | ||
"cvat-canvas3d", | ||
"cvat-ui" | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.13.16", | ||
"@babel/core": "^7.6.0", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/plugin-proposal-optional-chaining": "^7.11.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"@babel/preset-typescript": "^7.6.0", | ||
"@istanbuljs/nyc-config-babel": "^1.0.1", | ||
"@types/mousetrap": "^1.6.5", | ||
"@types/node": "^12.6.8", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"airbnb": "0.0.2", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-import": "^1.12.2", | ||
"babel-plugin-istanbul": "^6.0.0", | ||
"babel-register": "^6.26.0", | ||
"copy-webpack-plugin": "^5.1.2", | ||
"coveralls": "^3.1.0", | ||
"css-loader": "^3.4.2", | ||
"dts-bundle-webpack": "^1.0.2", | ||
"eslint": "^7.11.0", | ||
"eslint-config-airbnb": "^18.0.1", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-config-airbnb-typescript": "^12.0.0", | ||
"eslint-config-prettier": "^6.14.0", | ||
"eslint-plugin-cypress": "^2.11.2", | ||
"eslint-plugin-header": "^3.1.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jest": "^24.1.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
"eslint-plugin-no-unsafe-innerhtml": "^1.0.16", | ||
"eslint-plugin-no-unsanitized": "^3.0.2", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-security": "^1.4.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^10.4.2", | ||
"micromatch": "^4.0.2", | ||
"nodemon": "^2.0.7", | ||
"nyc": "^15.1.0", | ||
"postcss-loader": "^3.0.0", | ||
"postcss-preset-env": "^6.7.0", | ||
"prettier": "2.1.2", | ||
"react-svg-loader": "^3.0.3", | ||
"remark-cli": "^9.0.0", | ||
"remark-frontmatter": "^3.0.0", | ||
"remark-gfm": "^1.0.0", | ||
... | ... | @@ -39,10 +78,19 @@ |
"remark-preset-lint-consistent": "^4.0.0", | ||
"remark-preset-lint-markdown-style-guide": "^4.0.0", | ||
"remark-preset-lint-recommended": "^5.0.0", | ||
"sass": "^1.42.1", | ||
"sass-loader": "^10.0.0", | ||
"source-map-support": "^0.5.19", | ||
"style-loader": "^1.0.0", | ||
"stylelint": "^13.6.1", | ||
"stylelint-config-standard": "^20.0.0", | ||
"vfile-reporter-json": "^2.0.2" | ||
"tsconfig-paths-webpack-plugin": "^3.2.0", | ||
"typescript": "^3.7.3", | ||
"vfile-reporter-json": "^2.0.2", | ||
"webpack": "^4.46.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-dev-server": "^3.11.0", | ||
"worker-loader": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
... | ... | @@ -55,7 +103,16 @@ |
"precommit:cvat-core": "cd cvat-ui && eslint --fix", | ||
"precommit:cvat-canvas": "cd cvat-ui && eslint --fix", | ||
"precommit:cvat-canvas3d": "cd cvat-ui && eslint --fix", | ||
"precommit:cvat-ui": "cd cvat-ui && eslint --fix" | ||
"precommit:cvat-ui": "cd cvat-ui && eslint --fix", | ||
"build:cvat-ui": "npm run build --workspace=cvat-ui", | ||
"build:cvat-canvas": "npm run build --workspace=cvat-canvas", | ||
"build:cvat-canvas3d": "npm run build --workspace=cvat-canvas3d", | ||
"build:cvat-core": "npm run build --workspace=cvat-core", | ||
"build:cvat-data": "npm run build --workspace=cvat-data", | ||
"server:cvat-canvas": "npm run server --workspace=cvat-canvas", | ||
"server:cvat-canvas3d": "npm run server --workspace=cvat-canvas3d", | ||
"server:cvat-data": "npm run server --workspace=cvat-data", | ||
"start:cvat-ui": "npm run start --workspace=cvat-ui" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... |
想要评论请 注册 或 登录