1.3.2 • Published 4 years ago

@revam/rollup-plugin-common v1.3.2

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

@revam/rollup-plugin-common

Revam's common tasks for rollup in a single plugin.

Description

This package is a collection of the most common tasks I use with rollup.js, modified or created by me for my personal use, and now shared on npm. Tasks included are listed below.

Tasks:

  • Generate a package.json in each output directory. Can be a combination of generated content, picked content (from project's package.json), and generated dependency lists. Supports customised ordering of fields.

  • Copy files to each output directory. Supports copying of both files and folders.

  • Create/generate files in each output directory.

  • Append an auto-generated banner in each chunk emitted by rollup.

  • Replace text with regular expressions.

Acknowledgements

This work is based on existing plugins, listed below. If you use this plugin, then please show your support for their work that made it possible for me to create this by staring them on github or simular:

Usage

See this projects rollup.config.ts for a usage example.

Typescript

This module includes a TypeScript declaration file to enable auto complete in compatible editors and type information for TypeScript projects.

Changelog and versioning

All notable changes to this project will be documented in changelog.md.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

License

This project is licensed under the ISC license. See license.txt for the full terms.