Remove legacy configuration files and scripts, transitioning to Vite for build and development processes. Introduce new HTML files for the landing and terms pages, along with stubs for API responses. Update package.json and package-lock.json to include Vite and related dependencies, enhancing the project structure and build efficiency.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-10-24 14:35:30 +03:00
parent ebf0daacce
commit 7907238c1a
27 changed files with 1461 additions and 621 deletions
+18 -13
View File
@@ -3,18 +3,20 @@
"version": "2.0.1",
"description": "",
"main": "./src/index.tsx",
"scripts": {
"docker:rerun": "docker stop adminka_nginx2 && sh d-scripts/up-nginx.sh",
"predeploy": "npm i && npm run build:prod",
"redeploy": "npm run predeploy && npm run docker:rerun || sh d-scripts/up-nginx.sh",
"clean": "rimraf dist",
"eslint": "npx eslint src",
"prettier": "prettier --write .",
"test": "jest --coverage",
"start": "brojs server --port=8099 --with-open-browser",
"build": "npm run clean && brojs build --dev",
"build:prod": "npm run clean && brojs build"
},
"scripts": {
"docker:rerun": "docker stop adminka_nginx2 && sh d-scripts/up-nginx.sh",
"predeploy": "npm i && npm run build:prod",
"redeploy": "npm run predeploy && npm run docker:rerun || sh d-scripts/up-nginx.sh",
"clean": "rimraf dist",
"eslint": "npx eslint src",
"prettier": "prettier --write .",
"test": "jest --coverage",
"dev": "vite",
"start": "vite",
"build": "vite build",
"build:prod": "vite build --mode production",
"preview": "vite preview"
},
"keywords": [],
"author": "",
"license": "MIT",
@@ -41,6 +43,7 @@
"devDependencies": {
"@eslint/js": "^9.9.0",
"@types/jest": "^29.5.12",
"@vitejs/plugin-react": "^5.1.0",
"babel-jest": "^29.7.0",
"css-loader": "^7.1.2",
"eslint": "^8.57.0",
@@ -55,6 +58,8 @@
"sass-loader": "^16.0.6",
"style-loader": "^4.0.0",
"ts-jest": "^29.2.3",
"typescript-eslint": "^8.1.0"
"typescript-eslint": "^8.1.0",
"vite": "^7.1.12",
"vite-plugin-sass": "^0.1.0"
}
}