This project containts TypeScript types for spring projects.
In order to be able to develop libraries yarn provides link
functionality. This links a package to your local copy
existing in your computer.
Simply go into the library project and run:
$ yarn link
Then, go the the project where you are using the library and run:
$ yarn install <library_name>
.library_name
is whatever is written under package.json
name
field.
Then, you can use the library as if was a regular library:
const {hello} = require("<library_name>");
const helloOutcome = hello();
console.log(helloOutcome); // -> "Hello world!"
Even though there is a test
setup in package.json
, you can have IntelliJ integration with the fllowing setup:
- It is important that
tsconfig.json
has"declaration": true,