@nxtvid/component-library
v0.1.20
Published
⚠️ **DISCLAIMER** This package is **NOT production-ready** and is intended for **internal use only** at **NXTVid**. It is **unlicensed**, meaning you do **not** have permission to use, distribute, or modify this package if you are not part of NXTVid. *
Downloads
1,308
Readme
NXTVid Component Library
⚠️ DISCLAIMER
This package is NOT production-ready and is intended for internal use only at NXTVid. It is unlicensed, meaning you do not have permission to use, distribute, or modify this package if you are not part of NXTVid. Don’t you dare use it.
Overview
This repository is for building and testing reusable components for the NXTVid platform. The components are designed to be tested, versioned, and integrated across NXTVid projects using NPM.
Workflow
Follow this workflow to contribute a new or updated component:
Write and Test Components
- Build your component
.jsx
file and its corresponding.css
file. - Write unit tests for your component in
Component.test.js
(using Jest and React Testing Library). - Run tests locally:
npm test
- Build your component
Build Stories
- Create component stories in
Component.stories.js
for Storybook to visualize your component. - Start Storybook locally to test and interact with the component:
npm run storybook
- Create component stories in
Prepare for Merge
- Create a new branch from
dev
for your component:git checkout dev git pull origin dev git checkout -b component/<component-name>
- Push your changes and create a pull request for review.
- Create a new branch from
Code Review and Merge
- Submit your branch for code review.
- After approval, merge into
dev
.
Test and Validate
- Run tests throughout the development process:
npm test
- Run tests throughout the development process:
Access the Package via NPM
To use components from this library in your project:
- Install the Package
Add the component library as a dependency:npm install @nxtvid/component-library