mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-27 11:29:27 -06:00
chore: remove unused @packages/static (#17961)
This commit is contained in:
@@ -290,7 +290,6 @@ Here is a list of the core packages in this repository with a short description,
|
||||
| [server](./packages/server) | `@packages/server` | The <3 of Cypress. This orchestrates everything. The backend node process. |
|
||||
| [server-ct](./packages/server-ct) | `@packages/server-ct` | Some Component Testing specific overrides. Mostly extends functionality from `@packages/server` |
|
||||
| [socket](./packages/socket) | `@packages/socket` | A wrapper around socket.io to provide common libraries. |
|
||||
| [static](./packages/static) | `@packages/static` | Serves static assets used in the Cypress GUI. |
|
||||
| [ts](./packages/ts) | `@packages/ts` | A centralized version of typescript. |
|
||||
|
||||
Public packages live within the [`npm`](./npm) folder and are standalone modules that get independently published to npm under the `@cypress/` namespace. These packages generally contain extensions, plugins, or other packages that are complementary to, yet independent of, the main Cypress app.
|
||||
|
||||
@@ -142,7 +142,6 @@
|
||||
"@packages/resolve-dist": "0.0.0-development",
|
||||
"@packages/root": "0.0.0-development",
|
||||
"@packages/socket": "0.0.0-development",
|
||||
"@packages/static": "0.0.0-development",
|
||||
"@packages/ts": "0.0.0-development",
|
||||
"@types/chai-as-promised": "7.1.2",
|
||||
"@types/chrome": "0.0.101",
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
const gulp = require('gulp')
|
||||
const icons = require('@cypress/icons')
|
||||
|
||||
exports.build = () => {
|
||||
return gulp.src(icons.getPathToFavicon('**/**'))
|
||||
.pipe(gulp.dest('./dist'))
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = require('./lib/static')
|
||||
@@ -1,12 +0,0 @@
|
||||
const { getPathToDist } = require('@packages/resolve-dist')
|
||||
|
||||
module.exports = {
|
||||
handle (send) {
|
||||
return (req, res) => {
|
||||
const pathToFile = getPathToDist('static', req.params[0])
|
||||
|
||||
return send(req, pathToFile)
|
||||
.pipe(res)
|
||||
}
|
||||
},
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
{
|
||||
"name": "@packages/static",
|
||||
"version": "0.0.0-development",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "gulp build",
|
||||
"build-prod": "yarn build",
|
||||
"clean-deps": "rm -rf node_modules",
|
||||
"postinstall": "echo '@packages/static needs: yarn build'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/icons": "0.7.0",
|
||||
"gulp": "4.0.2"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"lib"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user