This is a set of functions/classes/components that I regularly use.
For my personal use, but could be useful for others to see how to do things.
this needs to be deployed for the web.
Install
yarn add "https://github.com/aizatto/nodejs.git#master"
Develope against another repository
In the cloned directory:
yarn link
In the repository you want to work in:
yarn link aizatto
ESLint
- http://eslint.org
- https://www.npmjs.com/package/eslint-config-prettier
- https://www.npmjs.com/package/@typescript-eslint/eslint-plugin
To Use
import { setMath } = require('aizatto/lib/fn.js');
Misc
If types are missing
yarn run flow-type install
Test
Full test:
yarn run test
Watch
yarn run watch:build
Build for production
yarn run build
TypeScript
Test Mocha
mocha -r ts-node/register test/client.ts