Common data adapter functionality across web server and background workers
$ npm install --save crosslead-adapters
import { adapterTypes, adapterFactory } from 'crosslead-adapters';
const googleCalendar = adapterFactory.createAdapter(adapterTypes.GOOGLE_CALENDAR);
...
If using browserify / webpack / etc., simply require the client module
import { adapterTypes } from 'crosslead-adapters/dist/client';
(Coming soon)
To compile the project, lint, and run tests run...
npm run test
To start tsc
in watch mode, run...
npm run watch
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.