common shared library for grabber
npm install npm-common-lib-for-firebasenpm i npm-common-lib-for-firebase
add firebase certificate into your root folder and name it
credential-firebase-adminsdk.json
To develop, we run:
npm run watch-ts
Open any of grabber service and replace each import of 'npm-common-lib-for-firebase' with '../../npm-common-lib/src'.
Replace
import { Crawler } from 'npm-common-lib-for-firebase';
import { asyncForEach, groupBy, splitByServerIndex, Avvenimento, League } from 'npm-common-lib-for-firebase';
With
import { Crawler } from '../../npm-common-lib/dist-js';
import { asyncForEach, groupBy, splitByServerIndex, Avvenimento, League } from '../../npm-common-lib/dist-js';
run (open it in terminal debug for debbuging)
npm version patch
npm run build
npm publish
to build docs
npx typedoc --out ./docs src