@nxtvid/component-library
v0.7.26
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
18
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.
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
.jsxfile and its corresponding.cssfile. - 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.jsfor 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
devfor your component or update:git checkout dev git pull origin dev git checkout -b component/<component-name>- Use
component/<component-name>for new components. - Use
update/<component-name>for updates to existing components.
- Use
- 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:
Merging
devintomain- Once
devis stable, create a pull request to mergedevintomain. - Ensure tests pass and the code is reviewed before merging.
- Once
Repository Access and Contribution
- Repository: NXTVid-Inc/component-library
- Developers must not push directly to
mainordev. All changes must go through feature branches and pull requests. - Only approved PRs will be merged into
dev, and stable releases will be merged intomain.
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
