fulcrum-core
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

Fulcrum Core

The JavaScript object model for Fulcrum.

Includes:

  • Form schema parsing and definitions
  • Record parsing and field value definitions
  • Record (and child record) titles
  • Address field formatting
  • Date/time localization
  • Number localization (1.337,00 vs 1,337.00)
  • Currency formatting
  • Choice and classification set label lookups
  • Visibility and requirement conditions
  • Required field validations
  • Min/max validations
  • Pattern validations
  • Default values
  • Canonical definitions of "emptiness" / blank / length / etc
  • JSON serialization for all field types
  • Formatting calculation fields
  • Full support for record link fields and repeatables

Setup

yarn install

Tests

yarn test

Console

Starts an interactive node terminal with the library available to use

./console

Publishing

  • yarn clean && yarn build
  • Bump package.json version
  • Merge to main
  • Checkout main, git pull
  • git tag -a vx.x.x -m "x.x.x"
  • git push origin --tags
  • Create vx.x.x release for tag in github
    • Choose the tag and use tag as the release title
    • Auto-generate release nots
    • Click the "Publish release" button
  • Publish to the public NPM registry
    • mv $HOME/.npmrc $HOME/fulcrum.npmrc
    • npm login
    • yarn publish
  • Restore your .npmrc file
    • mv $HOME/fulcrum.npmrc $HOME/.npmrc

Readme

Keywords

Package Sidebar

Install

npm i fulcrum-core

Weekly Downloads

456

Version

1.4.3

License

BSD-3-Clause

Unpacked Size

1.86 MB

Total Files

529

Last publish

Collaborators

  • zhm
  • fulcrumapp