https://github.com/caseywebb/taskr-rollup
:scroll: Rollup plugin for Taskr
https://github.com/caseywebb/taskr-rollup
rollup taskr taskr-plugin
Last synced: 16 days ago
JSON representation
:scroll: Rollup plugin for Taskr
- Host: GitHub
- URL: https://github.com/caseywebb/taskr-rollup
- Owner: caseyWebb
- License: wtfpl
- Created: 2017-10-25T02:47:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T11:57:40.000Z (about 2 years ago)
- Last Synced: 2024-04-25T13:40:56.554Z (about 1 year ago)
- Topics: rollup, taskr, taskr-plugin
- Language: TypeScript
- Size: 1.11 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# taskr-rollup
> [Rollup][] plugin for [Taskr][]
[![NPM][npm-shield]][npm]
[![License][license-shield]][license]
[![Build Status][build-status-shield]][build-status]
[![Coverage Status][codecov-shield]][codecov]
[![Dependency Status][david-dm-shield]][david-dm]## Install
This plugin requires [Taskr][] and [Rollup][].
```bash
$ yarn add -D taskr rollup taskr-rollup
```_or_
```bash
$ npm install taskr rollup taskr-rollup
```## Usage
```js
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][rollup-options] are supported, with the exception of `input`.
[taskr]: https://github.com/lukeed/taskr
[rollup]: https://github.com/rollup/rollup
[rollup-options]: https://rollupjs.org/#configuration-files
[npm]: https://npmjs.com/package/taskr-rollup
[npm-shield]: https://img.shields.io/npm/v/taskr-rollup.svg
[license]: ./LICENSE
[license-shield]: https://img.shields.io/npm/l/taskr-rollup.svg
[build-status]: https://github.com/caseyWebb/taskr-rollup/actions/workflows/nodejs.yml
[build-status-shield]: https://img.shields.io/github/workflow/status/caseyWebb/taskr-rollup/Node%20CI/master
[codecov]: https://codecov.io/gh/caseyWebb/taskr-rollup
[codecov-shield]: https://img.shields.io/codecov/c/github/caseyWebb/taskr-rollup.svg