-
Notifications
You must be signed in to change notification settings - Fork 51
/
package.json
203 lines (203 loc) · 7.49 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
200
201
202
203
{
"name": "maas-ui",
"type": "module",
"version": "3.6.0",
"homepage": "/MAAS/r/",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/canonical/maas-ui.git"
},
"bugs": "https://github.com/canonical/maas-ui/issues",
"scripts": {
"analyze": "npx -y source-map-explorer 'build/static/js/*.js'",
"build-all": "yarn build",
"build": "CYPRESS_INSTALL_BINARY=0 yarn install && vite build --base=/MAAS/r",
"clean-all": "yarn clean",
"clean": "rm -rf node_modules build",
"cleanbuild": "yarn clean-all && yarn build",
"commit": "git-cz",
"cypress-open": "yarn cypress open",
"cypress-run-a11y": "yarn cypress run --config specPattern=cypress/e2e/accessibility/**/*.ts",
"cypress-run-docs": "yarn cypress run --config specPattern=cypress/e2e/docs-links/**/*.ts ",
"cypress-run": "yarn cypress run",
"lint": "npmPkgJsonLint . && eslint src cypress && tsc --project tsconfig.json --noEmit && tsc --project cypress/tsconfig.json --noEmit",
"link-components": "yarn link \"@canonical/react-components\" && yarn link \"react\" && yarn install",
"percy": "./cypress/percy.sh",
"release": "yarn clean && yarn install && CI=true yarn test && yarn build && yarn version --new-version",
"serve-proxy": "nodemon ./scripts/proxy.js",
"serve-react": "vite --host",
"serve-static-demo": "STATIC_DEMO=true PROXY_PORT=80 nodemon ./scripts/proxy.js",
"serve": "vite preview",
"show-ready": "wait-on http-get://0.0.0.0:8401 && nodemon ./scripts/proxy-ready.js",
"sitespeed:ci": "docker run -v \"$(pwd)/sitespeed.io:/sitespeed.io\" --network=host sitespeedio/sitespeed.io:25.2.1 --config /sitespeed.io/config.json /sitespeed.io/scripts/machines.js --multi --spa",
"sitespeed": "docker run -v \"$(pwd)/sitespeed.io:/sitespeed.io\" --add-host=host.docker.internal:host-gateway sitespeedio/sitespeed.io:25.2.1 --config /sitespeed.io/config.json /sitespeed.io/scripts/machines.js --multi --spa --browsertime.domain=host.docker.internal --browsertime.port=8400 --browsertime.iterations=1",
"start": "concurrently \"yarn serve-proxy\" \"yarn serve-react\" \"yarn show-ready\"",
"test-cypress": "start-server-and-test start '8401' serve-base 'tcp:8400' cypress-run",
"test-ui": "TZ=UTC vitest",
"test:debug": "vitest --inspect-brk test --runInBand --no-cache --testTimeout=100000000",
"test": "yarn test-ui",
"test-coverage": "yarn test-ui -- --coverage",
"test:ci": "yarn test-coverage",
"unlink-components": "yarn unlink react && yarn unlink \"@canonical/react-components\"",
"wait-on-ui": "wait-on http-get://0.0.0.0:8400/MAAS/r",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"dependencies": {
"@canonical/maas-react-components": "1.28.0",
"@canonical/macaroon-bakery": "1.3.2",
"@canonical/react-components": "0.55.0",
"@redux-devtools/extension": "3.3.0",
"@reduxjs/toolkit": "1.9.7",
"@sentry/browser": "5.30.0",
"@vitejs/plugin-react-swc": "3.6.0",
"classnames": "2.5.1",
"clone-deep": "4.0.1",
"date-fns": "2.30.0",
"date-fns-tz": "2.0.1",
"fast-deep-equal": "3.1.3",
"formik": "2.4.6",
"history": "5.3.0",
"http-proxy-middleware": "2.0.7",
"human-interval": "2.0.1",
"ipaddr.js": "2.2.0",
"is-ip": "5.0.1",
"js-file-download": "0.4.12",
"path-parse": "1.0.7",
"pluralize": "8.0.0",
"re-reselect": "5.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-dropzone": "14.2.3",
"react-ga4": "2.1.0",
"react-redux": "8.1.3",
"react-router-dom": "6.24.0",
"react-storage-hooks": "4.0.1",
"react-useportal": "1.0.19",
"reconnecting-websocket": "4.4.0",
"reduce-reducers": "1.0.4",
"redux": "4.2.1",
"redux-first-history": "5.2.0",
"redux-saga": "1.3.0",
"typed-redux-saga": "1.5.0",
"typescript": "5.4.5",
"vanilla-framework": "4.16.0",
"vite": "5.2.14",
"vite-plugin-svgr": "4.2.0",
"vite-tsconfig-paths": "4.3.2",
"yup": "0.32.11"
},
"devDependencies": {
"@percy/cli": "1.28.8",
"@percy/cypress": "3.1.2",
"@playwright/test": "1.45.0",
"@storybook/addon-a11y": "7.6.19",
"@storybook/addon-essentials": "7.6.19",
"@storybook/addon-interactions": "7.6.19",
"@storybook/addon-links": "7.6.19",
"@storybook/blocks": "7.6.19",
"@storybook/manager-api": "7.6.19",
"@storybook/preset-create-react-app": "7.6.19",
"@storybook/react": "7.6.19",
"@storybook/react-webpack5": "7.6.19",
"@storybook/theming": "7.6.19",
"@tanstack/react-query": "5.45.1",
"@tanstack/react-query-devtools": "5.45.1",
"@testing-library/cypress": "10.0.2",
"@testing-library/dom": "9.3.4",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "14.3.1",
"@testing-library/user-event": "14.5.2",
"@types/classnames": "2.3.1",
"@types/clone-deep": "4.0.4",
"@types/node": "20.12.12",
"@types/path-parse": "1.0.22",
"@types/pluralize": "0.0.33",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@types/react-redux": "7.1.33",
"@types/react-router": "5.1.20",
"@types/react-router-dom": "5.3.3",
"@types/redux-mock-store": "1.0.6",
"@types/redux-saga": "0.10.5",
"@vitest/coverage-istanbul": "1.6.0",
"@welldone-software/why-did-you-render": "8.0.1",
"address": "2.0.2",
"babel-plugin-named-exports-order": "0.0.2",
"colors": "1.4.0",
"concurrently": "8.2.2",
"cooky-cutter": "1.5.4",
"cypress": "13.12.0",
"cypress-axe": "1.5.0",
"cypress-wait-until": "3.0.1",
"dotenv-flow": "4.1.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-react-app": "7.0.1",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-complexity": "1.0.2",
"eslint-plugin-cypress": "3.3.0",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-playwright": "1.6.1",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-storybook": "0.8.0",
"eslint-plugin-unused-imports": "4.0.0",
"formik-devtools-extension": "0.1.8",
"http-proxy-middleware": "2.0.7",
"immer": "10.1.1",
"jsdom": "24.0.0",
"mock-socket": "9.3.1",
"mockdate": "3.0.5",
"msw": "2.3.1",
"nanoid": "5.0.7",
"nodemon": "3.1.3",
"npm-package-json-lint": "8.0.0",
"postcss-normalize": "10.0.1",
"prettier": "3.3.2",
"redux-mock-store": "1.5.4",
"redux-saga-test-plan": "4.0.6",
"sass": "1.77.2",
"start-server-and-test": "2.0.3",
"storybook": "7.6.19",
"timezone-mock": "1.3.6",
"vite-plugin-eslint": "1.8.1",
"vitest": "1.6.0",
"vitest-fetch-mock": "0.2.2",
"wait-on": "7.2.0",
"webpack": "5.91.0"
},
"resolutions": {
"node_modules/@types/react-router-dom/@types/react": "18.3.3",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0"
},
"peerDependencies": {
"@types/react": "18.3.3"
},
"browserslist": {
"production": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"npmpackagejsonlint": {
"rules": {
"prefer-absolute-version-dependencies": "error",
"prefer-absolute-version-devDependencies": "error",
"prefer-alphabetical-dependencies": "error",
"prefer-alphabetical-devDependencies": "error"
}
}
}