-
Notifications
You must be signed in to change notification settings - Fork 36
/
package.json
117 lines (117 loc) · 4.7 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
{
"name": "lxd-ui",
"version": "0.0.1",
"author": "Canonical Webteam",
"license": "LGPL-3.0-only",
"type": "module",
"scripts": {
"clean": "rm -rf node_modules yarn-error.log *.log build/ .jekyll-metadata .bundle playwright-report test-results haproxy-local.cfg coverage",
"build-html": "cp build/ui/index.html build/index.html",
"build-monaco": "mkdir build/ui/monaco-editor && cp -R node_modules/monaco-editor/min build/ui/monaco-editor",
"build": "npx vite build && yarn build-html && yarn build-monaco",
"format-js-eslint": "eslint 'src/**/*.{json,jsx,tsx,ts}' 'tests/**/*.ts' --fix",
"format-js-prettier": "prettier 'src/**/*.{json,jsx,tsx,ts}' 'tests/**/*.ts' --write",
"format-js": "yarn format-js-eslint && yarn format-js-prettier",
"lint-scss": "stylelint 'src/**/*.scss'",
"lint-js-eslint": "eslint 'src/**/*.{json,tsx,ts}' 'tests/**/*.ts'",
"lint-js-prettier": "prettier 'src/**/*.{json,tsx,ts}' 'tests/**/*.ts' --check",
"lint-js": "tsc --noEmit && yarn lint-js-eslint && yarn lint-js-prettier",
"hooks-add": "husky install",
"hooks-remove": "husky uninstall",
"start": "concurrently --kill-others --raw 'vite --host | grep -v 3000' 'yarn serve'",
"serve": "./entrypoint",
"test-js": "vitest --run",
"test-e2e-edge": "tests/scripts/setup_test && npx playwright test --project chromium:lxd-latest-edge firefox:lxd-latest-edge && tests/scripts/teardown_test",
"test-e2e-5.21-edge": "tests/scripts/setup_test && npx playwright test --project chromium:lxd-5.21-edge firefox:lxd-5.21-edge && tests/scripts/teardown_test",
"test-e2e-5.0-edge": "npx playwright test --project chromium:lxd-5.0-edge firefox:lxd-5.0-edge",
"test-coverage": "yarn test-js-coverage && yarn test-e2e-coverage && yarn test-report-coverage",
"test-js-coverage": "vitest --run --coverage",
"test-e2e-coverage": "rm -rf coverage/playwright* ; PW_TEST_HTML_REPORT_OPEN='never' npx playwright test --project coverage",
"test-report-coverage": "cp coverage/unit/coverage-final.json coverage/playwright/ ; nyc report --reporter html --reporter cobertura --reporter text-summary --temp-dir coverage/playwright --report-dir coverage/playwright-report --exclude 'src/lib/**' --exclude 'src/types/**'"
},
"dependencies": {
"@canonical/react-components": "1.7.3",
"@monaco-editor/react": "4.6.0",
"@tanstack/react-query": "5.63.0",
"axios": "1.7.9",
"cytoscape": "3.30.4",
"cytoscape-popper": "4.0.1",
"formik": "2.4.6",
"js-yaml": "4.1.0",
"lodash.isequal": "4.5.0",
"node-forge": "1.3.1",
"parse-prometheus-text-format": "1.1.1",
"react": "18.3.1",
"react-cytoscapejs": "2.0.0",
"react-dom": "18.3.1",
"react-router-dom": "7.1.1",
"react-useportal": "1.0.19",
"serve": "14.2.4",
"vanilla-framework": "4.18.5",
"xterm": "5.3.0",
"xterm-addon-fit": "0.8.0",
"yup": "1.6.1"
},
"devDependencies": {
"@babel/eslint-parser": "7.25.9",
"@babel/preset-react": "7.26.3",
"@babel/preset-typescript": "7.26.0",
"@canonical/typescript-config-react": "0.4.0-experimental.0",
"@playwright/test": "1.49.1",
"@types/convert-source-map": "2.0.3",
"@types/cytoscape-popper": "2.0.4",
"@types/dotenv": "8.2.3",
"@types/lodash.isequal": "4.5.8",
"@types/node-forge": "1.3.11",
"@types/react": "18.3.18",
"@types/react-dom": "18.3.5",
"@types/react-router-dom": "5.3.3",
"@types/websocket": "1.0.10",
"@typescript-eslint/eslint-plugin": "8.19.1",
"@typescript-eslint/parser": "8.19.1",
"@vitejs/plugin-react": "4.3.4",
"@vitest/coverage-istanbul": "2.1.8",
"autoprefixer": "10.4.20",
"babel-plugin-istanbul": "7.0.0",
"concurrently": "9.1.2",
"convert-source-map": "2.0.0",
"eslint": "9.17.0",
"dotenv": "16.4.7",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.3",
"husky": "9.1.7",
"lint-staged": "15.3.0",
"monaco-editor": "0.52.2",
"nyc": "17.1.0",
"postcss": "8.4.49",
"postcss-cli": "11.0.0",
"prettier": "3.4.2",
"sass": "1.83.1",
"stylelint": "16.12.0",
"stylelint-config-standard-scss": "14.0.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.2",
"stylelint-scss": "6.10.0",
"typescript": "5.7.3",
"v8-to-istanbul": "9.3.0",
"vite": "6.0.7",
"vite-plugin-istanbul": "6.0.2",
"vite-tsconfig-paths": "5.1.4",
"vitest": "2.1.8"
},
"lint-staged": {
"src/**/*.{json,jsx,ts,tsx}": [
"eslint",
"prettier --check"
],
"tests/**/*.{json,jsx,ts,tsx}": [
"eslint",
"prettier --check"
],
"src/**/*.scss": "stylelint"
},
"resolutions": {
"path-to-regexp": "8.2.0"
}
}