Files
openstapps/README.md

5.7 KiB

Open StApps Monorepo

Refer to the contribution guide

Projects

Apps

Name Version License Readme
Core npm license) frontend/app
Backend npm license) backend/backend
Proxy npm license) backend/proxy
Database npm license) backend/database

Libraries

Name Version License Readme
Core npm license) packages/core
API npm license) packages/api
API Plugin npm license) packages/api-plugin
Logger npm license) packages/logger
Core Tools npm license) packages/core-tools

Publishing

After having added all changes using pnpm changeset

pnpm changeset version # bump versions
pnpm install # update lockfile and rebuild packages
pnpm build # make sure all packages are built
pnpm publish -r # publish all packages not yet in the registry
git add .
git commit -m "v[VERSION]"
git tag -a "v[VERSION]"
git push --follow-tags

Remote caching

Turbo supports remote caching, which massively speeds up build processes.

Connecting to the remote cache locally

.env.local

TURBO_API=http://example:3000
TURBO_TEAM=openstapps
TURBO_TOKEN=abc123

Connecting to the remote cache in GitLab Pipelines

You will need to define

  • TURBO_API
  • TURBO_TEAM
  • TURBO_TOKEN Like you did locally as described in this guide.

Hosting a cache

Self-hosting via Docker is extremely simple, just follow this guide or in short:

.env

PORT=...
TURBO_TOKEN=...
docker run --env-file=.env -p 3000:3000 fox1t/turborepo-remote-cache

Useful commands

Why is this package bloating the app?

pnpm why --prod -r --filter @openstapps/app PACKAGE

Licenses

pnpm licenses --prod --filter PROJECT