mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
51677f0819
* refactor: remove stylelint * refactor: move shellcheck to separate job * refactor: add helm script and job * refactor: add eslint job and yarn script * fix(test/tsconfig): exclude test-plugin * refactor: delete lint, add typecheck job * refactor: remove prebuild * wip: add notes about unit test refactor * refactor: delete buggy socket test This test was really added to in get cover specific lines but it's buggy and only passes sometimes locally. I think it's okay to remove because: - it's an implementation detail (not user facing) - not preventing any specific regressions * refactor: move test-plugin to integration suite This seems more appropriate given this tests how a plugin might work within code-server. * wip * wip: refactor vscode integration tests * refactor: move unit tests to separate job * fix: formatting * Revert "wip: refactor vscode integration tests" This reverts commit 13286bf4c9762b7d6c6176464d94b1fc316fb568. * Revert "refactor: move unit tests to separate job" This reverts commit 6c87b540b49c8d56266c8925c4fd32ed760b23bf. * feat: collect codecov integration tests * fixup! feat: collect codecov integration tests * fixup! feat: collect codecov integration tests * fixup!: move helm step * fixup!: update ids for caching * trigger ci * trigger ci * chore: clean up names in security.yaml * fixup!: remove .tsx * fixup!: change to src/**" * fixup!: move helm cmd to yaml * fixup!: always build test plugin * fixup!: fix plugin typings * fixup! add back flakey test * fixup!: only install helm deps if changes * fixup!: revert node mod caching * dont keep, test for asher * fixup!: add make to centos * refactor: add test:native This adds a new script to run native tests (i.e. --help which should run in ci on all platforms). * try updating glibc * try 2.25 * Revert "refactor: move test-plugin to integration suite" This reverts commit bc02005dc097a10b5216b616ff0bd7a911240748. I couldn't get past some GLIBC errors in CI so moving back to unit tests. * Revert "try updating glibc" This reverts commit 02ed560f223a8505cb5e6e2014055cb256a407b0. * fixup! * asher: again * try this for ts changes * fixup * refactor: scripts.yml -> scripts.yaml * fixup!: move lint-sh to scripts.yaml * fixup!: use apk for lint scripts * fixup! fixup!: use apk for lint scripts * fixup!: remove typecheck step * fix: pattern for lint ts files * test: lint should fail * fixup! fixup!: use apk for lint scripts * Revert "test: lint should fail" This reverts commit 158c64db044c24f2f8ffd082cc769f06876d6957. * fixup!: skip cancel workflow on forks Looks like the cancel action workflow can't run on forks due to secrets. See https://github.com/andymckay/cancel-action/issues/4 * fixup: remove cancel-workflow * fixup! fixup! fixup!: use apk for lint scripts * fixup! fixup! fixup!: use apk for lint scripts * fixup!: fix yarn key * fixup!: add fetch-depth 0
167 lines
4.9 KiB
JSON
167 lines
4.9 KiB
JSON
{
|
|
"name": "code-server",
|
|
"license": "MIT",
|
|
"version": "4.7.0",
|
|
"description": "Run VS Code on a remote server.",
|
|
"homepage": "https://github.com/coder/code-server",
|
|
"bugs": {
|
|
"url": "https://github.com/coder/code-server/issues"
|
|
},
|
|
"repository": "https://github.com/coder/code-server",
|
|
"scripts": {
|
|
"clean": "./ci/build/clean.sh",
|
|
"build": "./ci/build/build-code-server.sh",
|
|
"build:vscode": "./ci/build/build-vscode.sh",
|
|
"release": "./ci/build/build-release.sh",
|
|
"release:standalone": "./ci/build/build-standalone-release.sh",
|
|
"release:prep": "./ci/build/release-prep.sh",
|
|
"test:e2e": "VSCODE_IPC_HOOK_CLI= ./ci/dev/test-e2e.sh",
|
|
"test:e2e:proxy": "USE_PROXY=1 ./ci/dev/test-e2e.sh",
|
|
"test:unit": "./ci/dev/test-unit.sh --forceExit --detectOpenHandles",
|
|
"test:integration": "./ci/dev/test-integration.sh",
|
|
"test:native": "./ci/dev/test-native.sh",
|
|
"test:scripts": "./ci/dev/test-scripts.sh",
|
|
"package": "./ci/build/build-packages.sh",
|
|
"postinstall": "./ci/dev/postinstall.sh",
|
|
"publish:npm": "./ci/steps/publish-npm.sh",
|
|
"publish:docker": "./ci/steps/docker-buildx-push.sh",
|
|
"_audit": "./ci/dev/audit.sh",
|
|
"fmt": "./ci/dev/fmt.sh",
|
|
"lint:scripts": "./ci/dev/lint-scripts.sh",
|
|
"lint:ts": "eslint --max-warnings=0 --fix $(git ls-files '*.ts' '*.js' | grep -v 'lib/vscode')",
|
|
"test": "echo 'Run yarn test:unit or yarn test:e2e' && exit 1",
|
|
"ci": "./ci/dev/ci.sh",
|
|
"watch": "VSCODE_DEV=1 VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node ./ci/dev/watch.ts",
|
|
"icons": "./ci/dev/gen_icons.sh"
|
|
},
|
|
"main": "out/node/entry.js",
|
|
"devDependencies": {
|
|
"@schemastore/package": "^0.0.6",
|
|
"@types/compression": "^1.7.0",
|
|
"@types/cookie-parser": "^1.4.2",
|
|
"@types/express": "^4.17.8",
|
|
"@types/http-proxy": "^1.17.4",
|
|
"@types/js-yaml": "^4.0.0",
|
|
"@types/node": "^16.0.0",
|
|
"@types/pem": "^1.9.5",
|
|
"@types/proxy-from-env": "^1.0.1",
|
|
"@types/safe-compare": "^1.1.0",
|
|
"@types/semver": "^7.1.0",
|
|
"@types/split2": "^3.2.0",
|
|
"@types/trusted-types": "^2.0.2",
|
|
"@types/ws": "^8.5.3",
|
|
"@typescript-eslint/eslint-plugin": "^5.23.0",
|
|
"@typescript-eslint/parser": "^5.23.0",
|
|
"audit-ci": "^6.0.0",
|
|
"doctoc": "^2.0.0",
|
|
"eslint": "^7.7.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"prettier": "^2.2.1",
|
|
"prettier-plugin-sh": "^0.12.0",
|
|
"ts-node": "^10.0.0",
|
|
"typescript": "^4.6.2"
|
|
},
|
|
"resolutions": {
|
|
"ansi-regex": "^5.0.1",
|
|
"normalize-package-data": "^4.0.0",
|
|
"doctoc/underscore": "^1.13.1",
|
|
"doctoc/**/trim": "^1.0.0",
|
|
"postcss": "^8.2.1",
|
|
"browserslist": "^4.16.5",
|
|
"safe-buffer": "^5.1.1",
|
|
"vfile-message": "^2.0.2",
|
|
"tar": "^6.1.9",
|
|
"path-parse": "^1.0.7",
|
|
"vm2": "^3.9.6",
|
|
"follow-redirects": "^1.14.8",
|
|
"node-fetch": "^2.6.7",
|
|
"nanoid": "^3.1.31",
|
|
"minimist": "npm:minimist-lite@2.2.1",
|
|
"glob-parent": "^6.0.1",
|
|
"@types/node": "^16.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@coder/logger": "^3.0.0",
|
|
"argon2": "^0.29.0",
|
|
"compression": "^1.7.4",
|
|
"cookie-parser": "^1.4.5",
|
|
"env-paths": "^2.2.0",
|
|
"express": "5.0.0-alpha.8",
|
|
"http-proxy": "^1.18.0",
|
|
"httpolyglot": "^0.1.2",
|
|
"js-yaml": "^4.0.0",
|
|
"limiter": "^1.1.5",
|
|
"pem": "^1.14.2",
|
|
"proxy-agent": "^5.0.0",
|
|
"qs": "6.11.0",
|
|
"rotating-file-stream": "^3.0.0",
|
|
"safe-buffer": "^5.1.1",
|
|
"safe-compare": "^1.1.4",
|
|
"semver": "^7.1.3",
|
|
"split2": "^4.0.0",
|
|
"ws": "^8.0.0",
|
|
"xdg-basedir": "^4.0.0"
|
|
},
|
|
"bin": {
|
|
"code-server": "out/node/entry.js"
|
|
},
|
|
"keywords": [
|
|
"vscode",
|
|
"development",
|
|
"ide",
|
|
"coder",
|
|
"vscode-remote",
|
|
"browser-ide"
|
|
],
|
|
"engines": {
|
|
"node": "16"
|
|
},
|
|
"jest": {
|
|
"transform": {
|
|
"^.+\\.ts$": "<rootDir>/test/node_modules/ts-jest"
|
|
},
|
|
"testEnvironment": "node",
|
|
"testPathIgnorePatterns": [
|
|
"/node_modules/",
|
|
"/lib/",
|
|
"/out/",
|
|
"test/e2e"
|
|
],
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"<rootDir>/src/**/*.ts"
|
|
],
|
|
"coverageDirectory": "<rootDir>/coverage",
|
|
"coverageReporters": [
|
|
"json",
|
|
"json-summary",
|
|
"text",
|
|
"clover"
|
|
],
|
|
"coveragePathIgnorePatterns": [
|
|
"/out"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"lines": 60
|
|
}
|
|
},
|
|
"modulePathIgnorePatterns": [
|
|
"<rootDir>/release-packages",
|
|
"<rootDir>/release",
|
|
"<rootDir>/release-standalone",
|
|
"<rootDir>/release-npm-package",
|
|
"<rootDir>/release-gcp",
|
|
"<rootDir>/release-images",
|
|
"<rootDir>/lib"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^.+\\.(css|less)$": "<rootDir>/test/utils/cssStub.ts"
|
|
},
|
|
"globalSetup": "<rootDir>/test/utils/globalUnitSetup.ts"
|
|
}
|
|
}
|