-
Notifications
You must be signed in to change notification settings - Fork 34
/
package.json
120 lines (120 loc) · 4.84 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
{
"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' .eslintrc.cjs babel.config.js",
"lint-js-prettier": "prettier 'src/**/*.{json,tsx,ts}' 'tests/**/*.ts' .eslintrc.cjs babel.config.js --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.1",
"@monaco-editor/react": "4.6.0",
"@tanstack/react-query": "5.51.23",
"@use-it/event-listener": "0.1.7",
"axios": "1.7.4",
"cytoscape": "3.30.2",
"cytoscape-popper": "2.0.0",
"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": "6.26.0",
"react-useportal": "1.0.19",
"serve": "14.2.3",
"vanilla-framework": "4.18.2",
"xterm": "5.3.0",
"xterm-addon-fit": "0.8.0",
"yup": "1.4.0"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/eslint-parser": "7.25.1",
"@babel/preset-env": "7.25.3",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@playwright/test": "1.46.0",
"@types/convert-source-map": "2.0.3",
"@types/cytoscape-popper": "2.0.4",
"@types/dotenv": "8.2.0",
"@types/lodash.isequal": "^4.5.8",
"@types/node-forge": "1.3.11",
"@types/react": "18.3.3",
"@types/react-cytoscapejs": "1.2.5",
"@types/react-dom": "18.3.0",
"@types/react-router-dom": "5.3.3",
"@types/websocket": "1.0.10",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitejs/plugin-react": "4.3.1",
"@vitest/coverage-istanbul": "1.6.0",
"autoprefixer": "10.4.20",
"babel-plugin-istanbul": "6.1.1",
"concurrently": "8.2.2",
"convert-source-map": "2.0.0",
"eslint": "8.57.0",
"dotenv": "16.4.5",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"husky": "8.0.3",
"lint-staged": "15.2.9",
"monaco-editor": "0.50.0",
"nyc": "^15.1.0",
"postcss": "8.4.41",
"postcss-cli": "11.0.0",
"prettier": "3.3.3",
"sass": "1.79.4",
"stylelint": "16.8.1",
"stylelint-config-standard-scss": "13.1.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.2",
"stylelint-scss": "6.5.0",
"typescript": "5.3.3",
"v8-to-istanbul": "9.3.0",
"vite": "5.4.7",
"vite-plugin-istanbul": "5.0.0",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
},
"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.0.0"
}
}