Shared utilities monorepo for IM Apps projects.
Packages:
- @imapps/api-utils — utilities for Node/API services
- @imapps/web-utils — utilities for frontend web apps
- Build all packages:
yarn buildPublishing is automated via GitLab CI/CD (manual button).
- Where: GitLab CI/CD → After CI passes → Manual "publish" button
- What it does (high level):
- Uses current version from
package.jsonfiles - Builds all workspaces
- Publishes all non-private workspaces to GitLab Package Registry in topological order
- Uses
--tolerate-republishto handle already-published versions
- Uses current version from
Required repository configuration:
- Uses
CI_JOB_TOKENwhich is automatically provided by GitLab CI/CD
Notes:
- Registry is GitLab Package Registry and is configured via
publishConfigin each package.json - Dist-tag defaults to
latest
If you need to publish locally instead of CI, you can still run:
# from repo root
cd packages/api-utils && yarn version patch && yarn npm publish
cd ../web-utils && yarn version patch && yarn npm publishInstall in consumers (e.g. Shoppingo, jewellery-catalogue, kivo):
yarn add @imapps/api-utils @imapps/web-utilsThen import:
import { createPaginatedResponse } from '@imapps/api-utils';
import { cn } from '@imapps/web-utils';