forked from kubernetes-sigs/kui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
183 lines (183 loc) · 7.73 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
{
"name": "kui-shell",
"version": "9.0.0",
"description": "This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool",
"main": "node_modules/@kui-shell/core/dist/main/main.js",
"scripts": {
"lint": "eslint '**/*.{js,ts,tsx}'",
"format": "prettier --write '**/*.{scss,css,html,js,json,md,ts,tsx}'",
"test:electron": "npm run watch:electron && npm run testv2; EC=$?; npm run kill; exit $EC",
"test:webpack": "export KUI_USE_PROXY=true; export MOCHA_RUN_TARGET=webpack; npm run watch:webpack && MOCHA_RUN_TARGET=webpack npm run testv2; EC=$?; npm run kill; npm run kill:proxy; exit $EC",
"test": "npm run test:electron",
"testv2": "export MONOREPO_MODE=true; cd packages/test && npm run testv2",
"test1": "PORT_OFFSET=0 npm run testv2",
"test2": "PORT_OFFSET=1 npm run testv2",
"test3": "PORT_OFFSET=2 npm run testv2",
"test4": "PORT_OFFSET=3 npm run testv2",
"test5": "PORT_OFFSET=4 npm run testv2",
"build:electron:mac": "PLATFORM=mac kui-build-electron",
"build:electron:osx": "npm run build:electron:mac",
"build:electron:linux": "PLATFORM=linux kui-build-electron",
"build:electron:win32": "PLATFORM=win32 kui-build-electron",
"build:electron:windows": "PLATFORM=win32 kui-build-electron",
"build:electron:all": "kui-build-electron",
"kill": "if [ \"$OSTYPE\" != \"msys\" ]; then kill $(lsof -t -i:908${PORT_OFFSET-0}) > /dev/null 2> /dev/null || true; fi",
"kill:proxy": "kill $(lsof -t -i:808${PORT_OFFSET-1}) > /dev/null 2> /dev/null || true",
"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": "bash -c \"npm run pty:nodejs && (npm run proxy &); npm run _watch $WATCH_ARGS\"",
"watch:electron": "bash -c \"npm run pty:electron && TARGET=electron-renderer npm run _watch\"",
"watch": "bash -c \"npm run kill; npm run compile && npm run link && concurrently -n ES6,WEBPACK --kill-others 'npm run watch:source' 'npm run watch:electron'\"",
"proxy": "export PORT=8081; export KUI_USE_HTTP=true; npm run pty:nodejs && cd packages/proxy/app && npm install && ../../../tools/travis/proxy.sh ../../..",
"watch:source": "tsc --build tsconfig.json --watch",
"compile:prep": "touch node_modules/@kui-shell/prescan.json",
"compile:source:es6": "tsc --build tsconfig.json",
"compile:source": "npm run compile:prep && npm run compile:source:es6 && npx kui-babel",
"compile:prescan": "bash -c \"MONOREPO_MODE=true node ./packages/builder/dist/bin/compile.js\"",
"compile:clean": "tsc --build tsconfig.json --clean",
"compile": "npm run compile:source && npm run compile: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\"",
"update": "ncu -u -x \"@types/yargs-parser,husky,electron,spectron,@types/webdriverio\" && for i in plugins/*; do (cd $i && ncu -u -x electron,spectron,@types/webdriverio,chokidar,d3,elkjs,xtermjs,strip-ansi && rm -rf node_modules); done && rm -rf node_modules/ package-lock.json && npm install",
"postinstall": "npm rebuild node-sass && npm run compile",
"open": "electron . shell",
"start": "WATCH_ARGS='open' npm run watch"
},
"engines": {
"node": ">=8.15.0",
"npm": ">=6.9.0"
},
"dependencies": {
"@kui-shell/core": "file:packages/core",
"@kui-shell/react": "file:packages/react",
"@kui-shell/plugin-bash-like": "file:plugins/plugin-bash-like",
"@kui-shell/plugin-core-support": "file:plugins/plugin-core-support",
"@kui-shell/plugin-carbon-themes": "file:plugins/plugin-carbon-themes",
"@kui-shell/plugin-patternfly4-themes": "file:plugins/plugin-patternfly4-themes",
"@kui-shell/plugin-core-themes": "file:plugins/plugin-core-themes",
"@kui-shell/plugin-git": "file:plugins/plugin-git",
"@kui-shell/plugin-proxy-support": "file:plugins/plugin-proxy-support",
"@kui-shell/plugin-client-common": "file:plugins/plugin-client-common",
"@kui-shell/plugin-electron-components": "file:plugins/plugin-electron-components",
"@kui-shell/client": "file:plugins/plugin-client-default",
"@kui-shell/plugin-kubectl": "file:plugins/plugin-kubectl",
"@kui-shell/plugin-kubectl-flow-views": "file:plugins/plugin-kubectl-flow-views",
"@kui-shell/plugin-ibmcloud": "file:plugins/plugin-ibmcloud",
"@kui-shell/plugin-skeleton": "file:plugins/plugin-skeleton",
"@kui-shell/plugin-s3": "file:plugins/plugin-s3",
"@kui-shell/plugin-wskflow": "file:plugins/plugin-wskflow",
"@kui-shell/plugin-iter8": "file:plugins/plugin-iter8"
},
"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",
"@types/carbon-components-react": "7.10.9",
"@types/debug": "4.1.5",
"@types/fs-extra": "9.0.1",
"@types/micromatch": "4.0.1",
"@types/minio": "7.0.6",
"@types/mkdirp": "1.0.1",
"@types/mocha": "8.0.3",
"@types/needle": "2.0.4",
"@types/node": "12.12.31",
"@types/react": "16.9.50",
"@types/react-dom": "16.9.8",
"@types/tmp": "0.2.0",
"@types/uuid": "8.3.0",
"@types/webdriverio": "4.13.3",
"@types/which": "1.3.2",
"@types/yargs-parser": "15.0.0",
"@typescript-eslint/eslint-plugin": "2.25.0",
"@typescript-eslint/parser": "2.25.0",
"colors": "1.4.0",
"concurrently": "5.3.0",
"debug": "4.2.0",
"electron": "7.3.3",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-node": "11.0.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-standard": "4.0.1",
"expand-home-dir": "0.0.3",
"fs-extra": "8.1.0",
"husky": "3.1.0",
"lint-staged": "10.0.9",
"mocha": "8.1.3",
"nyc": "14.1.1",
"prettier": "1.19.1",
"properties-parser": "0.3.1",
"spectron": "9.0.0",
"tmp": "0.2.1",
"typescript": "4.0.3",
"uuid": "8.3.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{scss,css,html,js,json,md,ts,tsx}": [
"prettier --write",
"git add"
],
"**/*.{js,ts,tsx}": [
"eslint --fix",
"git add"
]
},
"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": "[email protected]"
},
"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"
}
}