Vonage / vonage-node-sdk

Vonage API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Apache License 2.0
375 stars 178 forks source link

build: adding husky with testing and lint fix #753

Closed manchuck closed 1 year ago

manchuck commented 1 year ago

Description

Adding husky and lint-staged to ensure we have proper builds and clean files.

Motivation and Context

Some packages did not properly have their dependencies set up correctly. This won't be an issue when installing @vonage/server-sdk but will present an issue when installing the individual package. Having Husky running the depcheck, linter (for staged files only) and jest, will help developers catch silly mistakes early.

Testing Details

run npm install and then make a commit

Example Output or Screenshots (if appropriate)

Types of changes

Checklist