@cypress/vite-dev-server
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,8 @@ | ||
# [@cypress/vite-dev-server-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.0.1...@cypress/vite-dev-server-v1.0.2) (2021-03-10) | ||
### Bug Fixes | ||
* trigger release of the packages ([#15405](https://github.com/cypress-io/cypress/issues/15405)) ([1ce5755](https://github.com/cypress-io/cypress/commit/1ce57554e260850472cf753de68858f47b3f7b3d)) | ||
# [@cypress/vite-dev-server-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.0.0...@cypress/vite-dev-server-v1.0.1) (2021-02-17) | ||
@@ -2,0 +9,0 @@ |
@@ -23,3 +23,2 @@ "use strict"; | ||
handleHotUpdate: () => { | ||
console.log('HOT UPDATE'); | ||
devServerEvents.emit('dev-server:compile:success'); | ||
@@ -26,0 +25,0 @@ return []; |
{ | ||
"name": "@cypress/vite-dev-server", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Launches Vite Dev Server for Component Testing", | ||
@@ -9,4 +9,4 @@ "main": "index.js", | ||
"build-prod": "tsc", | ||
"cy:open": "node ../../scripts/start.js --component-testing --project ${PWD}", | ||
"cy:run": "node ../../scripts/cypress.js open-ct --run-project ${PWD}", | ||
"cy:open": "node ../../scripts/cypress.js open-ct --project ${PWD}", | ||
"cy:run": "node ../../scripts/cypress.js run-ct --project ${PWD}", | ||
"test": "yarn cy:run", | ||
@@ -21,3 +21,3 @@ "watch": "tsc -w" | ||
"@types/mustache": "4.1.1", | ||
"vite": "2.0.0-beta.59" | ||
"vite": "2.0.5" | ||
}, | ||
@@ -28,3 +28,4 @@ "peerDependencies": { | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"index-template.html" | ||
], | ||
@@ -40,3 +41,6 @@ "license": "MIT", | ||
"access": "public" | ||
} | ||
}, | ||
"ciJobs": [ | ||
"npm-vite-dev-server" | ||
] | ||
} |
# ⚡️ + 🌲 Cypress Component Testing w/ Vite | ||
> **Note** this package is not meant to be used outside of cypress component testing. | ||
To install vite in you component testing environment, | ||
1. Install it `yarn add @cypress/vite-dev-server` | ||
2. Add it to `cypress/plugins/index.js` | ||
```js | ||
import { startDevServer } from '@cypress/vite-dev-server' | ||
module.exports = (on, config) => { | ||
on('dev-server:start', async (options) => startDevServer({ options })) | ||
return config | ||
} | ||
``` |
12003
13
16
160