Registry / devops / taskr-rollup

taskr-rollup

JSON →
library1.0.0jsnpmunverified

Rollup plugin for Taskr (v1.0.0, last released in 2019). Enables Rollup bundling inside Taskr task pipelines. Requires Taskr ^1.1.0 and Rollup 1.x. Aims to provide a simple API for Rollup integration within Taskr's generator-based flow. No active development; last commit years ago. Alternatives include using Rollup standalone or with other build tools.

npm install taskr-rollup
INSTALL
IMPORT
SIG · TASKR-ROLLUP
T
taskr-rollup
devopsjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

taskr-rollup
plugins: [require('taskr-rollup')()]
const rollup = require('taskr-rollup')
Used as a Taskr plugin, not directly imported in scripts.
rollup
const rollup = require('rollup');
import rollup from 'rollup'; // ESM not supported in taskr-rollup context
Rollup is used via .rollup() method, not directly imported in task files.
taskr
const taskr = require('taskr');
import taskr from 'taskr'; // CJS only
Taskr itself uses CJS; generator functions required.

Basic Taskr task that bundles src/main.js with Rollup and outputs to dist/bundle.js.

// Taskfile.js exports.default = function* (task) { yield task .source('src/main.js') .rollup({ output: { file: 'dist/bundle.js', format: 'cjs' }, plugins: [] }) .target('dist'); };
Debug
Known issues
deprecatedRollup 1.x only; incompatible with Rollup >=2.x
fix
Use Rollup 1.x or migrate to another Rollup integration (e.g., directly use rollup or gulp-rollup).
affects: >=2.0.0
gotchaGenerator function required; task must be a generator
fix
Use function* (yield) instead of async/await.
affects: *
gotchaOptions 'input' is not supported; use .source() instead
fix
Do not pass 'input' in .rollup() options; use .source() to set entry.
affects: *
breakingPeer dependency taskr must be ^1.1.0; older versions incompatible
fix
Upgrade taskr to >=1.1.0 and <2.0.0.
affects: <1.1.0
breakingPeer dependency rollup must be 1.x; version 0.x incompatible
fix
Use Rollup 1.x (e.g., `npm install rollup@1.0.0`).
affects: <1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup'
Rollup peer dependency not installed or incorrect version
fix
Install rollup@1.x as a dev dependency: npm install rollup@1.0.0
TypeError: task.source(...).rollup is not a function
Taskr version <1.1.0 or plugin not loaded correctly
fix
Ensure taskr >=1.1.0 and require('taskr-rollup') is called as a function in the plugins list.
RollupError: You must specify an 'output' option
Missing 'output' in .rollup() options
fix
Add output object: .rollup({ output: { file: 'bundle.js', format: 'cjs' } })
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
taskrrequiredPeer dependency: Taskr runtime required to run tasks
rolluprequiredPeer dependency: Rollup bundler required for rollup plugin
Agent activity
4 hits · last 30 days
node
4
Resources