chore: remove unused @packages/static (#17961)

This commit is contained in:
Tim Griesser
2021-09-01 12:29:07 -04:00
committed by GitHub
parent c65d9f7d9c
commit 339b642490
6 changed files with 0 additions and 42 deletions

View File

@@ -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.

View File

@@ -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",

View File

@@ -1,7 +0,0 @@
const gulp = require('gulp')
const icons = require('@cypress/icons')
exports.build = () => {
return gulp.src(icons.getPathToFavicon('**/**'))
.pipe(gulp.dest('./dist'))
}

View File

@@ -1 +0,0 @@
module.exports = require('./lib/static')

View File

@@ -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)
}
},
}

View File

@@ -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"
]
}