1.0.9 • Published 3 years ago
@pinaid/formula v1.0.9
Formula
Installation
npm:
$ npm install --save @pinaid/formulayarn:
$ yarn add @pinaid/formulaUsage
Once the package is installed, you can import the library using import or require approach:
import formula from '@pinaid/formula`;
console.log(formula.version);
// or
import { version } from '@pinaid/formula`;
console.log(version);
// or
const formula = require('@pinaid/formula);
console.log(formula.version);APIs
| Function/Scoped Function | Docs |
|---|---|
fv | README |
pv | README |
pmt | README |
compound | README |
goal (scoped) | README |
Test & Development
From root project:
$ npm run test:watch --workspace=@pinaid/formulaFrom formula directory:
$ npm run test:watchRun Examples
Run the package as dev & watch mode:
$ npm run dev --workspace=@pinaid/formulaRun the examples:
$ cd packages/formula/examples
$ npm startBuild
From root project:
$ npm run build --workspace=@pinaid/formulaVersioning & Add Changelogs
Create changelog draft:
$ npm run changesetUpdate draft inside .changeset/newly-added-draft-file-name.json
Bump version & update CHANGELOG.md
$ npm run changeset:versionPublishing
Publish the package to npm:
Need authentication (one time) before publishing to npm, run:
$ npm adduserPublish:
$ npm publish --workspace=@pinaid/formula