@baklavabg/common-ts
v1.0.66
Published
A comprehensive TypeScript library with common utility functions and custom types
Readme
TypeScript Library With Example Javascript and Typescript Consumer Projects
There are three separate projects in this repo.
common-ts is a common library with typescript functions and types.
project-js and project-ts are examples how to use the library in a Javascript and Typescript project.
All three projects contain tests using vitest.
Usage
1. Setup the Library
cd common-ts
npm install
npm run build
npm link
-or-
npm run relink
npm start
2. Run JavaScript Consumer
cd project-js
npm link @baklavabg/common-ts
npm start
-or-
npm run relink
npm start
3. Run TypeScript Consumer
cd project-ts
npm install
npm link @baklavabg/common-ts
npm start
-or-
npm run relink
npm start
4. Testing
Testing is implemented using vitest. For all three projects: npm test
