Rolltsup Sample A Simple Template for TypeScript Libraries with Rollup.js
Rolltsup Sample provides an easy-to-use template for TypeScript developers aiming to create a library project with Rollup.js. This repository is designed to assist those who want a straightforward approach to building an npm package ready for deployment. The package structure includes two versions: one for developers who need a script to inject into HTML with the [removed] tag and another for those who require typings for TypeScript.
Project Structure
- js
my_library.min.js- es
- ES modules with typings for TypeScript
- package.json
- LICENSE
How to Use
Clone this repository:
git clone https://github.com/julianpoemp/rolltsup-sample.git
This repository helps TypeScript developers build and distribute efficient libraries with Rollup.js.
rolltsup-sample-main.zip
预估大小:10个文件
rolltsup-sample-main
文件夹
.gitignore
14KB
package.json
820B
rollup.globals.js
271B
package-lock.json
22KB
src
文件夹
obj
文件夹
FooClass.ts
214B
index.ts
32B
LICENSE
1KB
文件大小:16.44KB
评论区