appointments-library v0.0.2
Appointments Component Library
This is a component library that provides reusable UI components from the appointments application.
Installation
npm install appointments-componentsScripts
This library contains the following scripts:
Build
Build is used tTo compile and optimize the component library for production or deployment. It generates bundled JavaScript files and type definitions, making your library ready to be used by others.
npm run buildTesting
The library uses a Jest test suite to maintain tests. The following script will run the tests for the library by executing two sub-scripts: test:ts and test:jest. The test:ts script uses TypeScript Compiler (tsc) to check the TypeScript code for errors, and the test:jest script runs the tests using Jest.
npm run testFormat
The library follows the prettier formatting convention. The script below can be run to format all files inside of the src directory and is advised before committing.
npm run formatStorybook
The library is documented using Storybook 7. Running storybook will start the storybook server allowing you to test components in isolation.
npm run storybookDependencies
Required Peer Dependencies
These libraries are not bundled with Appointments Components and required at runtime: