forked from ansible/ansible-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
183 lines (183 loc) · 8.26 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.220",
"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",
"type": "module",
"scripts": {
"start": "concurrently npm:frontend npm:proxy --prefix-colors cyan,green",
"frontend": "webpack serve --mode development --env awx_route_prefix='/ui_next' --env hub_route_prefix='/hub' --env eda_route_prefix='/eda'",
"awx": "PRODUCT='AWX' webpack serve --config ./webpack.awx.cjs --mode development --env awx --env awx_route_prefix='/ui_next'",
"hub": "PRODUCT='Galaxy' webpack serve --config ./webpack.hub.cjs --mode development --env hub --env hub_route_prefix='/hub'",
"eda": "PRODUCT='Event Driven Automation' webpack serve --config ./webpack.eda.cjs --mode development --env eda --env eda_route_prefix='/eda'",
"proxy": "NODE_ENV=development PORT=3001 nodemon --watch './proxy/**/*.ts' --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm/transpile-only' proxy/main.ts | pino-zen",
"build": "npm run clean && concurrently --kill-others-on-fail npm:build:frontend npm:build:proxy --prefix-colors cyan,green,blue,magenta,gray",
"build:proxy": "cd proxy && rollup --config rollup.config.ts --configPlugin typescript",
"build:frontend": "webpack --mode production --env pwa",
"build:awx": "webpack --mode production --env awx --env awx_route_prefix='/ui_next' --output-path build/awx && mv build/awx/index.html build/awx/index_awx.html",
"build:hub": "webpack --mode production --env hub --output-path build/hub",
"build:eda": "webpack --mode production --env eda --output-path build/eda",
"clean": "rm -rf build coverage .nyc_output",
"test": "concurrently --kill-others-on-fail npm:tsc npm:eslint npm:prettier npm:cypress:run:component --prefix-colors cyan,green,blue,magenta,gray",
"tsc": "tsc --noEmit",
"eslint": "eslint --max-warnings=0 frontend proxy framework cypress",
"eslint:fix": "eslint --fix frontend proxy 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 proxy framework cypress",
"prettier:fix": "prettier --write frontend proxy framework cypress locales",
"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 ",
"docker:build": "docker build --tag ansible-ui .",
"docker:run": "docker run --name ansible-ui -d -e LOG_LEVEL=debug -p 3002:3002 -e PORT=3002 ansible-ui",
"docker:rm": "docker rm ansible-ui",
"docker:build:eda": "docker build --target eda-ui --tag eda-ui .",
"docker:run:eda": "docker run --name eda-ui --rm -e LOG_LEVEL=debug -p 3002:3002 -e PORT=3002 eda-ui",
"cypress:run": "concurrently npm:cypress:run:awx npm:cypress:run:eda npm:cypress:run:component --prefix-colors cyan,blue,green",
"cypress:run:e2e": "cypress run --e2e",
"cypress:run:awx": "cypress run --e2e --spec=cypress/e2e/awx/**/*.cy.ts",
"cypress:run:eda": "cypress run --e2e --spec=cypress/e2e/eda/**/*.cy.ts",
"cypress:run:component": "cypress run --component",
"cypress:open": "cypress open --browser chrome",
"coverage": "open coverage/lcov-report/index.html",
"cypress: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"
},
"dependencies": {
"@babel/core": "7.22.5",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/preset-react": "7.22.5",
"@babel/preset-typescript": "7.22.5",
"@patternfly/patternfly": "4.224.5",
"@patternfly/react-charts": "6.94.21",
"@patternfly/react-core": "4.276.10",
"@patternfly/react-icons": "4.93.7",
"@patternfly/react-table": "4.113.2",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@react-hook/resize-observer": "1.2.6",
"@rollup/plugin-commonjs": "25.0.1",
"@rollup/plugin-node-resolve": "15.1.0",
"@rollup/plugin-replace": "5.0.2",
"@rollup/plugin-strip": "3.0.2",
"@rollup/plugin-typescript": "11.1.1",
"@svgr/webpack": "8.0.1",
"@types/cookie": "0.5.1",
"@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.0",
"@types/mini-css-extract-plugin": "2.5.0",
"@types/node": "20.3.0",
"@types/react": "18.2.11",
"@types/react-dom": "18.2.4",
"@types/react-router-dom": "5.3.3",
"@types/styled-components": "5.1.26",
"@types/uuid": "9.0.2",
"@types/webpack": "5.28.1",
"@types/webpack-dev-server": "4.7.1",
"anser": "2.1.1",
"axios": "1.4.0",
"babel-loader": "9.1.2",
"babel-plugin-istanbul": "6.1.1",
"babel-plugin-styled-components": "2.1.3",
"babel-plugin-transform-class-properties": "6.24.1",
"browserify-fs": "1.0.0",
"concurrently": "8.2.0",
"cookie": "0.5.0",
"copy-webpack-plugin": "11.0.0",
"coverage-istanbul-loader": "3.0.5",
"cpy": "10.1.0",
"cpy-cli": "4.2.0",
"css-loader": "6.8.1",
"css-minimizer-webpack-plugin": "5.0.0",
"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.0.2",
"i18next-http-backend": "2.2.1",
"idb": "7.1.1",
"js-yaml": "4.1.0",
"ky": "0.33.3",
"luxon": "3.3.0",
"merge-jsons-webpack-plugin": "2.0.1",
"mini-css-extract-plugin": "2.7.6",
"monaco-editor": "0.38.0",
"monaco-editor-webpack-plugin": "7.0.1",
"monaco-yaml": "4.0.4",
"node-util": "0.0.6",
"os-browserify": "0.3.0",
"p-limit": "4.0.0",
"path-browserify": "1.0.1",
"pino": "8.14.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "7.44.3",
"react-i18next": "11.18.6",
"react-json-chart-builder": "1.14.3",
"react-refresh": "0.14.0",
"react-router-dom": "6.12.1",
"react-use-websocket": "4.3.1",
"rollup": "3.25.1",
"selfsigned": "2.1.1",
"stream-browserify": "3.0.0",
"style-loader": "3.3.3",
"styled-components": "5.3.11",
"swr": "2.1.5",
"type-fest": "3.11.1",
"typescript": "4.9.5",
"typescript-plugin-styled-components": "2.0.0",
"uuid": "9.0.0",
"vite": "4.3.9",
"webpack": "5.86.0",
"webpack-cli": "5.1.4",
"workbox-webpack-plugin": "6.6.0",
"ws": "8.13.0",
"yaml": "2.3.1"
},
"devDependencies": {
"@cypress/code-coverage": "3.10.7",
"@types/js-yaml": "4.0.5",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"cypress": "12.14.0",
"cypress-react-selector": "3.0.0",
"eslint": "8.42.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-i18next": "6.0.2",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "8.0.3",
"nodemon": "2.0.22",
"pino-zen": "2.0.8",
"prettier": "2.8.8",
"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"
]
}
}