@micro-fleet/microservice
v2.4.0-rc1
Published
Provides backbone and manage lifecycle for microservice.
Readme
Micro Fleet - Microservice
Belongs to Micro Fleet framework. Provides a base class that manages the lifecycle of a (micro)service.
INSTALLATION
- Stable version:
npm i @micro-fleet/microservice - Edge (development) version:
npm i [email protected]:gennovative/micro-fleet-microservice.git
DEVELOPMENT
Install packages in
peerDependenciessection with commandnpm i --no-save {package name}@{version}.Otherwise, you directly use neighbor packages by excuting
npm run linkPackages. It creates symlinks to all directories inpackages/libs. The symlinks stay in the{monorepo root}/node_modules/@micro-fleet.npm run buildto transpile TypeScript then run unit tests (if any) (equiv.npm run compile+npm run test(if any)).npm run compile: To transpile TypeScript into JavaScript.npm run watch: To transpile without running unit tests, then watch for changes in *.ts files and re-transpile on save.npm run test: To run unit tests.
RELEASE
npm run release: To transpile and createapp.d.tsdefinition file.- Note: Please commit transpiled code in folder
distand definition fileapp.d.tsrelevant to the TypeScript source code. So that other people cannpm install {git URL}and use the package without the burden of devDependencies and transpilation.
