Common utilities for integrations written with Typescript.
npm install @doist/integrations-commonCommon utilities for integrations written with Typescript.
```
npm install @doist/integrations-common
Instead of having an example app in the repository to assist development and testing, we have included ts-node as a dev dependency. This allows us to have a scratch file locally that can import and utilize the modules in the project while developing or reviewing pull requests without having to manage a separate app project.
- Add a file named scratch.ts in the src folder.ts-node
- Configure your IDE to run the scratch file with (instructions for VSCode, WebStorm), or you can optionally run ts-node in a terminal using instructions here.
- Import and call the relevant modules and run the scratch file.
Example scratch.ts file:
`
import { pickRandomString } from './utils/stringUtils'
const randomChoice = pickRandomString(['Option A', 'Option B', 'Option C'])
console.log(randomChoice)
`
This project uses semantic versioning. A new version will be published to GitHub Package Registry when a new tag is pushed. This is done via semantic-release so please check your PR commit messages for the correct format.
```
npm version
git push --follow-tags