diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c52d89f0723abfac87cc339d56df2b15121ff68..b1cb91f4774f0690e32f14a3f54c23f9ea3ba8ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ lint:commit: stage: lint allow_failure: true before_script: - - apk add --no-cache npm + - apk add --no-cache npm git - npm ci script: - echo "${CI_COMMIT_MESSAGE}" | npx commitlint @@ -21,7 +21,7 @@ linter: image: node:16.16.0-alpine stage: lint before_script: - - apk add --no-cache npm + - apk add --no-cache npm git - npm ci script: - npm run lint:ts @@ -34,7 +34,7 @@ prettier: image: node:16.16.0-alpine stage: prettier before_script: - - apk add --no-cache npm + - apk add --no-cache npm git - npm ci script: - npm run prettier:ci @@ -48,7 +48,7 @@ jest: stage: test coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ before_script: - - apk add --no-cache npm + - apk add --no-cache npm git - npm ci script: - npm run test:ci diff --git a/.husky/pre-commit b/.husky/pre-commit index 6860bd2847de1e3800180a31d8d3ef9ca88f2012..738194d7285db082152aa22f1164ca556289616c 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -23,7 +23,7 @@ npm run check-types || ) # Check Tests in Jest -yarn run test || +npm run test || ( echo '🤡⌠Failed tests. 🤡⌠Check the test result and fix the tests.' diff --git a/package.json b/package.json index 5dfdf66c2a78719e09c8182a366f6b2433ced51e..7446c416ffab49ba8b230715f99607f328e93cce 100644 --- a/package.json +++ b/package.json @@ -23,87 +23,87 @@ "cypress": "cypress open" }, "dependencies": { - "@next/font": "^13.5.2", - "@reduxjs/toolkit": "^1.9.6", - "@tanstack/react-table": "^8.11.7", + "@next/font": "13.5.6", + "@reduxjs/toolkit": "1.9.7", + "@tanstack/react-table": "8.11.7", "@types/node": "20.6.2", - "@types/openlayers": "^4.6.20", + "@types/openlayers": "4.6.23", "@types/react": "18.2.21", "@types/react-dom": "18.2.7", "autoprefixer": "10.4.15", - "axios": "^1.5.1", - "axios-hooks": "^5.0.0", - "crypto-js": "^4.2.0", - "downshift": "^8.2.3", + "axios": "1.6.3", + "axios-hooks": "5.0.2", + "crypto-js": "4.2.0", + "downshift": "8.3.1", "eslint-config-next": "13.4.19", - "is-uuid": "^1.0.2", + "is-uuid": "1.0.2", "molart": "github:davidhoksza/MolArt", "next": "13.4.19", - "ol": "^8.1.0", - "polished": "^4.3.1", + "ol": "8.2.0", + "polished": "4.3.1", "postcss": "8.4.29", "query-string": "7.1.3", "react": "18.2.0", - "react-accessible-accordion": "^5.0.0", - "react-dnd": "^16.0.1", - "react-dnd-html5-backend": "^16.0.1", + "react-accessible-accordion": "5.0.0", + "react-dnd": "16.0.1", + "react-dnd-html5-backend": "16.0.1", "react-dom": "18.2.0", - "react-dropzone": "^14.2.3", - "react-redux": "^8.1.2", - "sonner": "^1.4.3", - "tailwind-merge": "^1.14.0", + "react-dropzone": "14.2.3", + "react-redux": "8.1.3", + "sonner": "1.4.3", + "tailwind-merge": "1.14.0", "tailwindcss": "3.3.3", - "ts-deepmerge": "^6.2.0", - "use-debounce": "^9.0.4", - "uuid": "^9.0.1", - "zod": "^3.22.2", - "zod-to-json-schema": "^3.22.4" + "ts-deepmerge": "6.2.0", + "use-debounce": "9.0.4", + "uuid": "9.0.1", + "zod": "3.22.4", + "zod-to-json-schema": "3.22.4" }, "devDependencies": { - "@commitlint/cli": "^17.7.1", - "@commitlint/config-conventional": "^17.7.0", - "@testing-library/jest-dom": "^6.1.3", - "@testing-library/react": "^14.0.0", - "@testing-library/user-event": "^14.5.2", - "@types/crypto-js": "^4.2.2", - "@types/is-uuid": "^1.0.2", - "@types/jest": "^29.5.5", - "@types/react-redux": "^7.1.26", - "@types/redux-mock-store": "^1.0.6", - "@types/uuid": "^9.0.8", - "@typescript-eslint/eslint-plugin": "^6.7.0", - "@typescript-eslint/parser": "^6.7.0", - "axios-mock-adapter": "^1.22.0", - "cypress": "^13.2.0", - "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.49.0", - "eslint-config-airbnb": "^19.0.4", - "eslint-config-prettier": "^9.0.0", - "eslint-config-standard-with-typescript": "^39.0.0", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-n": "^16.1.0", - "eslint-plugin-prettier": "^5.0.1", - "eslint-plugin-promise": "^6.1.1", - "eslint-plugin-react": "^7.33.2", - "eslint-plugin-react-hooks": "^4.6.0", - "eslint-plugin-tailwindcss": "^3.13.0", - "eslint-plugin-testing-library": "^6.0.1", - "husky": "^8.0.0", - "jest": "^29.7.0", - "jest-canvas-mock": "^2.5.2", - "jest-environment-jsdom": "^29.7.0", - "jest-junit": "^16.0.0", - "jest-watch-typeahead": "^2.2.2", - "lint-staged": "^14.0.1", - "next-router-mock": "^0.9.10", - "prettier": "^3.0.3", - "prettier-2": "npm:prettier@^2", - "prettier-plugin-tailwindcss": "^0.5.6", - "redux-mock-store": "^1.5.4", - "redux-thunk": "^2.4.2", - "typescript": "^5.2.2", - "zod-fixture": "^2.5.0" + "@commitlint/cli": "17.8.1", + "@commitlint/config-conventional": "17.8.1", + "@testing-library/jest-dom": "6.1.6", + "@testing-library/react": "14.1.2", + "@testing-library/user-event": "14.5.2", + "@types/crypto-js": "4.2.2", + "@types/is-uuid": "1.0.2", + "@types/jest": "29.5.11", + "@types/react-redux": "7.1.33", + "@types/redux-mock-store": "1.0.6", + "@types/uuid": "9.0.8", + "@typescript-eslint/eslint-plugin": "6.17.0", + "@typescript-eslint/parser": "6.17.0", + "axios-mock-adapter": "1.22.0", + "cypress": "13.6.2", + "cz-conventional-changelog": "3.3.0", + "eslint": "8.56.0", + "eslint-config-airbnb": "19.0.4", + "eslint-config-prettier": "9.1.0", + "eslint-config-standard-with-typescript": "39.1.1", + "eslint-plugin-import": "2.29.1", + "eslint-plugin-jsx-a11y": "6.8.0", + "eslint-plugin-n": "16.6.1", + "eslint-plugin-prettier": "5.1.2", + "eslint-plugin-promise": "6.1.1", + "eslint-plugin-react": "7.33.2", + "eslint-plugin-react-hooks": "4.6.0", + "eslint-plugin-tailwindcss": "3.13.1", + "eslint-plugin-testing-library": "6.2.0", + "husky": "8.0.3", + "jest": "29.7.0", + "jest-canvas-mock": "2.5.2", + "jest-environment-jsdom": "29.7.0", + "jest-junit": "16.0.0", + "jest-watch-typeahead": "2.2.2", + "lint-staged": "14.0.1", + "next-router-mock": "0.9.11", + "prettier": "3.1.1", + "prettier-2": "npm:prettier@2.8.8", + "prettier-plugin-tailwindcss": "0.5.6", + "redux-mock-store": "1.5.4", + "redux-thunk": "2.4.2", + "typescript": "5.3.3", + "zod-fixture": "2.5.1" }, "config": { "commitizen": {