-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
84 lines (84 loc) · 4.95 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
{
"name": "haxtheweb-desktop",
"description": "HAX Electron app to run haxcms-nodejs via desktop app launcher",
"version": "10.0.1",
"main": "./dist/src/main.js",
"icon": "./dist/favicon.ico",
"basePath": "./dist",
"productName": "haxtheweb-desktop",
"author": "HAXTheWeb core team",
"license": "Apache-2.0",
"engines": {
"node": ">=18.20.3"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/haxtheweb/desktop.git"
},
"bugs": {
"url": "https://github.com/haxtheweb/issues/issues"
},
"private": true,
"scripts": {
"start": "npm run build && electron .",
"build": "babel src --out-dir dist/src --copy-files --include-dotfiles",
"release": "npm run build && commit-and-tag-version && git push --follow-tags origin main && npm publish",
"linux": "npm run deb64",
"deb64": "npm run pack-deb64 && electron-installer-debian --src ./builds/haxtheweb-desktop-linux-x64/ --dest ./builds/installers/ --arch amd64",
"pack-deb64": "npm run build && cd .. && npx @electron/packager ./desktop/ haxtheweb-desktop --executable-name=haxtheweb-desktop --out=./desktop/builds --icon=./desktop/dist/src/favicon.ico --ignore=\"^(?!(.*node_modules|.*dist))(.*src.*|.*screenshots.*|.*tsconfig.*|.*_sites.*|.*_published.*|.*_archived.*|.*builds.*|.*README.*|.*git.*)\" --overwrite && cd desktop && npm run fixbuildissue-deb64",
"fixbuildissue-deb64": "rm -rf builds/haxtheweb-desktop-linux-x64/resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build && cp -R node_modules/@haxtheweb/haxcms-nodejs/dist/public/build builds/haxtheweb-desktop-linux-x64/resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build",
"windows": "npm run win32",
"win32": "npm run pack-win32 && electron-installer-windows --src ./builds/haxtheweb-desktop-win32-x64/ --dest ./builds/installers/",
"pack-win32": "npm run build && cd .. && npx @electron/packager ./desktop/ haxtheweb-desktop --executable-name=haxtheweb-desktop --out=./desktop/builds --platform win32 --arch x64 --icon=./desktop/dist/src/favicon.ico --ignore=\"^(?!(.*node_modules|.*dist))(.*src.*|.*screenshots.*|.*tsconfig.*|.*_sites.*|.*_published.*|.*_archived.*|.*builds.*|.*README.*|.*git.*)\" --overwrite && cd desktop && npm run fixbuildissue-win32",
"fixbuildissue-win32": "rm -rf builds/haxtheweb-desktop-win32-x64/resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build && cp -R node_modules/@haxtheweb/haxcms-nodejs/dist/public/build builds/haxtheweb-desktop-win32-x64/resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build",
"osx": "npm run darwin",
"mac": "npm run darwin",
"darwin": "npm run pack-darwin && electron-installer-dmg ./builds/haxtheweb-desktop-darwin-x64/haxtheweb-desktop.app haxtheweb-desktop",
"pack-darwin": "npm run build && cd .. && npx @electron/packager ./desktop/ haxtheweb-desktop --executable-name=haxtheweb-desktop --out=./desktop/builds --platform darwin --arch x64 --icon=./desktop/dist/src/favicon.ico --ignore=\"^(?!(.*node_modules|.*dist))(.*src.*|.*screenshots.*|.*tsconfig.*|.*_sites.*|.*_published.*|.*_archived.*|.*builds.*|.*README.*|.*git.*)\" --overwrite && cd desktop && npm run fixbuildissue-darwin",
"fixbuildissue-darwin": "rm -rf builds/haxtheweb-desktop-darwin-x64/haxtheweb-desktop.app/Contents/Resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build && cp -R node_modules/@haxtheweb/haxcms-nodejs/dist/public/build builds/haxtheweb-desktop-darwin-x64/haxtheweb-desktop.app/Contents/Resources/app/node_modules/@haxtheweb/haxcms-nodejs/dist/public/build"
},
"dependencies": {
"@electron/remote": "2.1.2",
"@haxtheweb/haxcms-nodejs": "^10.0.1",
"archiver": "7.0.1",
"body-parser": "^1.20.2",
"cookie-parser": "1.4.6",
"debug": "^4.3.4",
"dotenv": "16.4.5",
"ejs": "^3.1.9",
"express": "4.19.2",
"fs-extra": "11.2.0",
"git-interface": "2.1.2",
"helmet": "7.1.0",
"http-errors": "^2.0.0",
"jsonwebtoken": "9.0.2",
"locutus": "2.0.32",
"mime": "3.0.0",
"minimist": "1.2.8",
"morgan": "^1.10.0",
"multer": "1.4.5-lts.1",
"node-fetch": "^2.7.0",
"open": "8.4.2",
"serve-favicon": "^2.5.0",
"sharp": "^0.33.4",
"twig": "1.17.1",
"utf8": "3.0.0",
"uuid": "10.0.0",
"yaml": "2.4.5"
},
"devDependencies": {
"@babel/cli": "^7.24.6",
"@babel/core": "^7.24.6",
"@babel/preset-env": "7.24.6",
"@babel/register": "^7.24.6",
"babel-plugin-transform-dynamic-import": "^2.1.0",
"commit-and-tag-version": "12.4.1",
"electron": "^31.1.0",
"electron-installer-debian": "3.2.0",
"electron-installer-dmg": "5.0.1",
"electron-installer-windows": "3.0.0"
}
}