forked from kubernetes-sigs/kui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
63 lines (63 loc) · 3.02 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
{
"name": "kui-shell",
"version": "3.0.0",
"description": "This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool",
"main": "build/packages/app/src/main/main.js",
"scripts": {
"lint": "eslint '**/*.{js,ts}'",
"format": "prettier --write '**/*.{css,html,js,json,md,ts}'",
"test": "cd packages/tests && npm run test",
"compile": "CLIENT=${CLIENT-default}; MONOREPO_MODE=true CLIENT_HOME=./clients/$CLIENT ./packages/kui-builder/bin/compile.sh",
"watch": "./packages/kui-builder/bin/watch.sh",
"preinstall": "cp packages/kui-builder/npmrc .npmrc",
"build:configure": "CLIENT=${CLIENT-default}; rm node_modules/@kui-shell/settings/config-dev.json; CLIENT_HOME=./clients/$CLIENT node packages/kui-builder/lib/configure.js && CLIENT_HOME=./clients/$CLIENT ./packages/kui-builder/dist/dev/build.sh && CLIENT_HOME=./clients/$CLIENT ./packages/kui-builder/bin/seticon.js",
"build:electron-for-development": "npm run build:configure && npm run compile && for i in plugins/*; do if [ -d $i/node_modules ]; then (cd build/plugins/`basename $i` && rm -rf node_modules && cp -a ../../../$i/node_modules .); fi; done",
"build:hoist": "node ./packages/kui-builder/bin/hoist.js",
"postinstall": "npm run build:hoist && npm run build:electron-for-development",
"start": "node bin/kui shell",
"watch:webpack": "export CLIENT=${CLIENT-default}; npm run build:configure && if [ ! -d node_modules/webpack ]; then echo \"$(tput setaf 1)!!! re-run WEBPACK=true npm install$(tput sgr0)\"; exit 1; fi && rm -rf clients/$CLIENT/dist/webpack && mkdir -p clients/$CLIENT/dist/webpack/css && (cd clients/$CLIENT/dist/webpack && ln -s ../../theme/icons && ln -s ../../theme/images && cd css && for i in ../../../../../packages/app/web/css/*; do ln -s $i; done && for i in ../../../theme/css/*; do ln -s $i; done); (cd node_modules/@kui-shell/settings && rm -f config-dev.json; if [ -f ../../../clients/$CLIENT/theme/config.json ]; then echo \"linking config-dev.json\"; cp ../../../clients/$CLIENT/theme/config.json config-dev.json; fi) && export KUI_MONO_HOME=$(cd ./ && pwd); if [ -z \"$TRAVIS_JOB_ID\" ]; then PROGRESS=\"--progress\"; fi; webpack-dev-server $PROGRESS --config packages/webpack/webpack.config.js"
},
"dependencies": {},
"devDependencies": {
"@lerna/bootstrap": "3.16.2",
"electron": "5.0.9"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{css,html,js,json,md,ts}": [
"prettier --write",
"git add"
],
"**/*.{js,ts}": [
"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"
}