Monorepo for @flowup/contentful-rich-text-angular-renderer, an Angular library for template-driven rendering of Contentful rich text, and its demo app.
→ For usage and customization, see the library README.
| Path | What |
|---|---|
libs/contentful-rich-text-angular-renderer |
The published library (built with ng-packagr) |
apps/demo |
Demo app: JSON editor with a default and a custom preview |
docs/images |
Screenshots used in the READMEs |
npm install
npx nx serve demo # http://localhost:4200
npx nx test contentful-rich-text-angular-renderer # Vitest unit tests
npx nx run-many -t build lint test # everything CI-relevant- Update dependencies.
- Run
npx nx run-many -t build lint testand check that the demo app works correctly. - Open
libs/contentful-rich-text-angular-renderer/package.json:- Bump the library
version. - Check that all peer dependencies are correct.
- Update the compatibility table in the library README if the Angular major changed.
- Bump the library
- Build the library with
npx nx run contentful-rich-text-angular-renderer:build:production. - Change the working directory to the generated dist:
cd dist/libs/contentful-rich-text-angular-renderer. - Check that all changes were reflected correctly:
- Versions of (peer) dependencies.
- Correct
versionof the library.
- Publish with
npm publish. - Publish the demo app with
firebase deploy --only hosting.
