Some checks failed
CI / skip-ci-check (push) Successful in 1m27s
CI / skip-ci-check (pull_request) Successful in 1m27s
CI / lint-and-type-check (pull_request) Has been cancelled
CI / python-lint (pull_request) Has been cancelled
CI / test-backend (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / secret-scanning (pull_request) Has been cancelled
CI / dependency-scan (pull_request) Has been cancelled
CI / sast-scan (pull_request) Has been cancelled
CI / workflow-summary (pull_request) Has been cancelled
CI / lint-and-type-check (push) Successful in 2m4s
CI / python-lint (push) Successful in 1m53s
CI / test-backend (push) Successful in 2m37s
CI / build (push) Failing after 2m13s
CI / secret-scanning (push) Successful in 1m40s
CI / dependency-scan (push) Successful in 1m34s
CI / sast-scan (push) Successful in 2m42s
CI / workflow-summary (push) Successful in 1m26s
This commit modifies the `.gitignore` file to exclude Python library directories while ensuring the viewer-frontend's `lib` directory is not ignored. It also updates the `package.json` to activate the virtual environment during backend tests, improving the testing process. Additionally, the CI workflow is enhanced to prevent duplicate runs for branches with open pull requests. Various components in the viewer frontend are updated to ensure consistent naming conventions and improve type safety. These changes contribute to a cleaner codebase and a more efficient development workflow.
32 lines
2.0 KiB
JSON
32 lines
2.0 KiB
JSON
{
|
|
"name": "punimtag-monorepo",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "PunimTag monorepo - Photo management with facial recognition",
|
|
"scripts": {
|
|
"install:all": "npm install --prefix admin-frontend && npm install --prefix viewer-frontend",
|
|
"dev:admin": "npm run dev --prefix admin-frontend",
|
|
"dev:viewer": "npm run dev --prefix viewer-frontend",
|
|
"dev:backend": "source venv/bin/activate && export PYTHONPATH=$(pwd) && uvicorn backend.app:app --host 127.0.0.1 --port 8000",
|
|
"build:admin": "npm run build --prefix admin-frontend",
|
|
"build:viewer": "npm run build --prefix viewer-frontend",
|
|
"build:all": "npm run build:admin && npm run build:viewer",
|
|
"lint:admin": "npm run lint --prefix admin-frontend",
|
|
"lint:viewer": "npm run lint --prefix viewer-frontend",
|
|
"lint:all": "npm run lint:admin && npm run lint:viewer",
|
|
"type-check:viewer": "npm run type-check --prefix viewer-frontend",
|
|
"lint:python": "flake8 backend --max-line-length=100 --ignore=E501,W503 || true",
|
|
"lint:python:syntax": "find backend -name '*.py' -exec python -m py_compile {} \\;",
|
|
"test:backend": "export PYTHONPATH=$(pwd) && source venv/bin/activate && python3 -m pytest tests/ -v || python3 -m pytest tests/ -v",
|
|
"test:all": "npm run test:backend",
|
|
"ci:local": "npm run lint:all && npm run type-check:viewer && npm run lint:python && npm run test:backend && npm run build:all",
|
|
"deploy:dev": "npm run build:all && echo '✅ Build complete. Ready for deployment to dev server (10.0.10.121)'",
|
|
"deploy:dev:prepare": "npm run build:all && mkdir -p deploy/package && cp -r backend deploy/package/ && cp -r admin-frontend/dist deploy/package/admin-frontend-dist && cp -r viewer-frontend/.next deploy/package/viewer-frontend-next && cp requirements.txt deploy/package/ && cp .env.example deploy/package/ && echo '✅ Deployment package prepared in deploy/package/'"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=9.0.0"
|
|
}
|
|
}
|
|
|