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:
William Valentin
2025-09-08 21:23:56 -07:00
parent b59160eb10
commit 491f9d0314

View File

@@ -1,15 +1,10 @@
{
"name": "RxMinder",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"predev": "./scripts/process-html.sh",
"dev": "vite",
"build": "NODE_ENV=development vite build",
"build:prod": "NODE_ENV=production vite build",
"build:dev": "NODE_ENV=development vite build",
"build:staging": "NODE_ENV=staging vite build",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
@@ -22,43 +17,16 @@
"test:fast": "jest --testPathPatterns='(utils|types|services).*test\\.(ts|js)$' --passWithNoTests",
"test:unit": "jest --testPathPatterns='(utils|types).*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:fix": "markdownlint-cli2 --fix \"**/*.md\"",
"lint:docker": "dockerfilelint docker/Dockerfile",
"check:secrets": "secretlint \"**/*\"",
"check:editorconfig": "eclint check .",
"fix:editorconfig": "eclint fix .",
"pre-commit": "lint-staged",
"pre-commit:enhanced": "./scripts/pre-commit-checks.sh",
"prepare": "husky",
"setup": "./scripts/setup.sh",
"deploy": "./scripts/deploy.sh",
"deploy:k8s": "./scripts/deploy-k8s.sh",
"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"
"config": "bun show-config.js",
"config:env": "bun show-config.js --env",
"config:help": "bun show-config.js --help"
},
"dependencies": {
"bcryptjs": "^3.0.2",