forked from opossum-tool/OpossumUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
173 lines (173 loc) · 7.77 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
{
"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.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.3",
"@mui/material": "^5.10.5",
"@mui/system": "^5.10.5",
"@tanstack/react-query": "^4.3.4",
"axios": "^0.27.2",
"electron-devtools-installer": "^3.2.0",
"electron-is-dev": "^2.0.0",
"electron-log": "^4.4.8",
"fast-csv": "^4.3.6",
"js-yaml": "^4.1.0",
"jsonschema": "^1.4.1",
"lodash": "^4.17.21",
"object-hash": "^3.0.0",
"packageurl-js": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.2",
"react-window": "^1.8.7",
"redux": "^4.2.0",
"redux-thunk": "^2.4.1",
"spdx-license-ids": "^3.0.12",
"stream-json": "^1.7.4",
"upath": "^2.0.1",
"url": "^0.11.0",
"uuid": "^9.0.0",
"write-file-atomic": "^4.0.2"
},
"devDependencies": {
"@playwright/test": "^1.25.2",
"@testing-library/dom": "^8.17.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/electron-devtools-installer": "^2.2.2",
"@types/js-yaml": "^4.0.5",
"@types/lodash": "^4.14.185",
"@types/object-hash": "^2.2.1",
"@types/react": "^18.0.19",
"@types/react-dom": "^18.0.6",
"@types/react-window": "^1.8.5",
"@types/stream-json": "^1.7.2",
"@types/uuid": "^8.3.4",
"@types/write-file-atomic": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"axios-mock-adapter": "^1.21.2",
"concurrently": "^7.4.0",
"cross-env": "^7.0.3",
"electron": "^20.1.3",
"electron-builder": "^23.3.3",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^5.6.4",
"husky": "8.0.1",
"jest-each": "^29.0.3",
"lint-staged": "^13.0.3",
"mockdate": "^3.0.5",
"nunjucks": "^3.2.3",
"playwright": "^1.25.2",
"prettier": "^2.7.1",
"react-scripts": "5.0.1",
"redux-devtools-extension": "^2.13.9",
"run-script-os": "^1.1.6",
"setimmediate": "^1.0.5",
"typescript": "^4.8.3",
"wait-on": "^6.0.1"
},
"scripts": {
"start": "run-script-os",
"start:darwin:linux": "concurrently \"yarn build:dev; BROWSER=none ESLINT_NO_DEV_ERRORS=true react-scripts start\" \"wait-on http://127.0.0.1:3000 && electron .\"",
"start:win32": "concurrently \"yarn build:dev & cross-env BROWSER=none ESLINT_NO_DEV_ERRORS=true react-scripts start\" \"wait-on http://127.0.0.1:3000 && electron .\"",
"build:dev": "run-script-os",
"build:dev:darwin:linux": "yarn generate-notice && DISABLE_ESLINT_PLUGIN=true react-scripts build && tsc -p src/ElectronBackend",
"build:dev:win32": "yarn generate-notice && cross-env DISABLE_ESLINT_PLUGIN=true react-scripts build && tsc -p src/ElectronBackend",
"build:prod": "yarn generate-notice && react-scripts build && tsc -p src/ElectronBackend",
"compile-all": "tsc -p ./ && tsc --noEmit -p src/ElectronBackend",
"test:unit": "react-scripts test --watchAll=false --setupFilesAfterEnv=./setupTests.ts --testPathIgnorePatterns=src/e2e-tests --testPathIgnorePatterns=src/Frontend/integration-tests",
"test:local": "react-scripts test --watchAll=false src/ --setupFilesAfterEnv=./setupTests.ts --testPathIgnorePatterns=src/e2e-tests --testMatch=[ \"**/__tests__/**/*.ts?(x)\" ]",
"test:changed": "react-scripts test --watchAll=false --setupFilesAfterEnv=./setupTests.ts --onlyChanged",
"test:all": "react-scripts test --watchAll=false src/ --setupFilesAfterEnv=./setupTests.ts --testPathIgnorePatterns=src/e2e-tests --testMatch=[ \"**/__(tests|tests-ci)__/**/*.ts?(x)\", \"**/?(*.)+(test).ts?(x)\" ] && yarn test:e2e",
"test:integration-ci": "react-scripts test --watchAll=false src/Frontend/integration-tests --setupFilesAfterEnv=./setupTests.ts --testMatch=[ \"**/__(tests|tests-ci)__/**/*.ts?(x)\", \"**/?(*.)+(test).ts?(x)\" ]",
"test:e2e": "run-script-os",
"test:e2e:darwin:linux": "concurrently -s first -k true \"yarn build:dev; BROWSER=none react-scripts start\" \"wait-on http://127.0.0.1:3000 && react-scripts test --watchAll=false --detectOpenHandles --forceExit src/e2e-tests\"",
"test:e2e:win32": "concurrently -s first -k true \"yarn build:dev & cross-env BROWSER=none react-scripts start\" \"wait-on http://127.0.0.1:3000 && react-scripts test --watchAll=false --detectOpenHandles --forceExit 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": "echo {\"commitInfo\" : \"unknown-version\" } > \"src\\commitInfo.json\"",
"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",
"directories": {
"buildResources": "build",
"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 100"
],
"development": [
"Chrome 100"
]
},
"lint-staged": {
"**/*.{ts,tsx}": [
"./run_precommit.sh"
]
},
"jest": {
"resetMocks": false
},
"resolutions": {
"nth-check": "^2.0.1",
"async": "^2.6.4",
"got": "^11.8.5"
},
"engines": {
"node": ">=18.0.0"
}
}