-
Notifications
You must be signed in to change notification settings - Fork 185
/
package.json
162 lines (162 loc) · 7.39 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "kui-shell",
"version": "13.1.0",
"description": "This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool",
"main": "dist/headless/kui.min.js",
"scripts": {
"prepare": "cross-env husky install",
"lint": "eslint '**/*.{js,ts,tsx}'",
"format": "prettier --write '**/*.{scss,css,html,js,json,md,ts,tsx}'",
"test:browser": "export KUI_USE_PROXY=true; export MOCHA_RUN_TARGET=webpack; npm run test",
"test": "export MONOREPO_MODE=true; cd packages/test && npm run test",
"test1": "PORT_OFFSET=0 npm run test",
"test2": "PORT_OFFSET=1 npm run test",
"test3": "PORT_OFFSET=2 npm run test",
"test4": "PORT_OFFSET=3 npm run test",
"test5": "PORT_OFFSET=4 npm run test",
"build:prep": "",
"build:electron:mac:amd64": "npm run build:prep && PLATFORM=mac ARCH=x64 kui-build-electron",
"build:electron:mac:arm64": "npm run build:prep && PLATFORM=mac ARCH=arm64 kui-build-electron",
"build:electron:osx:amd64": "npm run build:electron:mac:amd64",
"build:electron:osx:arm64": "npm run build:electron:mac:arm64",
"build:electron:linux:amd64": "npm run build:prep && PLATFORM=linux ARCH=x64 kui-build-electron",
"build:electron:linux:arm64": "npm run build:prep && PLATFORM=linux ARCH=arm64 kui-build-electron",
"build:electron:win32:amd64": "npm run build:prep && PLATFORM=win32 ARCH=x64 kui-build-electron",
"build:electron:windows:amd64": "npm run build:prep && PLATFORM=win32 ARCH=x64 kui-build-electron",
"build:electron:all": "kui-build-electron",
"_kill": "if [ -f /tmp/kuiwatch-$T.pid ]; then PID=$(cat /tmp/kuiwatch-$T.pid); if [ -n \"$PID\" ]; then kill $PID > /dev/null 2> /dev/null || true; fi; fi",
"kill": "T=client npm run _kill; T=headless npm run _kill",
"kill:proxy": "if [ -f /tmp/kuiproxy.pid ]; then PID=$(cat /tmp/kuiproxy.pid); if [ -n \"$PID\" ]; then kill $PID > /dev/null 2> /dev/null || true; fi; rm -f /tmp/kuiproxy.pid; fi",
"kill:cproxy": "kill $(lsof -t -i:9081) > /dev/null 2> /dev/null || true",
"_watch": "bash -c \"npm run kill; export CSP_ALLOWED_HOSTS='http: https: data: filesystem: about: blob: ws: wss:'; kui-watch-webpack\"",
"watch:webpack": "npm run kill; npm run pty:nodejs && npm run _watch $WATCH_ARGS",
"watch:browser": "concurrently -n COMPILE,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:webpack'",
"watch:browser:offline": "export IS_OFFLINE_CLIENT=true; concurrently -n COMPILE,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:webpack'",
"watch:electron": "bash -c \"npm run pty:electron && TARGET=electron-renderer npm run _watch\"",
"watch": "bash -c \"npm run kill; rm -f dist/headless/kui.min.js && npm run compile && npm run link && concurrently -n COMPILE,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:electron'\"",
"proxy": "export PORT=8081; npm run kill:proxy; export KUI_USE_HTTP=true; cd packages/proxy/app && npm install && ../../../tools/travis/proxy.sh ../../..",
"watch:source": "concurrently -n TYPESCRIPT --kill-others 'tsc --build tsconfig.json --watch'",
"compile:source:es6": "tsc --build tsconfig.json",
"compile:source": "npm run compile:source:es6",
"compile:clean": "tsc --build tsconfig.json --clean",
"compile": "npm run compile:source && npx kui-prescan",
"rebuild": "npm run compile:clean; npm run compile",
"clean": "npm run compile:clean; rm -rf node_modules; for i in plugins/*; do rm -rf $i/node_modules; done; for i in packages/*; do rm -rf $i/node_modules; done",
"purge": "npm run clean; rm -f package-lock.json",
"pack": "./bin/pack.sh",
"pty:rebuild": "kui-pty-rebuild",
"pty:electron": "npm run pty:rebuild electron",
"pty:nodejs": "npm run pty:rebuild node",
"link": "bash -c \"if [ $OSTYPE != msys ]; then CLIENT=${CLIENT-default}; CLIENT_HOME=$(cd ./node_modules/@kui-shell/client && pwd) ./packages/builder/bin/seticon.js; fi\"",
"postinstall": "rm -rf dist/headless && npm rebuild node-sass && npm run compile",
"open": "electron . -- shell",
"start": "WATCH_ARGS='open' npm run watch"
},
"engines": {
"node": ">=12.22.9",
"npm": ">=6.9.0"
},
"dependencies": {
"@electron/remote": "^2.0.9",
"@kui-shell/client": "file:plugins/plugin-client-default",
"@kui-shell/core": "file:packages/core",
"@kui-shell/plugin-bash-like": "file:plugins/plugin-bash-like",
"@kui-shell/plugin-carbon-themes": "file:plugins/plugin-carbon-themes",
"@kui-shell/plugin-client-common": "file:plugins/plugin-client-common",
"@kui-shell/plugin-core-support": "file:plugins/plugin-core-support",
"@kui-shell/plugin-core-themes": "file:plugins/plugin-core-themes",
"@kui-shell/plugin-electron-components": "file:plugins/plugin-electron-components",
"@kui-shell/plugin-git": "file:plugins/plugin-git",
"@kui-shell/plugin-iter8": "file:plugins/plugin-iter8",
"@kui-shell/plugin-kubectl": "file:plugins/plugin-kubectl",
"@kui-shell/plugin-kubectl-core": "file:plugins/plugin-kubectl-core",
"@kui-shell/plugin-kubectl-tray-menu": "file:plugins/plugin-kubectl-tray-menu",
"@kui-shell/plugin-madwizard": "file:plugins/plugin-madwizard",
"@kui-shell/plugin-patternfly4-themes": "file:plugins/plugin-patternfly4-themes",
"@kui-shell/plugin-proxy-support": "file:plugins/plugin-proxy-support",
"@kui-shell/plugin-s3": "file:plugins/plugin-s3",
"@kui-shell/react": "file:packages/react"
},
"devDependencies": {
"@kui-shell/builder": "file:packages/builder",
"@kui-shell/proxy": "file:packages/proxy",
"@kui-shell/test": "file:packages/test",
"@kui-shell/webpack": "file:packages/webpack",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"colors": "1.4.0",
"concurrently": "^8.0.1",
"cross-env": "^7.0.3",
"electron": "^22.3.5",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-standard": "^4.1.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"nan": "github:jkleinsc/nan#6a2f95a6a2209d8aa7542fb18099fd808a802059",
"prettier": "^2.8.7",
"typedoc": "^0.24.1",
"typedoc-plugin-markdown": "^3.15.1",
"typescript": "^4.9.5"
},
"lint-staged": {
"**/*.{scss,css,html,js,json,md,ts,tsx}": [
"prettier --write"
],
"**/*.{js,ts,tsx}": [
"eslint --fix"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/IBM/kui.git"
},
"keywords": [
"CLI",
"UI",
"tool",
"kubernetes",
"visualization",
"serverless",
"OpenWhisk",
"electron"
],
"author": {
"name": "Nick Mitchell",
"email": "nickm@us.ibm.com"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/IBM/kui/issues"
},
"homepage": "https://github.com/IBM/kui#readme",
"nyc": {
"cache": false,
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts",
"coverage/**",
"packages/*/test/**",
"packages/*/tests/**",
"test/**",
"test{,-*}.ts",
"**/*{.,-}{test,spec}.ts",
"**/__tests__/**",
"**/node_modules/**"
],
"excludeNodeModules": false,
"temp-dir": "packages/test/.nyc_output"
},
"overrides": {
"nan": "$nan",
"colors": "$colors"
}
}