CentreForDigitalHumanities / CentreForDigitalHumanities/langpro-annotator
Integration of version.ts
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 7d 5h
- Merged PRs (30d)
- 4
Description
In a standard CookieCutter application, building the frontend triggers `frontend/build/build-pre.js`, which creates `version.ts`, a required file (for `environment.ts`). This requires a `package.json` in the root level of the project and an initialized git repo. When we build the frontend container, we have neither.
The current approach hardcodes the git repo in the compose file and lets the user add a version tag in env, but it makes more sense to supply this information in the deployment module.
Contributor guide
Research direction
Start with frontend/build/build-pre.js and inspect how it creates version.ts for environment.ts. Then read the compose file and locate the deployment module responsible for supplying version information. Done means the frontend container can build without a root package.json or initialized git repository, with version data supplied by the deployment module.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, typescript
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100