mirror of
https://github.com/lensapp/lens.git
synced 2024-11-28 11:53:41 +03:00
8ac66380ad
- Add unit tests to cover custom resources sidebar items Signed-off-by: Sebastian Malton <sebastian@malton.name>
269 lines
8.5 KiB
JSON
269 lines
8.5 KiB
JSON
{
|
|
"name": "open-lens",
|
|
"private": true,
|
|
"productName": "OpenLens",
|
|
"description": "OpenLens - Open Source IDE for Kubernetes",
|
|
"homepage": "https://github.com/lensapp/lens",
|
|
"version": "6.5.0-alpha.13",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/lensapp/lens.git"
|
|
},
|
|
"keywords": [],
|
|
"bugs": {
|
|
"url": "https://github.com/lensapp/lens/issues"
|
|
},
|
|
"main": "static/build/main.js",
|
|
"copyright": "© 2023 OpenLens Authors",
|
|
"license": "MIT",
|
|
"author": "OpenLens Authors <info@k8slens.dev>",
|
|
"scripts": {
|
|
"clean": "rimraf binaries/ dist/ static/build",
|
|
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress",
|
|
"postbuild": "npm run build:tray-icons && npm run download:binaries",
|
|
"build:app": "electron-builder --publish onTag",
|
|
"prebuild:app": "run-script-os",
|
|
"prebuild:app:default": "exit 0",
|
|
"prebuild:app:win32": "rimraf node_modules/win-ca/pem",
|
|
"start": "concurrently -i -k \"npm run dev-run -C\" npm:dev:*",
|
|
"dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"",
|
|
"dev:main": "cross-env NODE_ENV=development webpack --config webpack/main.ts --progress --watch",
|
|
"dev:renderer": "cross-env NODE_ENV=development ts-node ./webpack/dev-server.ts",
|
|
"test:integration": "jest -xyz --runInBand --modulePaths=[\"<rootDir>/integration/\"];",
|
|
"build:tray-icons": "npm run --workspace @k8slens/generate-tray-icons generate -- --output static/build/tray --input @k8slens/core/icons/logo-lens.svg --notice-icon @k8slens/core/icons/notice.svg --spinner-icon @k8slens/core/icons/arrow-spinner.svg",
|
|
"download:binaries": "npm run --workspace @k8slens/ensure-binaries ensure -- --package package.json --base-dir binaries/client",
|
|
"postinstall": "electron-rebuild"
|
|
},
|
|
"config": {
|
|
"k8sProxyVersion": "0.3.0",
|
|
"bundledKubectlVersion": "1.23.3",
|
|
"bundledHelmVersion": "3.11.0",
|
|
"sentryDsn": "",
|
|
"contentSecurityPolicy": "script-src 'unsafe-eval' 'self'; frame-src https://*.lens.app:*/; img-src * data:",
|
|
"welcomeRoute": "/welcome"
|
|
},
|
|
"engines": {
|
|
"node": ">=16 <17"
|
|
},
|
|
"jest": {
|
|
"collectCoverage": false,
|
|
"verbose": true,
|
|
"transform": {
|
|
"^.+\\.(t|j)sx?$": [
|
|
"@swc/jest"
|
|
]
|
|
}
|
|
},
|
|
"nx": {
|
|
"targets": {
|
|
"build": {
|
|
"dependsOn": [
|
|
"^build"
|
|
],
|
|
"outputs": [
|
|
"{workspaceRoot}/binaries/",
|
|
"{workspaceRoot}/build/webpack/",
|
|
"{workspaceRoot}/static/build/"
|
|
]
|
|
},
|
|
"build:app": {
|
|
"dependsOn": [
|
|
"build"
|
|
],
|
|
"outputs": [
|
|
"{workspaceRoot}/dist/"
|
|
]
|
|
},
|
|
"test:integration": {
|
|
"dependsOn": [
|
|
"build:app"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"build": {
|
|
"npmRebuild": false,
|
|
"electronVersion": "22.3.3",
|
|
"generateUpdatesFilesForAllChannels": true,
|
|
"files": [
|
|
"static/**/*",
|
|
"!node_modules/@k8slens/core/node_modules/**/*",
|
|
"!node_modules/@k8slens/core/src"
|
|
],
|
|
"afterSign": "build/notarize.js",
|
|
"extraResources": [
|
|
"LICENSE"
|
|
],
|
|
"linux": {
|
|
"category": "Network",
|
|
"artifactName": "${productName}-${version}.${arch}.${ext}",
|
|
"target": [
|
|
"deb",
|
|
"rpm",
|
|
"AppImage"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "binaries/client/linux/${arch}/kubectl",
|
|
"to": "./${arch}/kubectl"
|
|
},
|
|
{
|
|
"from": "binaries/client/linux/${arch}/lens-k8s-proxy",
|
|
"to": "./${arch}/lens-k8s-proxy"
|
|
},
|
|
{
|
|
"from": "binaries/client/linux/${arch}/helm",
|
|
"to": "./${arch}/helm"
|
|
}
|
|
]
|
|
},
|
|
"rpm": {
|
|
"fpm": [
|
|
"--rpm-rpmbuild-define=%define _build_id_links none"
|
|
]
|
|
},
|
|
"mac": {
|
|
"hardenedRuntime": true,
|
|
"gatekeeperAssess": false,
|
|
"entitlements": "build/entitlements.mac.plist",
|
|
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
"extraResources": [
|
|
{
|
|
"from": "binaries/client/darwin/${arch}/kubectl",
|
|
"to": "./${arch}/kubectl"
|
|
},
|
|
{
|
|
"from": "binaries/client/darwin/${arch}/lens-k8s-proxy",
|
|
"to": "./${arch}/lens-k8s-proxy"
|
|
},
|
|
{
|
|
"from": "binaries/client/darwin/${arch}/helm",
|
|
"to": "./${arch}/helm"
|
|
}
|
|
]
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis"
|
|
],
|
|
"extraResources": [
|
|
{
|
|
"from": "binaries/client/windows/${arch}/kubectl.exe",
|
|
"to": "./${arch}/kubectl.exe"
|
|
},
|
|
{
|
|
"from": "binaries/client/windows/${arch}/lens-k8s-proxy.exe",
|
|
"to": "./${arch}/lens-k8s-proxy.exe"
|
|
},
|
|
{
|
|
"from": "binaries/client/windows/${arch}/helm.exe",
|
|
"to": "./${arch}/helm.exe"
|
|
}
|
|
]
|
|
},
|
|
"nsis": {
|
|
"include": "build/installer.nsh",
|
|
"oneClick": false,
|
|
"allowElevation": true,
|
|
"createStartMenuShortcut": true,
|
|
"allowToChangeInstallationDirectory": true
|
|
},
|
|
"protocols": {
|
|
"name": "Lens Protocol Handler",
|
|
"schemes": [
|
|
"lens"
|
|
],
|
|
"role": "Viewer"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@k8slens/application": "^6.5.0-alpha.8",
|
|
"@k8slens/application-for-electron-main": "^6.5.0-alpha.7",
|
|
"@k8slens/cluster-sidebar": "^1.0.0-alpha.0",
|
|
"@k8slens/core": "^6.5.0-alpha.13",
|
|
"@k8slens/ensure-binaries": "^6.5.0-alpha.6",
|
|
"@k8slens/event-emitter": "^1.0.0-alpha.5",
|
|
"@k8slens/feature-core": "^6.5.0-alpha.7",
|
|
"@k8slens/keyboard-shortcuts": "^1.0.0-alpha.7",
|
|
"@k8slens/kube-object": "^1.0.0-alpha.5",
|
|
"@k8slens/kubectl-versions": "^1.0.0-alpha.6",
|
|
"@k8slens/legacy-extension-example": "^1.0.0-alpha.11",
|
|
"@k8slens/legacy-extensions": "^1.0.0-alpha.7",
|
|
"@k8slens/legacy-global-di": "^1.0.0-alpha.4",
|
|
"@k8slens/logger": "^1.0.0-alpha.6",
|
|
"@k8slens/messaging": "^1.0.0-alpha.7",
|
|
"@k8slens/messaging-for-main": "^1.0.0-alpha.7",
|
|
"@k8slens/messaging-for-renderer": "^1.0.0-alpha.7",
|
|
"@k8slens/node-fetch": "^6.5.0-alpha.3",
|
|
"@k8slens/react-application": "^1.0.0-alpha.6",
|
|
"@k8slens/resizing-anchor": "^1.0.0-alpha.9",
|
|
"@k8slens/run-many": "^1.0.0-alpha.7",
|
|
"@k8slens/startable-stoppable": "^1.0.0-alpha.6",
|
|
"@k8slens/utilities": "^1.0.0-alpha.6",
|
|
"@ogre-tools/fp": "^16.1.0",
|
|
"@ogre-tools/injectable": "^16.1.0",
|
|
"@ogre-tools/injectable-extension-for-auto-registration": "^16.1.0",
|
|
"@ogre-tools/injectable-extension-for-mobx": "^16.1.0",
|
|
"@ogre-tools/injectable-react": "^16.1.0",
|
|
"mobx": "^6.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/rebuild": "^3.2.10",
|
|
"@k8slens/generate-tray-icons": "^6.5.0-alpha.7",
|
|
"@k8slens/test-utils": "^1.0.0-alpha.7",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
"@swc/cli": "^0.1.62",
|
|
"@swc/core": "^1.3.53",
|
|
"@swc/jest": "^0.2.26",
|
|
"@types/byline": "^4.2.33",
|
|
"@types/chart.js": "^2.9.36",
|
|
"@types/color": "^3.0.3",
|
|
"@types/crypto-js": "^3.1.47",
|
|
"@types/lodash": "^4.14.191",
|
|
"@types/node": "^16.18.25",
|
|
"@types/proper-lockfile": "^4.1.2",
|
|
"@types/react-dom": "^17.0.16",
|
|
"@types/react-router-dom": "^5.3.3",
|
|
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
|
"@types/react-window": "^1.8.5",
|
|
"@types/request-promise-native": "^1.0.18",
|
|
"@types/tar": "^6.1.4",
|
|
"@types/tcp-port-used": "^1.0.1",
|
|
"@types/url-parse": "^1.4.8",
|
|
"@types/uuid": "^8.3.4",
|
|
"@types/webpack": "^5.28.1",
|
|
"@types/webpack-env": "^1.18.0",
|
|
"@types/webpack-node-externals": "2.5.3",
|
|
"circular-dependency-plugin": "^5.2.2",
|
|
"concurrently": "^7.6.0",
|
|
"copy-webpack-plugin": "^11.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^6.7.2",
|
|
"electron-builder": "^23.6.0",
|
|
"electron-notarize": "^0.3.0",
|
|
"esbuild-loader": "^2.20.0",
|
|
"fork-ts-checker-webpack-plugin": "^7.3.0",
|
|
"html-webpack-plugin": "^5.5.1",
|
|
"jest": "^29.5.0",
|
|
"jest-environment-jsdom": "^28.1.3",
|
|
"jsonfile": "^6.1.0",
|
|
"mini-css-extract-plugin": "^2.7.1",
|
|
"monaco-editor-webpack-plugin": "^7.0.1",
|
|
"node-loader": "^2.0.0",
|
|
"nodemon": "^2.0.20",
|
|
"playwright": "^1.33.0",
|
|
"rimraf": "^4.4.1",
|
|
"run-script-os": "^1.1.6",
|
|
"style-loader": "^3.3.1",
|
|
"tailwindcss": "^3.3.2",
|
|
"ts-loader": "^9.4.2",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "^4.9.5",
|
|
"typescript-plugin-css-modules": "^5.0.1",
|
|
"webpack": "^5.81.0",
|
|
"webpack-cli": "^4.9.2",
|
|
"webpack-dev-server": "^4.13.3",
|
|
"webpack-node-externals": "^3.0.0"
|
|
}
|
|
}
|