Install Node v14.4.0

Usage no npm install needed!

<script type="module">
  import charmollerDatabaseModule from 'https://cdn.skypack.dev/@charmoller/database-module';


Install Node v14.4.0

mkdir database-module cd database-module

init node project and install dependent packages

npm init --scope=@charmoller npm install @google-cloud/firestore lru-cache @types/lru-cache object-sizeof npm install --save-dev @types/node

install & initialize typescript

npm install typescript -g npx tsc --init edit package.json add "tsc": "tsc" under scripts add "type": "module" edit tsconfig.json "target": "es6"

install eslint

npm i -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser

install & initialize jest

npm install --save-dev jest @types/jest eslint-plugin-jest @babel/plugin-transform-modules-commonjs jest --init



publish to npm

npm login npm publish --access public