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.
npm install
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) |
Compiled output is placed in ../dist/
and includes:
terser
minification)*.d.ts
)SCSS themes compiled to CSS in ../dist/css/themes/
:
theme-dark.css
theme-pastel.css
theme-glassmorphic.css
theme-cyberpunk.css
theme-crane.css
theme-m3.css
theme-ai.css
/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
Created by @pglejzer