-
Notifications
You must be signed in to change notification settings - Fork 66
/
package.json
186 lines (186 loc) · 9.45 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
{
"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 run [awx:hub:eda]",
"awx": "UI_MODE=AWX webpack serve --mode development --config ./webpack/webpack.awx.cjs --port 4101 --open https://localhost:4101",
"hub": "UI_MODE=HUB webpack serve --mode development --config ./webpack/webpack.hub.cjs --port 4102 --open https://localhost:4102",
"eda": "UI_MODE=EDA webpack serve --mode development --config ./webpack/webpack.eda.cjs --port 4103 --open https://localhost:4103",
"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 -c auto",
"tsc": "tsc --noEmit",
"tsc:framework": "cd framework && rm -rf publish && tsc --project tsconfig.production.json",
"eslint": "eslint --cache --max-warnings=0 frontend framework cypress",
"eslint:fix": "eslint --fix frontend framework cypress",
"prettier": "prettier --check !**/*.scss frontend framework cypress",
"prettier:fix": "prettier --write frontend framework cypress locales docs README.md",
"checks": "concurrently --kill-others-on-fail npm:tsc npm:tsc:framework npm:eslint npm:prettier -c auto",
"upgrade": "npx npm-check-updates --upgrade --target minor --doctor -x '/^cypress/' && npm audit fix || true && npm dedup || true ",
"cypress": "cypress open",
"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:run": "concurrently npm:e2e:run:awx npm:e2e:run:hub npm:e2e:run:eda -c cyan,green,blue",
"e2e:run:awx": "LABELS='!flaky' cypress run --e2e --config-file=cypress.awx.config.ts",
"e2e:run:hub": "LABELS='!flaky' cypress run --e2e --config-file=cypress.hub.config.ts",
"e2e:run:eda": "LABELS='!flaky' cypress run --e2e --config-file=cypress.eda.config.ts",
"component": "CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT=600000 concurrently --kill-others-on-fail npm:component:* -c auto",
"component:awx:access": "cypress run --component -q -p 3801 --spec frontend/awx/access/**/*.cy.ts,frontend/awx/access/**/*.cy.tsx",
"component:awx:administration": "cypress run --component -q -p 3802 --spec frontend/awx/administration/**/*.cy.ts,frontend/awx/administration/**/*.cy.tsx",
"component:awx:common": "cypress run --component -q -p 3803 --spec frontend/awx/common/**/*.cy.ts,frontend/awx/common/**/*.cy.tsx",
"component:awx:overview": "cypress run --component -q -p 3805 --spec frontend/awx/overview/**/*.cy.ts,frontend/awx/overview/**/*.cy.tsx",
"component:awx:resources": "cypress run --component -q -p 3806 --spec frontend/awx/resources/**/*.cy.ts,frontend/awx/resources/**/*.cy.tsx",
"component:awx:views": "cypress run --component -q -p 3807 --spec frontend/awx/views/**/*.cy.ts,frontend/awx/views/**/*.cy.tsx",
"component:eda": "cypress run --component -q -p 3902 --spec frontend/eda/**/*.cy.ts,frontend/eda/**/*.cy.tsx",
"component:hub": "cypress run --component -q -p 3903 --spec frontend/hub/**/*.cy.ts,frontend/hub/**/*.cy.tsx",
"component:common": "cypress run --component -q -p 3904 --spec frontend/common/**/*.cy.ts,frontend/common/**/*.cy.tsx",
"component:framework": "cypress run --component -q -p 3905 --spec framework/**/*.cy.tsx,framework/**/*.cy.tsx",
"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",
"i18n": "npx i18next-parser --config i18next-parser.config.cjs && npm run prettier:fix",
"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 --load .",
"docker:build:hub": "docker build --target hub-ui --tag hub-ui --load .",
"docker:build:eda": "docker build --target eda-ui --tag eda-ui --load .",
"docker:build:eda:arm": "docker build --platform linux/arm64 --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 -e EDA_SERVER_UUID=$EDA_SERVER_UUID -e EDA_WEBHOOK_SERVER='http://example.com' eda-ui",
"docker": "npm run build && npm run docker:build && npm run docker:run"
},
"dependencies": {
"@ansible/react-json-chart-builder": "2.0.1",
"@babel/core": "7.24.8",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@patternfly/patternfly": "5.3.1",
"@patternfly/quickstarts": "5.3.0",
"@patternfly/react-charts": "7.3.1",
"@patternfly/react-core": "5.3.4",
"@patternfly/react-icons": "5.3.2",
"@patternfly/react-table": "5.3.4",
"@patternfly/react-topology": "5.3.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
"@react-hook/resize-observer": "1.2.6",
"@svgr/webpack": "8.1.0",
"@types/css-minimizer-webpack-plugin": "3.2.0",
"@types/debounce": "1.2.4",
"@types/get-value": "3.0.5",
"@types/html-webpack-plugin": "3.2.9",
"@types/js-yaml": "4.0.9",
"@types/json-schema": "7.0.15",
"@types/luxon": "3.4.2",
"@types/mini-css-extract-plugin": "2.5.0",
"@types/node": "20.14.10",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-router-dom": "5.3.3",
"@types/set-value": "4.0.3",
"@types/styled-components": "5.1.34",
"@types/uuid": "9.0.8",
"@types/webpack": "5.28.5",
"anser": "2.1.1",
"antsibull-docs": "1.0.2",
"babel-loader": "9.1.3",
"babel-plugin-istanbul": "6.1.1",
"babel-plugin-styled-components": "2.1.4",
"babel-plugin-transform-class-properties": "^6.10.2",
"compression-webpack-plugin": "11.1.0",
"concurrently": "8.2.2",
"copy-webpack-plugin": "12.0.2",
"coverage-istanbul-loader": "3.0.5",
"css-loader": "7.1.2",
"css-minimizer-webpack-plugin": "6.0.0",
"d3": "7.9.0",
"dagre": "0.8.5",
"debounce": "2.1.0",
"favicons-webpack-plugin": "^6.0.1",
"get-value": "3.0.1",
"html-webpack-plugin": "5.6.0",
"i18next": "23.11.5",
"i18next-browser-languagedetector": "7.2.1",
"i18next-http-backend": "2.5.2",
"js-yaml": "4.1.0",
"luxon": "3.4.4",
"merge-jsons-webpack-plugin": "2.0.1",
"mini-css-extract-plugin": "2.9.0",
"monaco-editor": "0.50.0",
"monaco-editor-webpack-plugin": "7.1.0",
"monaco-yaml": "5.2.1",
"p-debounce": "4.0.0",
"p-limit": "5.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-dropzone": "14.2.3",
"react-hook-form": "7.52.1",
"react-i18next": "14.1.2",
"react-markdown": "9.0.1",
"react-refresh": "0.14.2",
"react-router-dom": "6.24.1",
"react-use-websocket": "4.8.1",
"remark-gfm": "4.0.0",
"rrule": "2.8.1",
"set-value": "4.1.0",
"style-loader": "4.0.0",
"styled-components": "6.1.11",
"swr": "2.2.5",
"type-fest": "4.21.0",
"typescript": "5.5.3",
"typescript-plugin-styled-components": "3.0.0",
"uuid": "9.0.1",
"vite": "5.3.3",
"webpack": "5.93.0",
"webpack-cli": "5.1.4",
"yaml": "2.4.5"
},
"devDependencies": {
"@4tw/cypress-drag-drop": "2.2.5",
"@cypress/code-coverage": "3.12.41",
"@types/webpack-dev-server": "4.7.1",
"@typescript-eslint/eslint-plugin": "7.16.0",
"@typescript-eslint/parser": "7.16.0",
"cypress": "13.5.1",
"cypress-react-selector": "3.0.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-i18next": "6.0.7",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "4.6.2",
"husky": "9.0.11",
"lint-staged": "15.2.7",
"prettier": "3.3.2",
"webpack-dev-server": "4.15.2"
},
"nyc": {
"all": true,
"include": [
"../frontend/src/**/*.ts",
"../frontend/src/**/*.tsx"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}