1.0.30 • Published 5 years ago

@postmates/bizops-frontend-utils v1.0.30

Weekly downloads
56
License
MIT
Repository
github
Last release
5 years ago

bizops-frontend-utils

Common front end utility functions shared across Business Operations Repositories. See the following Proposal document outling the reasoning behind this library.

Installing

Using npm: npm i -D @postmates/bizops-frontend-utils
Using yarn: yarn add --dev @postmates/bizops-frontend-utils

Utilizing Library

View the UTILS.md file for information on available utility functions and examples of how to use them

Adding new utility functions

To add utility functions to this library, please follow the instructions below

Getting Started

  1. Install nvm to your local machine.
  2. Run nvm use to install supported node version.
  3. Run npm install.

Guide to writing utility functions

  1. Add utility functions inside of the src/ directory
  2. Include tests in the tests directory. Ensure that the utility function is 90% coveraged, per repository requirements.
  3. Ensure that all new file(s) are linted by running, npm run lint
  4. Document the purpose of the utility and provide an explanation under the UTILS.md file

Ensuring tests work in external world

When publishing a new package, it can be hard to determine whether or not it will work wither other npm packages. To simulate an external package, a deploy_tests folder was created that simulates an external project using the published version. Please add tests in this folder to ensure that every library function will work as expected. To run tests in this folder, run $npm run test:deployed:package

Publishing utility functions

  1. Log in to npm via npm login in your terminal
  2. Increase the version of the application by going into the package.json file, and incrementing the version of the app.
  3. Type npm publish
  4. More information can be found in this publishing to npm link.
  5. npm registry for bizops-front-utils found in the private postmates registry.
1.0.30

5 years ago

1.0.29

5 years ago

1.0.27

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago