forked from ansible/ansible-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
199 lines (199 loc) · 9.8 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "@ansible/ansible-ui",
"description": "Ansible UI",
"version": "2.4.313",
"author": "Red Hat",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/ansible/ansible-ui.git"
},
"homepage": "https://github.com/ansible/ansible-ui#readme",
"scripts": {
"start": "echo Usage: npm start:[awx:hub:eda]",
"awx": "UI_MODE=AWX webpack serve --mode development --config ./webpack/webpack.awx.cjs --port 4101 --open",
"hub": "UI_MODE=HUB webpack serve --mode development --config ./webpack/webpack.hub.cjs --port 4102 --open",
"eda": "UI_MODE=EDA webpack serve --mode development --config ./webpack/webpack.eda.cjs --port 4103 --open",
"build": "concurrently npm:build:awx npm:build:hub npm:build:eda -c cyan,green,blue",
"build:awx": "rm -rf build/awx && UI_MODE=AWX webpack --mode production --config ./webpack/webpack.awx.cjs --output-path build/awx",
"build:hub": "rm -rf build/hub && UI_MODE=HUB webpack --mode production --config ./webpack/webpack.hub.cjs --output-path build/hub",
"build:eda": "rm -rf build/eda && UI_MODE=EDA webpack --mode production --config ./webpack/webpack.eda.cjs --output-path build/eda",
"clean": "rm -rf dist build coverage .nyc_output cypress/coverage cypress/.nyc_output",
"test": "concurrently --kill-others-on-fail npm:tsc npm:eslint npm:prettier npm:component:run --prefix-colors cyan,green,blue,magenta,gray",
"tsc": "tsc --noEmit",
"eslint": "eslint --max-warnings=0 frontend framework cypress",
"eslint:fix": "eslint --fix frontend framework cypress",
"eslint:changed": "eslint --max-warnings=0 $(git diff --name-only --diff-filter=M origin/main -- '*.ts' '*.tsx' '*.jsx' '*.js'| xargs)",
"prettier": "prettier --check !**/*.scss frontend framework cypress",
"prettier:fix": "prettier --write frontend framework cypress locales docs README.md",
"prettier:changed": "prettier --check $(git diff --name-only --diff-filter=M origin/main | xargs)",
"prettier:changed:fix": "prettier --write $(git diff --name-only --diff-filter=M origin/main | xargs)",
"checks": "concurrently --kill-others-on-fail npm:tsc npm:eslint npm:prettier --prefix-colors cyan,green,blue,magenta,gray",
"upgrade": "npx npm-check-updates '/^@patternfly.*$/' --upgrade --target latest --doctor && npx npm-check-updates '/^(?!@patternfly).*$/' --upgrade --target minor --doctor && npm audit fix || true && npm dedup || true ",
"e2e:awx": "cypress open --browser chrome --e2e --config-file=cypress.awx.config.ts",
"e2e:hub": "cypress open --browser chrome --e2e --config-file=cypress.hub.config.ts",
"e2e:eda": "cypress open --browser chrome --e2e --config-file=cypress.eda.config.ts",
"e2e:platform": "cypress open --browser chrome --e2e --config-file=cypress.platform.config.ts",
"e2e:run": "concurrently npm:e2e:run:awx npm:e2e:run:hub npm:e2e:run:eda -c cyan,green,blue",
"e2e:run:awx": "cypress run --e2e --config-file=cypress.awx.config.ts",
"e2e:run:hub": "cypress run --e2e --config-file=cypress.hub.config.ts",
"e2e:run:eda": "cypress run --e2e --config-file=cypress.eda.config.ts",
"e2e:run:platform": "cypress run --e2e --config-file=cypress.platform.config.ts",
"component:awx": "cypress open --browser chrome --component --config-file=cypress.awx.config.ts",
"component:hub": "cypress open --browser chrome --component --config-file=cypress.hub.config.ts",
"component:eda": "cypress open --browser chrome --component --config-file=cypress.eda.config.ts",
"component:afw": "cypress open --browser chrome --component --config-file=cypress.afw.config.ts",
"component:platform": "cypress open --browser chrome --component --config-file=cypress.platform.config.ts",
"component:run": "concurrently npm:component:run:awx npm:component:run:hub npm:component:run:eda npm:component:run:afw -c cyan,green,blue,magenta",
"component:run:awx": "cypress run --component --config-file=cypress.awx.config.ts",
"component:run:hub": "cypress run --component --config-file=cypress.hub.config.ts",
"component:run:eda": "cypress run --component --config-file=cypress.eda.config.ts",
"component:run:afw": "cypress run --component --config-file=cypress.afw.config.ts",
"component:run:platform": "cypress run --component --config-file=cypress.platform.config.ts",
"coverage": "open coverage/lcov-report/index.html",
"coverage:check": "npx nyc report --check-coverage --statements 20 --branches 20 --functions 19 --lines 20 --report-dir ./coverage --temp-dir .nyc_output --reporter=text-summary --exclude-after-remap false",
"prepare": "husky install",
"prepush": "concurrently --kill-others-on-fail npm:tsc npm:eslint:changed npm:prettier:changed --prefix-colors cyan,green,blue,magenta,gray",
"i18n": "npx i18next-parser --config i18next-parser.config.cjs",
"docker:build": "concurrently npm:docker:build:awx npm:docker:build:hub npm:docker:build:eda -c cyan,green,blue",
"docker:build:awx": "docker build --target awx-ui --tag awx-ui .",
"docker:build:hub": "docker build --target hub-ui --tag hub-ui .",
"docker:build:eda": "docker build --target eda-ui --tag eda-ui .",
"docker:run": "concurrently npm:docker:run:awx npm:docker:run:hub npm:docker:run:eda -c cyan,green,blue",
"docker:run:awx": "echo https://localhost:4101 && docker run --name awx-ui --rm -e LOG_LEVEL=debug -p 4101:443 -e AWX_SERVER=$AWX_SERVER awx-ui",
"docker:run:hub": "echo https://localhost:4102 && docker run --name hub-ui --rm -e LOG_LEVEL=debug -p 4102:443 -e HUB_SERVER=$HUB_SERVER hub-ui",
"docker:run:eda": "echo https://localhost:4103 && docker run --name eda-ui --rm -e LOG_LEVEL=debug -p 4103:443 -e EDA_SERVER=$EDA_SERVER eda-ui"
},
"dependencies": {
"@ansible/react-json-chart-builder": "^1.15.2",
"@babel/core": "7.22.15",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/preset-react": "7.22.15",
"@babel/preset-typescript": "7.22.15",
"@patternfly/patternfly": "4.224.5",
"@patternfly/react-charts": "6.94.21",
"@patternfly/react-core": "4.276.12",
"@patternfly/react-icons": "4.93.7",
"@patternfly/react-table": "4.113.4",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@react-hook/resize-observer": "1.2.6",
"@rollup/plugin-commonjs": "25.0.4",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-strip": "3.0.2",
"@rollup/plugin-typescript": "11.1.3",
"@svgr/webpack": "8.1.0",
"@types/cookie": "0.5.2",
"@types/css-minimizer-webpack-plugin": "3.2.0",
"@types/debounce": "1.2.1",
"@types/etag": "1.8.1",
"@types/get-value": "3.0.3",
"@types/html-webpack-plugin": "3.2.6",
"@types/json-schema": "7.0.12",
"@types/luxon": "3.3.2",
"@types/mini-css-extract-plugin": "2.5.0",
"@types/node": "20.5.9",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@types/react-router-dom": "5.3.3",
"@types/set-value": "4.0.1",
"@types/styled-components": "5.1.26",
"@types/uuid": "9.0.3",
"@types/webpack": "5.28.2",
"@types/webpack-dev-server": "4.7.1",
"anser": "2.1.1",
"axios": "1.5.0",
"babel-loader": "9.1.3",
"babel-plugin-istanbul": "6.1.1",
"babel-plugin-styled-components": "2.1.4",
"babel-plugin-transform-class-properties": "6.24.1",
"browserify-fs": "1.0.0",
"compression-webpack-plugin": "10.0.0",
"concurrently": "8.2.1",
"cookie": "0.5.0",
"copy-webpack-plugin": "11.0.0",
"coverage-istanbul-loader": "3.0.5",
"cpy": "10.1.0",
"cpy-cli": "5.0.0",
"css-loader": "6.8.1",
"css-minimizer-webpack-plugin": "5.0.1",
"d3": "7.8.5",
"dagre": "0.8.5",
"debounce": "1.2.1",
"etag": "1.8.1",
"get-value": "3.0.1",
"html-webpack-plugin": "5.5.3",
"i18next-browser-languagedetector": "7.1.0",
"i18next-http-backend": "2.2.2",
"js-yaml": "4.1.0",
"luxon": "3.4.2",
"merge-jsons-webpack-plugin": "2.0.1",
"mini-css-extract-plugin": "2.7.6",
"monaco-editor": "0.41.0",
"monaco-editor-webpack-plugin": "7.1.0",
"monaco-yaml": "5.1.0",
"node-util": "0.0.6",
"os-browserify": "0.3.0",
"p-limit": "4.0.0",
"path-browserify": "1.0.1",
"pino": "8.15.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-dropzone": "14.2.3",
"react-hook-form": "7.46.1",
"react-i18next": "11.18.6",
"react-refresh": "0.14.0",
"react-router-dom": "6.15.0",
"react-use-websocket": "4.3.1",
"rollup": "3.28.1",
"rrule": "2.7.2",
"selfsigned": "2.1.1",
"set-value": "4.1.0",
"stream-browserify": "3.0.0",
"style-loader": "3.3.3",
"styled-components": "5.3.11",
"swr": "2.2.2",
"type-fest": "4.3.1",
"typescript": "5.2.2",
"typescript-plugin-styled-components": "3.0.0",
"uuid": "9.0.0",
"vite": "4.4.9",
"webpack": "5.88.2",
"webpack-cli": "5.1.4",
"workbox-webpack-plugin": "7.0.0",
"ws": "8.13.0",
"yaml": "2.3.2"
},
"devDependencies": {
"@4tw/cypress-drag-drop": "2.2.4",
"@cypress/code-coverage": "3.11.0",
"@types/js-yaml": "4.0.5",
"@typescript-eslint/eslint-plugin": "6.6.0",
"@typescript-eslint/parser": "6.6.0",
"cypress": "12.17.4",
"cypress-react-selector": "3.0.0",
"eslint": "8.48.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-i18next": "6.0.3",
"eslint-plugin-import": "2.28.1",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "8.0.3",
"nodemon": "3.0.1",
"pino-zen": "2.0.8",
"prettier": "3.0.3",
"ts-node": "10.9.1",
"wait-on": "7.0.1",
"webpack-dev-server": "4.15.1"
},
"nyc": {
"all": true,
"include": [
"../frontend/src/**/*.ts",
"../frontend/src/**/*.tsx"
]
}
}