/nodejs

My common JavaScript/TypeScript code I use across repositories

Primary LanguageTypeScriptMIT LicenseMIT

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

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