Development

Want to contribute or run the project locally? Here's how to get started.

Setup

# Clone the repository
git clone https://github.com/mohsentaleb/react-tailwindcss-datetimepicker.git
cd react-tailwindcss-datetimepicker

# Install dependencies
npm install

# Start the development server
npm run dev
# Opens at http://localhost:3000

Available Commands

# Build the library (ES, UMD, CJS formats)
npm run build

# Generate TypeScript declaration files only
npm run build:types

# Run ESLint (zero warnings policy)
npm run lint

# Run tests
npm test

# Preview the production build
npm run preview

Project Structure

  • src/lib/ — Published library code
  • src/demo/ — This documentation site (dev only)
  • dist/ — Build output (ES, UMD, CJS + CSS)