| @@ -1,26 +1,22 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "name": "hostinger", |
| 3 | 3 | "private": true, |
| 4 | + "main": "webpack.mix.js", | |
| 4 | 5 | "scripts": { |
| 5 | 6 | "auth:gcp": "gcloud auth application-default login", |
| 6 | 7 | "auth:gca": "npx google-artifactregistry-auth", |
| 7 | 8 | "dev": "npm run development", |
| 8 | - "development": "npm run sync:cursor-skills && cross-env NODE_ENV=development node scripts/build-assets.mjs", | |
| 9 | + "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| 9 | 10 | "prod": "npm run production", |
| 10 | - "watch": "npm run sync:cursor-skills && cross-env NODE_ENV=development node scripts/build-assets.mjs --watch", | |
| 11 | - "production": "npm run sync:cursor-skills && cross-env NODE_ENV=production node scripts/build-assets.mjs", | |
| 12 | - "dev:vue-frontend": "npm run sync:cursor-skills && webpack --mode development --watch", | |
| 13 | - "build:vue-frontend": "npm run sync:cursor-skills && webpack --mode production", | |
| 14 | - "prepare": "npm run sync:cursor-skills && husky", | |
| 11 | + "watch": "npm run development -- --watch", | |
| 12 | + "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --config=node_modules/laravel-mix/setup/webpack.config.js", | |
| 13 | + "dev:vue-frontend": "webpack --mode development --watch", | |
| 14 | + "build:vue-frontend": "webpack --mode production", | |
| 15 | + "prepare": "husky", | |
| 15 | 16 | "lint:php": "vendor/bin/phpcs", |
| 16 | 17 | "lint:frontend": "eslint vue-frontend/src --config vue-frontend/src/eslint.config.mjs", |
| 17 | - "lint:frontend:fix": "eslint vue-frontend/src --config vue-frontend/src/eslint.config.mjs --fix", | |
| 18 | - "test:vue": "vitest --run", | |
| 19 | - "test:vue:watch": "vitest --watch", | |
| 20 | - "test:vue:ui": "vitest --ui", | |
| 21 | - "test:coverage": "vitest --run --coverage", | |
| 22 | - "sync:cursor-skills": "npx @hostinger/wp-plugin-toolkit sync-cursor-skills" | |
| 18 | + "lint:frontend:fix": "eslint vue-frontend/src --config vue-frontend/src/eslint.config.mjs --fix" | |
| 23 | 19 | }, |
| 24 | 20 | "lint-staged": { |
| 25 | 21 | "*.php": [ |
| 26 | 22 | "npm run lint:php" |
| @@ -29,68 +25,74 @@ | ||
| 29 | 25 | "npm run lint:frontend" |
| 30 | 26 | ] |
| 31 | 27 | }, |
| 32 | 28 | "devDependencies": { |
| 29 | + "@babel/core": "^7.23.6", | |
| 30 | + "@babel/preset-env": "^7.23.6", | |
| 33 | 31 | "@eslint/js": "^9.32.0", |
| 34 | - "@hostinger/wp-plugin-toolkit": "^1.1.0", | |
| 35 | 32 | "@rushstack/eslint-patch": "^1.12.0", |
| 36 | 33 | "@types/lodash": "^4.17.20", |
| 37 | - "@types/node": "^25.6.0", | |
| 34 | + "@types/node": "^20.10.5", | |
| 38 | 35 | "@typescript-eslint/eslint-plugin": "^8.38.0", |
| 39 | - "@typescript-eslint/parser": "^8.59.3", | |
| 40 | - "@vitest/coverage-v8": "^4.1.6", | |
| 36 | + "@typescript-eslint/parser": "^8.38.0", | |
| 41 | 37 | "@vue/eslint-config-typescript": "^14.1.3", |
| 42 | - "@vue/test-utils": "^2.4.6", | |
| 43 | - "@vue/tsconfig": "^0.9.1", | |
| 44 | - "cross-env": "^10.0.0", | |
| 45 | - "css-loader": "^7.1.4", | |
| 46 | - "css-minimizer-webpack-plugin": "^8.0.0", | |
| 38 | + "babel-loader": "^9.1.3", | |
| 39 | + "cross-env": "^7.0.3", | |
| 40 | + "css-loader": "^6.8.1", | |
| 41 | + "css-minimizer-webpack-plugin": "^5.0.1", | |
| 47 | 42 | "eslint": "^9.32.0", |
| 48 | 43 | "eslint-plugin-import": "^2.32.0", |
| 49 | 44 | "eslint-plugin-modules-newlines": "^0.0.7", |
| 50 | - "eslint-plugin-simple-import-sort": "^13.0.0", | |
| 45 | + "eslint-plugin-simple-import-sort": "^12.1.1", | |
| 51 | 46 | "eslint-plugin-unused-imports": "^4.1.4", |
| 52 | - "eslint-plugin-vue": "^10.9.1", | |
| 47 | + "eslint-plugin-vue": "^10.2.0", | |
| 53 | 48 | "husky": "^9.1.7", |
| 54 | - "jsdom": "^27.4.0", | |
| 55 | - "lint-staged": "^17.0.4", | |
| 56 | - "lodash": "^4.17.23", | |
| 57 | - "mini-css-extract-plugin": "^2.10.2", | |
| 58 | - "punycode": "^2.3.1", | |
| 49 | + "laravel-mix": "^6.0.49", | |
| 50 | + "lint-staged": "^16.1.2", | |
| 51 | + "lodash": "^4.17.21", | |
| 52 | + "mini-css-extract-plugin": "^2.9.2", | |
| 53 | + "null-loader": "^4.0.1", | |
| 54 | + "resolve-url-loader": "^5.0.0", | |
| 59 | 55 | "sass": "^1.89.2", |
| 60 | - "sass-loader": "^16.0.8", | |
| 61 | - "style-loader": "^4.0.0", | |
| 56 | + "sass-loader": "^16.0.5", | |
| 57 | + "style-loader": "^3.3.4", | |
| 58 | + "terser": "^5.26.0", | |
| 62 | 59 | "terser-webpack-plugin": "^5.3.14", |
| 63 | 60 | "ts-loader": "^9.5.2", |
| 64 | - "typescript": "^5.9.3", | |
| 61 | + "typescript": "^5.8.3", | |
| 65 | 62 | "typescript-eslint": "^8.38.0", |
| 66 | 63 | "video.js": "^8.10.0", |
| 67 | - "vite": "^6.4.2", | |
| 68 | - "vitest": "^4.0.9", | |
| 69 | 64 | "vue": "^3.5.17", |
| 70 | 65 | "vue-eslint-parser": "^10.1.4", |
| 71 | - "vue-loader": "^17.4.2", | |
| 72 | - "webpack": "^5.105.4", | |
| 73 | - "webpack-cli": "^7.0.2" | |
| 66 | + "vue-loader": "^16.8.3", | |
| 67 | + "vue-style-loader": "^4.1.3", | |
| 68 | + "webpack": "^5.99.9", | |
| 69 | + "webpack-cli": "^6.0.1" | |
| 74 | 70 | }, |
| 75 | 71 | "dependencies": { |
| 76 | - "@vitejs/plugin-vue": "^5.2.4", | |
| 77 | - "@vueuse/core": "^14.2.1", | |
| 78 | - "axios": "^1.15.0", | |
| 72 | + "@vue/tsconfig": "^0.4.0", | |
| 73 | + "@vueuse/core": "^10.7.0", | |
| 74 | + "axios": "^1.7.7", | |
| 79 | 75 | "bootstrap-scss": "^5.3.3", |
| 80 | - "pinia": "^3.0.4", | |
| 81 | - "pinia-plugin-persistedstate": "^4.7.1", | |
| 82 | - "survey-core": "^1.12.53", | |
| 83 | - "survey-jquery": "^1.12.53", | |
| 84 | - "survey-knockout-ui": "^1.12.53", | |
| 76 | + "pinia": "^2.2.6", | |
| 77 | + "pinia-plugin-persistedstate": "^3.2.1", | |
| 78 | + "survey-core": "^1.9.104", | |
| 79 | + "survey-jquery": "^1.9.104", | |
| 80 | + "survey-knockout-ui": "^1.9.104", | |
| 85 | 81 | "videojs-youtube": "^3.0.1", |
| 86 | - "vue-router": "^5.0.6", | |
| 87 | - "vue3-slide-up-down": "^2.1.0", | |
| 82 | + "vue-router": "^4.2.5", | |
| 88 | 83 | "vue3-toastify": "^0.2.1" |
| 89 | 84 | }, |
| 90 | 85 | "browserslist": [ |
| 91 | 86 | "last 2 versions" |
| 92 | 87 | ], |
| 88 | + "babel": { | |
| 89 | + "presets": [ | |
| 90 | + "@babel/preset-env" | |
| 91 | + ] | |
| 92 | + }, | |
| 93 | 93 | "overrides": { |
| 94 | - "serialize-javascript": "^7.0.3" | |
| 94 | + "postcss": "^8.4.31", | |
| 95 | + "@babel/runtime": "^7.26.10", | |
| 96 | + "webpack-dev-server": "^5.2.1" | |
| 95 | 97 | } |
| 96 | 98 | } |