Skip to content

caseyWebb/taskr-rollup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.