0.1.0 • Published 3 years ago

@hux-js/cli v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

CLI is the command line interface for Hux. It includes features such as API contract testing. This can be used in automated testing pipelines, or locally, to ensure your clients are compatible with the data returned from the server.


Installation

NPM

npm i @hux-js/cli

Yarn

yarn add @hux-js/cli

Basic usage

Contract testing

Add the following script to the scripts object in package.json, where -d src/ is your app directory:

"test:contract": "hux test -d src/"

You can then call it with npm run test:contract.


Contributing

If you'd like to contribute please read our Code of Conduct & Contributing guides before doing so


Full Documentation - https://huxjs.org