Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Latest commit

 

History

History
58 lines (46 loc) · 1.54 KB

File metadata and controls

58 lines (46 loc) · 1.54 KB

taskr-rollup

Rollup plugin for Taskr

NPM License Build Status Coverage Status [![Dependency Status][david-dm-shield]][david-dm]

Install

This plugin requires Taskr and Rollup.

$ yarn add -D taskr rollup taskr-rollup

or

$ npm install taskr rollup taskr-rollup

Usage

exports.bundle = function*(task) {
  yield task
    // bundle entry file
    .source("src/entry.js")
    .rollup({
      // configuration options, https://rollupjs.org/#configuration-files
      plugins: [require("rollup-plugin-babel")()],
      output: {
        file: "bundle.js",
        format: "es"
      }
    })
    .target("dist");
};

Configuration

All Rollup options are supported, with the exception of input.