timepicker-ui

Timepicker UI — Build System

This directory contains the build configuration for the timepicker-ui library. It supports multiple build tools including Webpack, Rollup, and Tsup, covering development and production workflows.


📦 Installation

npm install

🧪 Scripts

Script Description
npm run dev Start Webpack development server for demo/docs
npm run build:prod Full production build using Tsup + Rollup
npm run build:tsup Compile JS (ESM + CJS) and type declarations via Tsup
npm run build:rollup Compile SCSS to CSS (themes & base styles)
npm run build:webpack Build demo/docs with Webpack
npm run build:vercel Build demo for Vercel deployment (custom Webpack)
npm test Run unit tests using Jest
npm run lint Lint and format staged files
npm run eslint Lint all TypeScript source files
npm run format Format codebase using Prettier (via lint-staged)

🧱 Build Output

Compiled output is placed in ../dist/ and includes:


🎨 Output Themes

SCSS themes compiled to CSS in ../dist/css/themes/:


🔧 Tools Used


📁 Build Structure

/build
├── webpack.config.js       # Webpack config (demo/docs)
├── rollup.config.js        # SCSS and UMD bundling
├── tsup.config.ts          # TS → JS + types
└── package.json            # Scripts and dependencies

👤 Author

Created by @pglejzer


📄 License

MIT