refactor: simplify package.json scripts and add config helpers
- Remove references to deleted deployment scripts - Simplify build commands (remove environment variants) - Add config helper scripts (config, config:env, config:help) - Remove complex docker, gitea, and deployment scripts - Focus on core development workflow - Maintain essential scripts: dev, build, test, lint
This commit is contained in:
40
package.json
40
package.json
@@ -1,15 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "RxMinder",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"predev": "./scripts/process-html.sh",
|
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "NODE_ENV=development vite build",
|
"build": "vite build",
|
||||||
"build:prod": "NODE_ENV=production vite build",
|
|
||||||
"build:dev": "NODE_ENV=development vite build",
|
|
||||||
"build:staging": "NODE_ENV=staging vite build",
|
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint . --ext .ts,.tsx",
|
"lint": "eslint . --ext .ts,.tsx",
|
||||||
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
"lint:fix": "eslint . --ext .ts,.tsx --fix",
|
||||||
@@ -22,43 +17,16 @@
|
|||||||
"test:fast": "jest --testPathPatterns='(utils|types|services).*test\\.(ts|js)$' --passWithNoTests",
|
"test:fast": "jest --testPathPatterns='(utils|types|services).*test\\.(ts|js)$' --passWithNoTests",
|
||||||
"test:unit": "jest --testPathPatterns='(utils|types).*test\\.(ts|js)$'",
|
"test:unit": "jest --testPathPatterns='(utils|types).*test\\.(ts|js)$'",
|
||||||
"test:services": "jest --testPathPatterns='services.*test\\.(ts|js)$'",
|
"test:services": "jest --testPathPatterns='services.*test\\.(ts|js)$'",
|
||||||
"test:integration": "jest tests/integration/production.test.js",
|
|
||||||
"test:e2e": "playwright test",
|
|
||||||
"test:e2e:ui": "playwright test --ui",
|
|
||||||
"test:e2e:debug": "playwright test --debug",
|
|
||||||
"test:e2e:report": "playwright show-report",
|
|
||||||
"test:all": "bun run test && bun run test:integration && bun run test:e2e",
|
|
||||||
"lint:markdown": "markdownlint-cli2 \"**/*.md\"",
|
"lint:markdown": "markdownlint-cli2 \"**/*.md\"",
|
||||||
"lint:markdown:fix": "markdownlint-cli2 --fix \"**/*.md\"",
|
"lint:markdown:fix": "markdownlint-cli2 --fix \"**/*.md\"",
|
||||||
"lint:docker": "dockerfilelint docker/Dockerfile",
|
|
||||||
"check:secrets": "secretlint \"**/*\"",
|
"check:secrets": "secretlint \"**/*\"",
|
||||||
"check:editorconfig": "eclint check .",
|
"check:editorconfig": "eclint check .",
|
||||||
"fix:editorconfig": "eclint fix .",
|
"fix:editorconfig": "eclint fix .",
|
||||||
"pre-commit": "lint-staged",
|
"pre-commit": "lint-staged",
|
||||||
"pre-commit:enhanced": "./scripts/pre-commit-checks.sh",
|
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"setup": "./scripts/setup.sh",
|
"config": "bun show-config.js",
|
||||||
"deploy": "./scripts/deploy.sh",
|
"config:env": "bun show-config.js --env",
|
||||||
"deploy:k8s": "./scripts/deploy-k8s.sh",
|
"config:help": "bun show-config.js --help"
|
||||||
"undeploy:k8s": "./scripts/undeploy-k8s.sh",
|
|
||||||
"validate:env": "./scripts/validate-env.sh",
|
|
||||||
"validate:deployment": "./scripts/validate-deployment.sh",
|
|
||||||
"seed:production": "bun scripts/seed-production.js",
|
|
||||||
"docker:setup": "./scripts/buildx-helper.sh setup",
|
|
||||||
"docker:build": "./scripts/buildx-helper.sh build-multi",
|
|
||||||
"docker:build-local": "./scripts/buildx-helper.sh build-local",
|
|
||||||
"docker:bake": "./scripts/buildx-helper.sh bake",
|
|
||||||
"docker:inspect": "./scripts/buildx-helper.sh inspect",
|
|
||||||
"docker:cleanup": "./scripts/buildx-helper.sh cleanup",
|
|
||||||
"gitea:setup": "./scripts/gitea-helper.sh setup",
|
|
||||||
"gitea:build": "./scripts/gitea-helper.sh build-multi",
|
|
||||||
"gitea:build-local": "./scripts/gitea-helper.sh build-local",
|
|
||||||
"gitea:build-staging": "./scripts/gitea-helper.sh build-staging",
|
|
||||||
"gitea:build-prod": "./scripts/gitea-helper.sh build-prod",
|
|
||||||
"gitea:test": "./scripts/gitea-helper.sh test",
|
|
||||||
"gitea:deploy": "./scripts/gitea-helper.sh deploy",
|
|
||||||
"gitea:status": "./scripts/gitea-helper.sh status",
|
|
||||||
"gitea:cleanup": "./scripts/gitea-helper.sh cleanup"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bcryptjs": "^3.0.2",
|
"bcryptjs": "^3.0.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user