https://github.com/phucbm/typescript-webpack-boilerplate
https://github.com/phucbm/typescript-webpack-boilerplate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phucbm/typescript-webpack-boilerplate
- Owner: phucbm
- License: mit
- Created: 2024-04-07T03:54:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T11:26:17.000Z (about 2 years ago)
- Last Synced: 2026-03-27T04:46:52.869Z (4 months ago)
- Language: JavaScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript x Webpack (Library Boilerplate)
A starter pack to develop your JS library with:
- ⚙️ TypeScript
- ⚙️ Webpack with HRM ready
- ⚙️ SCSS
- ⚙️ Separated dev and public server
Output formats:
- ✅ UMD file with minified and unminified versions.
- ✅ Module file for publishing to `npm`.
> CSS file will not be included in the production build.
## Todos
1. Update `package.json` with your library names.
2. Library script start with `/src/_index.ts`, **do not rename this file**.
3. Create your dev site in folder `/dev`.
## Deployment
```shell the packages
# Install
npm i
# Run dev server
npm run dev
# Generate UMD and module version
npm run prod
# Build production site (e.g. for Netlify host)
npm run build
```
---
Libraries that used this boilerplate:
- [Easy Tab & Accordion (ETA)](https://github.com/viivue/easy-tab-accordion)
- [Easy Popup](https://github.com/viivue/easy-popup)
- [Easy Select](https://github.com/viivue/easy-select)