@bonitour/common-functions
v2.0.18
Published
Common functions to be used across all projects, we use rollup to export an IIFE build
Downloads
347
Readme
Common functions
Common functions to be used across all projects, we use rollup to export an IIFE build
How to use
To use it, just... use it...
import { identity } from "@bonitour/common-functions";
identity(1) // returns 1
It should be added to your project already, if not, run this command
lerna add @bonitour/common-functions --scope=@bonitour/comerciantes
Documentation
It is all here
Contributing
To contribute, just create your function.js
inside the src/
folder, solve the problem you want to solve, create a JSDoc for it (add the global notation to the functions you want to export to docs), export your function and import it in the index.js
file, write the tests for it inside test/
and run yarn build
, it will generate a new build file, as well as updating your documentation, this should in the future be done as a CI step and precommit step