Skip to content

This is an opinionated starter kit to start making an Library

Notifications You must be signed in to change notification settings

wotermelon/rollup-ts-lib-starter

Repository files navigation

Rollup TS Lib Starter

This is an opinionated starter kit to start making an Library

Install

# or npm install
yarn 

Usage

To build with watch mode

yarn dev

To build the project

# test
yarn build:dev

# prod
yarn build:prod

Config

./config.js

  • libName - Default is package.json name

    Library name export when resolve is true. window[libName]

  • resolve - Default is true

    Whether to put the node_modules packages into the library

    if false, Looks like this:

    'use strict';
    var _asyncToGenerator = require('@babel/runtime-corejs2/helpers/esm/asyncToGenerator');
    var _regeneratorRuntime = require('@babel/runtime-corejs2/regenerator');
    var _Object$entries = require('@babel/runtime-corejs2/core-js/object/entries');
  • banner

    Library banner annotation.

feature

About

This is an opinionated starter kit to start making an Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published