You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cypress-rollup-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

cypress-rollup-preprocessor

Cypress preprocessor for bundling JavaScript via rollup

0.7.0
unpublished
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cypress-rollup-preprocessor

Build Maintainability Test Coverage

semantic-release

Cypress preprocessor for bundling JavaScript via rollup

Installation

NPM

First install node.js. Then:

npm install cypress-rollup-preprocessor --save-dev

This package relies on the following peer dependencies:

  • rollup

It is likely you already have these installed either directly or as a transient dependency, but if not, you will need to install them.

npm install --save-dev rollup

Compatibility

This version is only compatible with rollup 2.x+

Usage

In your project's plugins file:

const rollupPreprocessor = require("cypress-rollup-preprocessor");

module.exports = (on) => {
  on("file:preprocessor", rollupPreprocessor());
};

Examples

Options

Pass in options as the argument to rollup:

const rollupPreprocessor = require("cypress-rollup-preprocessor");

// Using the options from rollup.config.js
const rollupConfig = require("../../rollup.config");

module.exports = (on) => {
  const options = {
    inputOptions: rollupConfig,
    outputOptions: rollupConfig.output,
  };

  on("file:preprocessor", rollupPreprocessor(options));
};

inputOptions

Object of rollup input options. You can just require in the options from your rollup.config.js to use the same options as your app. Reference: https://rollupjs.org/guide/en/#inputoptions-object

outputOptions

Object of rollup output options. Reference: https://rollupjs.org/guide/en/#outputoptions-object

Contributing

Please read the Contributing guidelines.

Running Tests

To run tests, first install nodeunit and any dependencies via npm:

npm ci

Run tests with:

npm test

Inspiration

Many approaches, patterns and standards were copied from:

Alternatives

License

This project is licensed under the terms of the MIT license.

Keywords

cypress

FAQs

Package last updated on 08 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts