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.

zip
rolltsup-sample-main.zip 预估大小:10个文件
folder
rolltsup-sample-main 文件夹
file
.gitignore 14KB
file
package.json 820B
file
rollup.globals.js 271B
file
package-lock.json 22KB
folder
src 文件夹
folder
obj 文件夹
file
FooClass.ts 214B
file
index.ts 32B
file
LICENSE 1KB
file
rollup.config.js 735B
file
README.md 2KB
file
rollup.config_es.js 740B
zip 文件大小:16.44KB