-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
68 lines (68 loc) · 2.53 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
{
"name": "@sasjs/electron",
"description": "Electron app with @sasjs/server and @sasjs/react-seed-app",
"main": "build/electron/app.js",
"version": "0.0.1",
"scripts": {
"start:electron": "npm run build:electron && ELECTRON_START_URL=http://localhost:3000 && electron build/electron/app.js",
"prepare:build:folders": "rimraf build && mkdir build && cd build && mkdir server && mkdir react-seed-app",
"build:electron": "tsc && cp electron/preload.js build/electron && cp electron/getSasPath.html build/electron",
"build:server:api": "cd server/web && npm ci && npm run build && cd ../api && npm ci && npm run exe && cp ../executables/api-win.exe ../../build/server",
"build:react-seed-app": "cd react-seed-app && npm ci && npm run build && cp -r build ../build/react-seed-app && npx sasjs cb -t electron && mkdir ../build/react-seed-app/sasjsbuild && cp sasjsbuild/electron.json ../build/react-seed-app/sasjsbuild",
"build": "npm ci && npm run prepare:build:folders && npm run build:electron && npm run build:server:api && npm run build:react-seed-app",
"package:win:64": "electron-builder build --win --x64 -c.extraMetadata.main=build/electron/app.js",
"prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true",
"lint:fix": "npx prettier --write \"electron/**/*.{ts,tsx,js,jsx,html,css,sass,less,json,yml,md,graphql}\"",
"lint": "npx prettier --check \"electron/**/*.{ts,tsx,js,jsx,html,css,sass,less,json,yml,md,graphql}\"",
"test": "jest --config=jest.config.js --coverage"
},
"build": {
"appId": "sasjs/electron",
"productName": "sasjs/electron",
"files": [
"build/**/*",
"node_modules/**/*"
],
"directories": {
"buildResources": "assets"
},
"nsis": {
"deleteAppDataOnUninstall": true,
"oneClick": false
},
"asar": false
},
"publishConfig": {
"access": "public"
},
"release": {
"branches": [
"main"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/sasjs/electron.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/sasjs/electron/issues"
},
"homepage": "https://electron.sasjs.io",
"devDependencies": {
"@types/electron": "1.6.10",
"@types/jest": "29.2.3",
"electron": "21.2.3",
"electron-builder": "23.6.0",
"jest": "29.3.1",
"ts-jest": "29.0.3",
"typescript": "4.9.3"
},
"dependencies": {
"@sasjs/utils": "2.51.0",
"axios": "1.2.1",
"electron-log": "4.4.8",
"rimraf": "3.0.2"
}
}