2.4.0-rc1 • Published 4 years ago
@micro-fleet/id-generator v2.4.0-rc1
Micro Fleet - Backend ID Generator library
Belongs to Micro Fleet framework, provides methods to generate database primary key ID.
See more examples and usage guide in unit test.
INSTALLATION
- Stable version:
npm i @micro-fleet/id-generator
- Edge (development) version:
npm i git://github.com/gennovative/micro-fleet-id-generator.git
DEVELOPMENT
- Install packages in
peerDependencies
section with commandnpm i --no-save {package name}@{version}
. Or if you want to use directly neighbor packages, excutenpm run linkPackages
. npm run build
to 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.- After tests finish, open file
/coverage/index.html
with a web browser to see the code coverage report which is mapped to TypeScript code.
- After tests finish, open file
RELEASE
npm run release
: To transpile and createapp.d.ts
definition file.- Note: Please commit transpiled code in folder
dist
and definition fileapp.d.ts
relevant to the TypeScript version.