This repository serve as a library for common Kafka.
-
Clone this repository.
-
Change directory to the repository.
-
Install package dependencies.
npm install
-
Write test cases in a
*.test.ts
file under the same folder with the actual module file. For example, module filesrc/kafka.ts
, unit-test filesrc/kafka.test.ts
. -
Run unit-test command.
-
To run single module unit-test.
npm run test-this src/kafka.test.ts
-
To run all unit-test.
npm run test
-
Please use unit-test method for debugging.
-
Set breakpoint on the source code by pressing
F9
key. -
Run unit-test command with debugging.
npm run debug-this src/kafka.test.ts
-
Start debugging by pressing
F5
key.
Write commit message that contains keyword
-
run-release
to publish patch version. -
run-prerelease
to publish prerelease version.