forked from opossum-tool/OpossumUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
184 lines (184 loc) · 7.75 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
{
"name": "opossum-ui",
"description": "The OpossumUI enables the editing of attribution information that is assigned to a resource tree.",
"license": "Apache-2.0",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.9",
"@mui/material": "^5.14.11",
"@mui/system": "^5.14.10",
"@tanstack/react-query": "^4.35.3",
"@types/recharts": "^1.8.24",
"axios": "^1.5.0",
"buffer": "^6.0.3",
"electron-devtools-installer": "^3.2.0",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.8",
"fast-csv": "^4.3.6",
"fflate": "^0.8.1",
"js-yaml": "^4.1.0",
"jsonschema": "^1.4.1",
"lodash": "^4.17.21",
"object-hash": "^3.0.0",
"packageurl-js": "^1.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.1.2",
"react-window": "^1.8.9",
"recharts": "^2.8.0",
"redux": "^4.2.1",
"redux-thunk": "^2.4.2",
"spdx-license-ids": "^3.0.15",
"stream-json": "^1.8.0",
"upath": "^2.0.1",
"url": "^0.11.3",
"uuid": "^9.0.1",
"write-file-atomic": "^5.0.1"
},
"devDependencies": {
"@babel/preset-env": "^7.22.20",
"@playwright/test": "^1.38.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.3",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/electron-devtools-installer": "^2.2.3",
"@types/jest": "^29.5.5",
"@types/js-yaml": "^4.0.6",
"@types/lodash": "^4.14.199",
"@types/object-hash": "^3.0.4",
"@types/react": "^18.2.23",
"@types/react-dom": "^18.2.7",
"@types/react-window": "^1.8.5",
"@types/stream-json": "^1.7.3",
"@types/uuid": "^9.0.4",
"@types/write-file-atomic": "^4.0.1",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-react": "^4.1.0",
"axios-mock-adapter": "^1.22.0",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"electron": "^26.2.2",
"electron-builder": "^24.6.4",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-jest-dom": "^5.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^6.0.2",
"husky": "8.0.3",
"jest": "^29.7.0",
"jest-each": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^14.0.1",
"mockdate": "^3.0.5",
"nunjucks": "^3.2.4",
"prettier": "^3.0.3",
"redux-devtools-extension": "^2.13.9",
"run-script-os": "^1.1.6",
"start-server-and-test": "^2.0.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-plugin-electron": "^0.14.1",
"vite-plugin-svgr": "^4.0.0",
"vite-tsconfig-paths": "^4.2.1"
},
"scripts": {
"start": "run-script-os",
"start:darwin:linux": "yarn build:dev; BROWSER=none ESLINT_NO_DEV_ERRORS=true vite",
"start:win32": "yarn build:dev & cross-env BROWSER=none ESLINT_NO_DEV_ERRORS=true vite",
"build:dev": "run-script-os",
"build:dev:darwin:linux": "yarn generate-notice && DISABLE_ESLINT_PLUGIN=true tsc -p ./ && vite build && tsc -p src/ElectronBackend",
"build:dev:win32": "yarn generate-notice && cross-env DISABLE_ESLINT_PLUGIN=true tsc -p ./ && vite build && tsc -p src/ElectronBackend",
"build:prod": "yarn generate-notice && tsc -p ./ && vite build && tsc -p src/ElectronBackend",
"compile-all": "tsc -p ./ && tsc --noEmit -p src/ElectronBackend",
"test:unit": "jest --testPathIgnorePatterns=src/e2e-tests --testPathIgnorePatterns=src/Frontend/integration-tests",
"test:local": "jest --testPathIgnorePatterns=src/e2e-tests --testMatch=[ \"**/__tests__/**/*.ts?(x)\" ]",
"test:changed": "jest --onlyChanged",
"test:all": "jest --testPathIgnorePatterns=src/e2e-tests --testMatch=[ \"**/__(tests|tests-ci)__/**/*.ts?(x)\", \"**/?(*.)+(test).ts?(x)\" ] && yarn test:e2e",
"test:integration-ci": "jest src/Frontend/integration-tests --testMatch=[ \"**/__(tests|tests-ci)__/**/*.ts?(x)\", \"**/?(*.)+(test).ts?(x)\" ]",
"test:e2e": "run-script-os",
"test:e2e:darwin:linux": "start-server-and-test \"yarn build:dev; BROWSER=none vite --config src/e2e-tests/vite-e2e-config.ts\" \"http://localhost:5173/\" \"DISPLAY=\"${DISPLAY:-:99}\" RUNNING_IN_E2E_TEST=true npx playwright test src/e2e-tests\"",
"test:e2e:win32": "start-server-and-test \"yarn build:dev & cross-env BROWSER=none vite --config src/e2e-tests/vite-e2e-config.ts\" \"http://localhost:5173/\" \"cross-env RUNNING_IN_E2E_TEST=true DISPLAY=:99 npx playwright test src/e2e-tests\"",
"lint": "eslint -c .eslintrc.js \"src/**/*.{ts,tsx}\" --fix",
"lint-check": "eslint -c .eslintrc.js \"src/**/*.{ts,tsx}\"",
"copyright-lint-check": "reuse lint",
"update-commit-hash": "run-script-os",
"update-commit-hash:darwin:linux": "COMMIT_INFO=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD); echo \"{\\\"commitInfo\\\" : \\\"$COMMIT_INFO\\\" }\" > \"src/commitInfo.json\";\n",
"update-commit-hash:win32": "build_scripts/get_app_version_for_windows.bat",
"generate-dot-opossum": "yarn node example-files/scripts/generateDotOpossum.js",
"generate-notice": "run-script-os",
"generate-notice:darwin:linux": "mkdir -p notices && yarn licenses generate-disclaimer --ignore-platform --production > notices/notices.txt && yarn node build_scripts/generateNotices.js",
"generate-notice:win32": "(if not exist notices (mkdir notices)) && yarn licenses generate-disclaimer --ignore-platform --production > notices/notices.txt && yarn node build_scripts/generateNotices.js",
"ship-linux": "yarn build:prod && electron-builder --linux --x64 --publish never && mkdir -p release/linux && mv 'release/OpossumUI-0.1.0.AppImage' 'release/linux/OpossumUI-for-linux.AppImage'",
"ship-win": "run-script-os",
"ship-win:darwin:linux": "yarn build:prod && electron-builder --win --x64 --publish never && mkdir -p release/win && mv \"release/OpossumUI Setup 0.1.0.exe\" \"release/win/OpossumUI-for-win.exe\"",
"ship-win:win32": "yarn build:prod && electron-builder --win --x64 --publish never && cd release && (if not exist win (mkdir win)) && move \"OpossumUI Setup 0.1.0.exe\" \"win/OpossumUI-for-win.exe\" && cd ..",
"ship-mac": "yarn build:prod && electron-builder --mac --x64 --publish never && zip -r -q 'release/mac/OpossumUI-for-mac.zip' 'release/mac/'",
"ship": "yarn ship-linux && yarn ship-win && yarn ship-mac",
"clean": "rm -rf ./build/ ./release/",
"postinstall": "husky install && yarn update-commit-hash",
"pre-commit": "lint-staged"
},
"main": "build/ElectronBackend/app.js",
"build": {
"productName": "OpossumUI",
"appId": "opossum_ui_electron",
"files": [
"build/**/*",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!build/**/__tests__/**/*"
],
"directories": {
"output": "release"
},
"mac": {
"target": "dmg",
"icon": "public/icons/icon_512x512.png"
},
"win": {
"target": "nsis",
"icon": "public/icons/icon_512x512.png"
},
"linux": {
"target": "AppImage",
"icon": "public/icons/icon_512x512.png"
},
"extraMetadata": {
"main": "build/ElectronBackend/app.js"
},
"extraResources": [
"./notices/**"
]
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
"Chrome 109"
],
"development": [
"Chrome 109"
]
},
"lint-staged": {
"**/*.{ts,tsx}": [
"./run_precommit.sh"
]
},
"resolutions": {
"semver": "^7.5.2"
},
"engines": {
"node": ">=18.0.0"
}
}