curb-virtualized-chat
v0.0.21
Published
A virtualized chat component for React applications.
Maintainers
Readme
Curb Virtualized Chat
A virtualized chat component for React applications with real-time messaging capabilities.
Installation
Install the package using pnpm:
pnpm add curb-virtualized-chatOr using npm:
npm install curb-virtualized-chatOr using yarn:
yarn add curb-virtualized-chatUsage
import { VirtualizedChat } from 'curb-virtualized-chat';
function App() {
return (
<VirtualizedChat
messages={messages}
onSendMessage={handleSendMessage}
// ... other props
/>
);
}Development
Prerequisites
- Node.js (>=16.0.0)
- pnpm (>=7.0.0)
Setup
- Clone the repository
- Install dependencies:
pnpm installBuild
To build the package:
pnpm buildThis will:
- Compile TypeScript files (
pnpm compile) - Bundle the package (
node bundle.mjs)
Development Mode
To run in watch mode for development:
pnpm devTesting
Run tests:
pnpm testLinting
Check for linting issues:
pnpm lintFix linting issues:
pnpm lint:fixFormatting
Format code:
pnpm formatDeployment
Publishing to npm
Update version in
package.json:# For patch version (0.0.7 -> 0.0.8) pnpm version patch # For minor version (0.0.7 -> 0.1.0) pnpm version minor # For major version (0.0.7 -> 1.0.0) pnpm version majorBuild the package:
pnpm buildPublish to npm:
pnpm publishThe
prepublishOnlyscript will automatically run the build process before publishing.
Pre-release versions
For beta or alpha releases:
# Create a beta version
pnpm version prerelease --preid=beta
# Publish beta version
pnpm publish --tag betaDry run
To test the publishing process without actually publishing:
pnpm publish --dry-runPackage Information
- Current version: 0.0.7
- License: MIT
- Author: fdomovic
- Main file:
dist/index.js - Type definitions:
dist/index.d.ts
Peer Dependencies
- React >=17.0.0
- React DOM >=17.0.0
Keywords
react, chat, virtualized, component, messaging, real-time, ui
