@ranaxl/lib-core
v0.1.0
Published
Shared Angular services and models for the MFE applications
Maintainers
Readme
LibCore
This project was generated using Angular CLI version 19.2.0.
Code scaffolding
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
# lib-core
Shared Angular services and models used by the MFE applications.
## Requirements
- Node.js 20 or newer
- npm
- Angular 19 applications
## Install
From npm after a release:
```bash
npm install @ranaxl/lib-coreFor local development, build the package and install the generated output:
npm install
npm run build
npm install ./distPublic API
The package exports:
AppContextServiceCoreApiServiceBootstrapResponse
Example:
import { AppContextService } from '@ranaxl/lib-core';
export class AppComponent {
readonly context = inject(AppContextService);
}Development
Build the package:
npm run buildThe build output is written to dist/ and is the package directory used for npm publishing.
Unit tests should be added before the first production release. The current repository is validated by the package build.
Release
Check that the package name is available before the first release:
npm view @ranaxl/lib-core versionUpdate the version in package.json, then build and publish:
npm version patch
npm run build
cd dist
npm publishThe publishConfig in package.json marks this scoped package as public, so npm publish is sufficient.
Create a Git tag for each published version:
git push origin main --follow-tags