bahmutov / rolling-task

Bundles JS using Rollup using Cypress task command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rolling-task

Bundles JS using Rollup using Cypress task command

Cypress 3.x has a new powerful command cy.task that runs in Node, so it has full access to the platform. This demo shows how we can bundle arbitrary JavaScript (Hyperapp with JSX, CSS-in-JS with Picostyle) using Rollup using cy.task and then test it.

See cypress/integration/spec.js and the test application code in cypress/integration/text-app.js. The bundling code is in cypress/plugins/index.js

About

Bundles JS using Rollup using Cypress task command


Languages

Language:JavaScript 100.0%