Socket
Socket
Sign inDemoInstall

@postmates/bizops-frontend-utils

Package Overview
Dependencies
3
Maintainers
32
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @postmates/bizops-frontend-utils

Common front end utility functions share across Business Operations repositories


Version published
Maintainers
32
Created

Readme

Source

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.

FAQs

Last updated on 05 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc