Development

contact.js is developed in TypeScript and uses Parcel as a build tool. The following describes how to build contact.js from source.
Getting Started
1. Install nodejs if you haven't done it already.
2. Clone the contact.js repository:
git clone https://github.com/biodiv/contactjs.git
You can now modify the contents of the src/ folder if you want.
Build from source
Inside the project directory, conactjs/, run the following to install all dependencies.
npm install
To build .js files you can use in your project, run
npx parcel build
This will create a dist/ directory containing the .js files.
Manual tests
The tests inside the tests/ directory only work if you have previously built contactjs from source as described above. These tests include the .js files from the dist/ directory, so your build will automatically be covered by those tests.