-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
167 lines (167 loc) · 7.03 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
{
"proxy": "https://10.106.80.204:20001/kiali",
"name": "@kiali/kiali-ui",
"version": "1.1.0",
"description": "React UI for [Kiali](https://github.com/kiali/kiali).",
"keywords": [
"istio service mesh",
"kiali",
"monitoring",
"observability",
"okd",
"openshift"
],
"homepage-comment": [
"*Do not* change this setting if you wish run Kiali under different server root.",
"Instead update 'web_root' in Kaili config map in OpenShift console."
],
"homepage": "./",
"bugs": {
"url": "https://issues.jboss.org/projects/KIALI/issues/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kiali/kiali-ui.git"
},
"license": "Apache-2.0",
"author": "Red Hat",
"main": "index.js",
"publishConfig": {
"access": "public"
},
"script-comments": [
"When adding new scripts, please be careful to using `npm run` instead of `yarn` for the tasks.",
"Some build environments we use do not include npm access, and installing yarn is not possible."
],
"scripts": {
"backup-rcue": "if [ ! -f node_modules/patternfly/dist/css/rcue.css.copy ]; then mv node_modules/patternfly/dist/css/rcue.css node_modules/patternfly/dist/css/rcue.css.copy; touch node_modules/patternfly/dist/css/rcue.css; fi",
"backup-rcue-additions": "if [ ! -f node_modules/patternfly/dist/css/rcue-additions.css.copy ]; then mv node_modules/patternfly/dist/css/rcue-additions.css node_modules/patternfly/dist/css/rcue-additions.css.copy; touch node_modules/patternfly/dist/css/rcue-additions.css; fi",
"build": "if [ \"${KIALI_ENV}\" = \"production\" ]; then npm run build:prod; else npm run build:dev; fi",
"build-css": "node-sass-chokidar src/ --output-style compressed --include-path $npm_package_sassIncludes_src --include-path $npm_package_sassIncludes_patternfly --include-path $npm_package_sassIncludes_patternflyReact --include-path $npm_package_sassIncludes_patternflyReactExtensions --include-path $npm_package_sassIncludes_bootstrap --include-path $npm_package_sassIncludes_fontAwesome -o src/",
"build:dev": "npm run remove-rcue; REACT_APP_RCUE=false npm run build:kiali",
"build:kiali": "npm run lint:prod && npm run copy-fonts && npm run copy-img && npm run build-css && REACT_APP_VERSION=$npm_package_version REACT_APP_NAME=$npm_package_name REACT_APP_GIT_HASH=$(git rev-parse HEAD) react-scripts-ts build",
"build:prod": "npm run restore-rcue; REACT_APP_RCUE=true npm run build:kiali",
"copy-fonts": "cp -r node_modules/patternfly/dist/fonts src/",
"copy-img": "cp -r node_modules/patternfly/dist/img src/",
"lint": "tslint --project ./tsconfig.json",
"lint:prod": "tslint --project ./tsconfig.json --config tslint.prod.json",
"lint:precommit": "if git diff --name-only HEAD | grep -E '\\.tsx?$'; then npm run lint:prod; else true; fi",
"lintfix": "tslint --fix --project ./tsconfig.json",
"remove-rcue": "npm run backup-rcue ; npm run backup-rcue-additions",
"restore-rcue": "mv node_modules/patternfly/dist/css/rcue.css.copy node_modules/patternfly/dist/css/rcue.css && mv node_modules/patternfly/dist/css/rcue-additions.css.copy node_modules/patternfly/dist/css/rcue-additions.css",
"start": "if [ \"${KIALI_ENV}\" = \"production\" ]; then npm run start:prod; else npm run start:dev; fi",
"start:dev": "npm run remove-rcue; REACT_APP_RCUE=false npm run start:kiali",
"start:kiali": "npm run copy-fonts && npm run copy-img && npm run build-css && REACT_APP_VERSION=$npm_package_version REACT_APP_NAME=$npm_package_name REACT_APP_GIT_HASH=$(git rev-parse HEAD) react-scripts-ts start",
"start:prod": "npm run restore-rcue; REACT_APP_RCUE=true npm run start:kiali",
"test": "TEST_RUNNER=1 react-scripts-ts test --env=jsdom __tests__",
"snyk": "snyk test",
"analyze": "source-map-explorer build/static/js/main.*",
"prettier": "prettier --write \"{src/**/*.{js,jsx,ts,tsx,json,yml,css,scss},travis.yml,*.json}\"",
"snyk-protect": "snyk protect"
},
"dependencies": {
"@patternfly/patternfly": "2.4.1",
"@patternfly/react-core": "3.2.6",
"axios": "0.18.1",
"csstips": "0.3.0",
"csx": "9.0.0",
"cytoscape": "3.7.1",
"cytoscape-canvas": "3.0.1",
"cytoscape-cola": "2.3.0",
"cytoscape-cose-bilkent": "4.0.0",
"cytoscape-dagre": "2.2.2",
"cytoscape-popper": "1.0.2",
"deep-freeze": "0.0.1",
"js-yaml": "3.13.1",
"json-beautify": "1.0.1",
"k-charted-react": "^0.1.0",
"lodash": "4.17.11",
"logfmt": "1.2.1",
"moment": "2.24.0",
"patternfly": "3.59.1",
"patternfly-react": "2.31.1",
"patternfly-react-extensions": "2.16.28",
"react": "16.6.3",
"react-ace": "6.4.0",
"react-addons-update": "^15.6.2",
"react-bootstrap": "0.32.4",
"react-copy-to-clipboard": "5.0.1",
"react-dom": "16.6.3",
"react-draggable": "3.2.1",
"react-flexview": "4.0.3",
"react-floater": "0.6.4",
"react-iframe": "1.5.0",
"react-redux": "5.1.1",
"react-resize-detector": "3.4.0",
"react-router-dom": "5.0.0",
"react-scripts-ts": "2.17.0",
"redux": "4.0.1",
"redux-persist": "5.10.0",
"redux-persist-transform-filter": "0.0.18",
"redux-thunk": "2.3.0",
"reselect": "4.0.0",
"ssri": "6.0.1",
"tippy.js": "3.4.1",
"typesafe-actions": "3.2.1",
"typestyle": "2.0.1",
"visibilityjs": "2.0.2"
},
"devDependencies": {
"@patternfly/react-charts": "3.1.1",
"@types/enzyme": "3.1.15",
"@types/jest": "23.3.10",
"@types/lodash": "4.14.123",
"@types/node": "11.11.4",
"@types/react": "16.7.13",
"@types/react-dom": "16.0.11",
"@types/react-redux": "7.0.9",
"@types/react-router-dom": "4.3.1",
"axios-mock-adapter": "1.16.0",
"babel-core": "6.26.3",
"enzyme": "3.8.0",
"enzyme-adapter-react-16": "1.7.1",
"enzyme-to-json": "3.3.5",
"husky": "1.3.1",
"jest-canvas-mock": "1.1.0",
"jest-localstorage-mock": "2.3.0",
"node-sass-chokidar": "1.3.4",
"prettier": "1.16.4",
"pretty-quick": "1.10.0",
"redux-mock-store": "1.5.3",
"snyk": "^1.161.1",
"source-map-explorer": "1.8.0",
"tslint-no-circular-imports": "0.6.2",
"typescript": "3.5"
},
"resolutions": {
"@types/react": "16.7.13",
"handlebars": "4.0.14",
"js-yaml": "3.13.1",
"hoist-non-react-statics": "3.3.0",
"caniuse-lite": "1.0.30000974"
},
"engines": {
"node": ">=8.0.0 && <11",
"npm": ">=6.0.0 ",
"yarn": ">=1.0.0 "
},
"sassIncludes": {
"src": "src",
"patternfly": "node_modules/patternfly/dist/sass",
"patternflyReact": "node_modules/patternfly-react/dist/sass",
"patternflyReactExtensions": "node_modules/patternfly-react-extensions/dist/sass",
"bootstrap": "node_modules/bootstrap-sass/assets/stylesheets",
"fontAwesome": "node_modules/font-awesome-sass/assets/stylesheets"
},
"husky": {
"hooks": {
"pre-commit": "yarn run pretty-quick --staged --pattern \"{src/**/*.{js,jsx,ts,tsx,json,yml,css,scss},travis.yml,*.json}\" && npm run lint:precommit"
}
},
"browserslist": [
">10%",
"last 2 versions",
"not ie <= 11"
],
"snyk": true
}