This is a library do ...
yarn add @simplifield/xxx
import { something } from '@simplifield/xxx';
something(); // => something
yarn dev
will watch your source files in /src
and build at each change in /dist
This module use jest as test runner, and you can pass jest flags through yarn.
yarn test
yarn test --watch
yarn test --coverage
yarn test src/something.test.ts
It will take care of the bundling, you only have to run this command and chose the good version number
yarn publish
You dist
folder will be published and you will be able to access to different packaging flavors for your module (see microbundlehttps://github.com/developit/microbundle), and even a type definition file.