From d8bd00cff559c6b4f0115a39292a5218043fc3ca Mon Sep 17 00:00:00 2001 From: Sekwah Date: Wed, 28 Aug 2024 17:27:56 +0200 Subject: [PATCH] wip: switching to mostly default vite package.json --- package.json | 99 +++++++++++----------------------------------------- 1 file changed, 20 insertions(+), 79 deletions(-) diff --git a/package.json b/package.json index 0a786a123..82b797613 100644 --- a/package.json +++ b/package.json @@ -10,94 +10,35 @@ "type": "git", "url": "git@github.com:DependencyTrack/frontend.git" }, + "type": "module", "scripts": { - "start": "npm run serve", - "serve": "npm run prebuild && cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve", - "prebuild": "cross-env NODE_OPTIONS=--openssl-legacy-provider node update-embedded-version.js", - "build": "npm run prebuild && cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build", - "eslint": "eslint . --ext .js,.vue,.json,.md,.yaml --report-unused-disable-directives", - "eslint-fix": "eslint --ext .js,.vue,.json,.md,.yaml --fix . --report-unused-disable-directives", - "prettier": "prettier --check --cache '**/*.{js,vue,json,md,yaml}'", - "prettier-fix": "prettier --write --cache '**/*.{js,vue,json,md,yaml}'", - "vue-i18n-extract": "vue-i18n-extract report --ci" + "start": "npm run dev", + "dev": "vite", + "build": "vite build", + "preview": "vite preview", + "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", + "format": "prettier --write src/" }, "dependencies": { - "@coreui/coreui": "2.1.16", - "@coreui/coreui-plugin-chartjs-custom-tooltips": "1.3.1", - "@coreui/icons": "0.4.1", - "@coreui/vue": "2.1.2", - "@johmun/vue-tags-input": "2.1.0", - "axios": "1.7.4", - "bootstrap": "4.6.2", - "bootstrap-table": "1.22.6", - "bootstrap-vue": "2.23.1", - "chart.js": "2.9.4", - "core-js": "3.36.1", - "css-vars-ponyfill": "2.4.9", - "dompurify": "2.4.9", - "flexver": "1.1.1", - "font-awesome": "4.7.0", - "imurmurhash": "0.1.4", - "jquery": "3.7.1", - "jquery-treegrid": "0.3.0", - "json5": "2.2.3", - "lodash-es": "4.17.21", - "oidc-client": "1.11.5", - "perfect-scrollbar": "1.5.5", - "showdown": "2.1.0", - "showdown-htmlescape": "0.1.9", - "simple-line-icons": "2.5.5", - "vee-validate": "3.4.15", - "vue": "2.7.16", - "vue-axios": "3.5.2", - "vue-bootstrap-toggle": "1.1.4", - "vue-chartjs": "3.5.1", - "vue-debounce": "2.6.0", - "vue-easy-pie-chart": "git+https://git@github.com/DependencyTrack/vue-easy-pie-chart.git#master", - "vue-i18n": "8.28.2", - "vue-multiselect": "2.1.9", - "vue-page-title": "1.3.0", - "vue-perfect-scrollbar": "0.2.1", - "vue-router": "3.6.5", - "vue-toastr": "2.1.2", - "vue2-org-tree": "1.3.6", - "xss-filters": "1.2.7" + "@vue/compat": "^3.4.38", + "vue": "^3.4.29", + "vue-router": "^4.3.3" }, "devDependencies": { - "@babel/core": "7.24.3", - "@babel/eslint-parser": "7.24.1", - "@cyclonedx/cyclonedx-npm": "1.16.2", - "@cyclonedx/webpack-plugin": "2.0.2", - "@vue/babel-helper-vue-jsx-merge-props": "1.4.0", - "@vue/babel-preset-jsx": "1.4.0", - "@vue/cli-plugin-babel": "5.0.8", - "@vue/cli-service": "3.12.1", - "@vue/runtime-dom": "3.4.21", - "copy-webpack-plugin": "5.1.2", - "cross-env": "7.0.3", - "eslint": "8.57.0", - "eslint-config-prettier": "9.1.0", - "eslint-plugin-prettier": "5.1.3", - "eslint-plugin-vue": "9.24.0", - "growl": "1.10.5", - "https-proxy-agent": "2.2.4", - "prettier": "3.2.5", - "prettier-plugin-sort-json": "4.0.0", - "sass": "1.72.0", - "sass-loader": "8.0.2", - "uuid": "9.0.1", - "vue-i18n-extract": "^2.0.7", - "vue-template-compiler": "2.7.16" - }, - "overrides": { - "vue-bootstrap-toggle": { - "merge": "2.1.1" - } + "@rushstack/eslint-patch": "^1.8.0", + "@vitejs/plugin-vue": "^5.0.5", + "@vitejs/plugin-vue-jsx": "^4.0.0", + "@vue/eslint-config-prettier": "^9.0.0", + "eslint": "^8.57.0", + "eslint-plugin-vue": "^9.23.0", + "prettier": "^3.2.5", + "vite": "^5.3.1", + "vite-plugin-vue-devtools": "^7.3.1" }, "browserslist": [ "> 1%", "last 2 versions", - "not ie <= 10" + "not ie <= 11" ], "engines": { "node": ">= 20",