-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
145 lines (145 loc) · 5.88 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
{
"scripts": {
"postinstall": "yarn build-transpile && electron-builder install-app-deps",
"unbinaries": "rm -rf binaries && mkdir -p binaries/mac/intel binaries/mac/arm binaries/win/intel binaries/win/arm binaries/linux/intel binaries/linux/arm",
"unbuild": "rm -rf build/*",
"uncache": "rm -rf cache/electron/* cache/electron-builder/*",
"undist": "rm -rf dist/*",
"undocker": "run-s -l unbuild uncache unelectron",
"unerror": "rm -rf yarn-error.log",
"unelectron": "rm -rf public/electron.js && rm -rf electron.js && rm -rf preload.js",
"uninstall": "rm -rf yarn.lock && rm -rf node_modules",
"clean": "run-p -l unbinaries uncache undist unelectron unerror",
"reinstall": "yarn clean && yarn uninstall && yarn",
"pretty": "node node_modules/.bin/prettier --write .",
"tsc-build": "tsc public/electron.ts",
"tsc-dev": "cp public/preload.js . && cp public/electron.ts . && tsc electron.ts -w",
"react-start": "react-scripts start",
"react-dev": "cross-env BROWSER=none yarn react-start",
"electron-dev": "sleep 15 && wait-on http://localhost:3000 && cross-env NODE_ENV=development electron .",
"develop": "cross-env NODE_ENV=development run-p -l tsc-dev react-dev electron-dev",
"react-test": "react-scripts test --env=jsdom",
"react-test-coverage": "react-scripts test --coverage --env=jsdom",
"react-eject": "echo 'WARNING: THIS PROCESS CANNOT BE REVERSED - GIT COMMIT FIRST SO YOU CAN ROLL BACK' && echo && echo 'if you really hate create-react-app this much, manually run:' && echo && echo ' react-scripts eject' && echo",
"react-build": "IMAGE_INLINE_SIZE_LIMIT=0 react-scripts build",
"build-transpile": "run-s unbuild tsc-build react-build",
"warning:mac-only": "echo && echo 'CRATE warning: This script will only function on macOS' && echo",
"dist:web": "cp src/scripts/tsnode/tsconfig.json . && yarn undist && npx ts-node src/scripts/utility/webzip.ts",
"dist:linux-intel64": "yarn undist && cross-env NODE_ENV=production electron-builder -l -c ./electron-configs/linux-intel-64.yml && mv dist/*.AppImage binaries/linux/intel/",
"dist:linux-arm64": "yarn undist && cross-env NODE_ENV=production electron-builder -l -c ./electron-configs/linux-arm-64.yml && mv dist/*.AppImage binaries/linux/arm/",
"dist:linux": "run-s dist:linux-intel64 dist:linux-arm64",
"dist:mac-intel64": "yarn undist && cross-env NODE_ENV=production electron-builder -m -c ./electron-configs/mac-intel-64.yml && mv dist/*.dmg binaries/mac/intel/",
"dist:mac-arm64": "yarn undist && cross-env NODE_ENV=production electron-builder -m -c ./electron-configs/mac-arm-64.yml && mv dist/*.dmg binaries/mac/arm/",
"dist:mac": "run-s dist:mac-intel64 dist:mac-arm64",
"dist:win-intel64": "yarn undist && cross-env NODE_ENV=production electron-builder -w -c ./electron-configs/win-intel-64.yml && mv dist/*.exe binaries/win/intel/",
"dist:win-arm64": "yarn undist && cross-env NODE_ENV=production electron-builder -w -c ./electron-configs/win-arm-64.yml && mv dist/*.exe binaries/win/arm/",
"dist:win": "run-s dist:win-intel64 dist:win-arm64",
"dist:all": "run-s -l warning:mac-only clean build-transpile dist:web dist:linux dist:mac dist:win",
"postdist:all": "say 'All distributables output to binaries directory.'"
},
"name": "your-package-name",
"productName": "YOUR_PRODUCT_NAME",
"description": "YOUR_APPLICATION_DESCRIPTON",
"keywords": [
"typescript 4",
"react 17",
"material-ui 5",
"electron 12",
"boilerplate",
"cross-platform",
"macOS arm",
"Apple Silicon",
"macOS amd64",
"Apple Intel",
"linux arm",
"linux amd64",
"Windows arm",
"Windows amd64"
],
"version": "0.1.0",
"buildVersion": "0.1.0",
"main": "electron.js",
"homepage": ".",
"author": "YOUR_NAME <YOUR_EMAIL_ADDRESS> (https://github.com/YOUR_GITHUB_USER)",
"copyright": "© 2021 YOUR_NAME",
"private": true,
"dependencies": {
"@material-ui/core": "next",
"@material-ui/icons": "next",
"@material-ui/styles": "next",
"@emotion/react": "latest",
"@emotion/styled": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "latest"
},
"devDependencies": {
"@testing-library/jest-dom": "latest",
"@testing-library/react": "latest",
"@types/electron-devtools-installer": "latest",
"@types/file-saver": "latest",
"@types/jest": "latest",
"@types/material-ui": "latest",
"@types/node": "latest",
"@types/prettier": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"cross-env": "latest",
"electron": "latest",
"electron-builder": "latest",
"electron-devtools-installer": "latest",
"electron-is-dev": "latest",
"npm-run-all": "latest",
"open": "latest",
"prettier": "latest",
"ts-jest": "latest",
"ts-node": "latest",
"typescript": "latest",
"wait-on": "latest",
"yaml-validator": "latest"
},
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverage": true,
"coverageReporters": [
"lcov"
],
"coverageDirectory": "coverage",
"coverageThreshold": {
"global": {
"branches": 0,
"functions": 0,
"lines": 0,
"statements": 0
}
},
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
],
"moduleNameMapper": {
"\\.(css)$": "<rootDir>/src/typings/css.d.ts",
"\\.(jpg)$": "<rootDir>/src/typings/jpg.d.ts",
"\\.(png)$": "<rootDir>/src/typings/png.d.ts"
}
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}