Files
SnapOtter/package.json
T
Siddharth Kumar Sah 80e536bcf8 chore: remove dead code, add test infrastructure, update docs
- Delete 3 dead files: use-batch-processor.ts, use-i18n.ts, smart-crop.ts (AI package)
- Remove dead getJobProgress function and unused runPythonScript wrapper
- Remove 6 unused imports across API and web apps
- Remove unused shared types (ImageFormat, AppConfig, ApiError, HealthResponse, JobProgress)
  and constants (SUPPORTED_INPUT_FORMATS/OUTPUT_FORMATS, DEFAULT_OUTPUT_FORMAT)
- Remove unused store method (setOriginalBlobUrl) and clean AI package re-exports
- Add test infrastructure: vitest config, unit/integration/e2e tests, fixtures, screenshots
- Add Docker test infrastructure: Dockerfile.test, docker-compose.test.yml
- Add download_models.py for pre-baking AI model weights in Docker
- Add filename sanitization utility (apps/api/src/lib/filename.ts)
- Update .gitignore to exclude coverage/, *.tsbuildinfo, .superpowers/, test artifacts
- Update .dockerignore to exclude test/coverage/IDE artifacts from builds
- Update docs: remove smart crop from AI docs (uses Sharp directly), update bridge docs
2026-03-23 11:46:45 +08:00

47 lines
1.7 KiB
JSON

{
"name": "stirling-image",
"version": "0.2.1",
"private": true,
"packageManager": "pnpm@9.15.4",
"scripts": {
"dev": "turbo dev",
"docs:dev": "pnpm --filter @stirling-image/docs docs:dev",
"build": "turbo build",
"lint": "turbo lint",
"clean": "turbo clean",
"typecheck": "turbo typecheck",
"test": "vitest run",
"test:watch": "vitest",
"test:unit": "vitest run --config vitest.config.ts tests/unit",
"test:integration": "vitest run --config vitest.config.ts tests/integration",
"test:coverage": "vitest run --coverage",
"test:ci": "vitest run --coverage --reporter=verbose",
"test:all": "vitest run --coverage && playwright test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:docker": "docker compose -f docker/docker-compose.test.yml up --build --abort-on-container-exit",
"version:sync": "./scripts/sync-version.sh",
"release": "semantic-release",
"release:dry": "semantic-release --dry-run"
},
"devDependencies": {
"@playwright/test": "^1.58.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.6",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.1.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@vitest/coverage-v8": "^3.2.4",
"jsdom": "^29.0.1",
"semantic-release": "^25.0.3",
"turbo": "^2.4.0",
"typescript": "^5.7.0",
"vitest": "^3.0.0"
}
}