forked from ansible/ansible-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
183 lines (183 loc) · 8.69 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": "@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",
"test2": "concurrently --kill-others-on-fail npm:tsc npm:eslint npm:prettier npm:component:run -c auto",
"test": "tsc --noEmit",
"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 --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:run": "concurrently npm:e2e:run:awx npm:e2e:run:hub npm:e2e:run:eda -c cyan,green,blue",
"e2e:run:awx": "TAGS='!flaky' cypress run --e2e --config-file=cypress.awx.config.ts",
"e2e:run:hub": "TAGS='!flaky' cypress run --e2e --config-file=cypress.hub.config.ts",
"e2e:run:eda": "TAGS='!flaky' cypress run --e2e --config-file=cypress.eda.config.ts",
"component": "cypress open --browser chrome --component",
"component:run": "cypress run --component",
"component:run:spec": "cypress run --component --spec",
"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 && 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 .",
"docker:build:hub": "docker build --target hub-ui --tag hub-ui .",
"docker:build:eda": "docker build --target eda-ui --tag eda-ui .",
"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"
},
"dependencies": {
"@ansible/react-json-chart-builder": "2.0.1",
"@babel/core": "7.24.4",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/preset-react": "7.24.1",
"@babel/preset-typescript": "7.24.1",
"@patternfly/patternfly": "5.3.0",
"@patternfly/quickstarts": "5.3.0",
"@patternfly/react-charts": "7.3.0",
"@patternfly/react-core": "5.3.2",
"@patternfly/react-icons": "5.3.1",
"@patternfly/react-table": "5.3.2",
"@patternfly/react-topology": "5.3.0",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@react-hook/resize-observer": "1.2.6",
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5",
"@rollup/plugin-strip": "3.0.4",
"@rollup/plugin-typescript": "11.1.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/json-schema": "7.0.15",
"@types/luxon": "3.4.2",
"@types/mini-css-extract-plugin": "2.5.0",
"@types/node": "20.12.7",
"@types/react": "18.3.0",
"@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",
"@types/webpack-dev-server": "4.7.1",
"anser": "2.1.1",
"antsibull-docs": "1.0.1",
"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",
"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.1",
"css-minimizer-webpack-plugin": "6.0.0",
"d3": "7.9.0",
"dagre": "0.8.5",
"debounce": "2.0.0",
"get-value": "3.0.1",
"html-webpack-plugin": "5.6.0",
"i18next": "23.11.2",
"i18next-browser-languagedetector": "7.2.1",
"i18next-http-backend": "2.5.1",
"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.48.0",
"monaco-editor-webpack-plugin": "7.1.0",
"monaco-yaml": "5.1.1",
"p-debounce": "4.0.0",
"p-limit": "5.0.0",
"react": "18.3.0",
"react-dom": "18.3.0",
"react-dropzone": "14.2.3",
"react-hook-form": "7.51.3",
"react-i18next": "14.1.1",
"react-markdown": "9.0.1",
"react-refresh": "0.14.1",
"react-router-dom": "6.23.0",
"react-use-websocket": "4.8.1",
"remark-gfm": "4.0.0",
"rrule": "2.8.1",
"set-value": "4.1.0",
"showdown": "2.1.0",
"style-loader": "4.0.0",
"styled-components": "6.1.8",
"swr": "2.2.5",
"type-fest": "4.17.0",
"typescript": "5.4.5",
"typescript-plugin-styled-components": "3.0.0",
"uuid": "9.0.1",
"vite": "5.2.10",
"webpack": "5.91.0",
"webpack-cli": "5.1.4",
"ws": "8.16.0",
"yaml": "2.4.1"
},
"devDependencies": {
"@4tw/cypress-drag-drop": "2.2.5",
"@cypress/code-coverage": "3.12.36",
"@types/js-yaml": "4.0.9",
"@typescript-eslint/eslint-plugin": "7.7.1",
"@typescript-eslint/parser": "7.7.1",
"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.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.1",
"husky": "9.0.11",
"nodemon": "3.1.0",
"pino-zen": "2.0.8",
"prettier": "3.2.5",
"rollup": "4.16.4",
"ts-node": "10.9.2",
"webpack-dev-server": "4.15.2"
},
"nyc": {
"all": true,
"include": [
"../frontend/src/**/*.ts",
"../frontend/src/**/*.tsx"
]
}
}