-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
202 lines (202 loc) · 8.22 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "xlite",
"version": "1.0.7",
"description": "xlite",
"private": true,
"main": "./dist/server/index.js",
"scripts": {
"start": "electron .",
"start-dev": "electron --remote-debugging-port=9222 .",
"build": "npm run clear-build-directory && npm run copy-static-files && npm run scss && npm run js && npm run js-error",
"watch": "npm run watch-static-files & npm run watch-scss & npm run watch-js",
"test": "npm run test-main && npm run test-renderer",
"test-headless-main": "xvfb-maybe electron-mocha --require @babel/register --color --no-sandbox ./tests/*-tests.js",
"test-headless-renderer": "xvfb-maybe electron-mocha --require @babel/register --color --renderer --no-sandbox ./tests/*-rtests.js",
"test-main": "electron-mocha --require @babel/register --color ./tests/*-tests.js",
"test-renderer": "electron-mocha --require @babel/register --color --renderer ./tests/*-rtests.js",
"js": "babel src/server -d dist/server --verbose && babel src/app -d dist/app --verbose && npm run js-app",
"js-app": "webpack --config-name=mainjs",
"js-error": "webpack --config-name=errorjs",
"watch-js": "babel src/server -d dist/server --watch --verbose & babel src/app -d dist/app --watch --verbose & npm run watch-js-app",
"watch-js-app": "webpack --config-name=mainjs --watch",
"watch-js-error": "webpack --config-name=errorjs --watch",
"scss": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 src/scss/main.scss dist/static/css/main.css",
"watch-scss": "nodemon -w src/scss -e scss -x \"npm run scss\"",
"copy-static-files": "node ./build-scripts/copy-files.js",
"watch-static-files": "nodemon -w src -i app/* -i scss/* -e html,css,scss,js,ttf,ico,jpg,png,svg -x \"npm run copy-static-files\"",
"clear-build-directory": "node ./build-scripts/clear-build-dir.js",
"build-native": "npm run build && node ./native-build-scripts/01-copy-files.js && cd temp && npm install --omit=dev && cd .. && electron-builder --dir",
"build-native-win": "npm run build && node ./native-build-scripts/01-copy-files.js win && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --dir --x64 --win nsis zip --publish never",
"build-native-mac": "npm run build && node ./native-build-scripts/01-copy-files.js mac && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --dir --x64 --mac dmg zip --publish never",
"build-native-linux": "npm run build && node ./native-build-scripts/01-copy-files.js linux && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --dir --x64 --linux appImage deb tar.gz --publish never",
"publish-native-win": "cross-env NODE_ENV=production npm run download-binaries-win && npm run build && node ./native-build-scripts/01-copy-files.js win && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --win --publish always",
"publish-native-mac": "cross-env NODE_ENV=production npm run download-binaries-mac && npm run build && node ./native-build-scripts/01-copy-files.js mac && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --publish always",
"publish-native-linux": "cross-env NODE_ENV=production npm run download-binaries-linux && npm run build && node ./native-build-scripts/01-copy-files.js linux && cd temp && npm install --no-audit --omit=dev && cd .. && electron-builder --publish always",
"pack-native": "cross-env NODE_ENV=production npm run build && node ./native-build-scripts/01-copy-files.js && cd temp && npm install --omit=dev && cd .. && electron-builder",
"publish-native": "cross-env NODE_ENV=production npm run build && node ./native-build-scripts/01-copy-files.js && cd temp && npm install --omit=dev && cd .. && electron-builder --publish always",
"download-binaries": "npm run download-binaries-win && npm run download-binaries-linux && npm run download-binaries-mac",
"download-binaries-win": "node ./native-build-scripts/02-download-binaries.js win",
"download-binaries-linux": "node ./native-build-scripts/02-download-binaries.js linux",
"download-binaries-mac": "node ./native-build-scripts/02-download-binaries.js mac",
"generate-docs": "jsdoc -r --destination docs ./src/app"
},
"repository": {
"type": "git",
"url": "git+https://github.com/blocknetdx/xlite.git"
},
"author": "Blocknet <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/blocknetdx/xlite/issues"
},
"homepage": "https://github.com/blocknetdx/xlite#readme",
"devDependencies": {
"@babel/eslint-parser": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-modules-amd": "^7.22.5",
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
"@babel/preset-env": "^7.22.5",
"@babel/preset-react": "^7.22.5",
"@babel/register": "^7.22.5",
"babel-loader": "^9.1.2",
"colors": "^1.4.0",
"cross-env": "^7.0.2",
"electron": "^25.2.0",
"electron-builder": "24.4.0",
"electron-mocha": "^12.0.0",
"eslint": "^8.43.0",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.5",
"extract-zip": "^2.0.1",
"jsdoc": "^4.0.2",
"mocha": "^10.2.0",
"nodemon": "^2.0.4",
"rmrf-promise": "^1.1.0",
"should": "^13.2.3",
"webpack": "^5.88.0",
"webpack-cli": "^5.1.4",
"xvfb-maybe": "^0.2.1"
},
"dependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@popperjs/core": "^2.11.8",
"bootstrap": "^4.5.0",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"dexie": "^3.0.2",
"electron-context-menu": "^3.6.1",
"electron-is-dev": "^2.0.0",
"electron-updater": "^6.1.1",
"follow-redirects": "^1.15.2",
"fs-extra": "^11.1.1",
"immutable": "^4.0.0-rc.12",
"jquery": "^3.7.0",
"lodash": "^4.17.20",
"mathjs": "^11.8.2",
"moment": "^2.27.0",
"node-sass": "^8.0.0",
"prop-types": "^15.7.2",
"qrcode": "^1.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-perfect-scrollbar": "^1.5.8",
"react-redux": "^7.2.0",
"redux": "^4.2.1",
"stream-browserify": "^3.0.0",
"superagent": "^8.0.9",
"sweetalert2": "^11.4.8",
"uuid": "^9.0.0",
"v8": "^0.1.0",
"winston": "^3.9.0"
},
"build": {
"asarUnpack": [
"**/bin/linux/xlite-daemon-linux64",
"**/bin/mac/xlite-daemon-osx64",
"**/bin/win/xlite-daemon-win64.exe",
"**/blockchain-configuration-files/**/*"
],
"electronVersion": "25.2.0",
"appId": "co.blocknet.xlite",
"productName": "XLite",
"artifactName": "XLite-${version}-${os}.${ext}",
"copyright": "Copyright © 2020-2023 Blocknet",
"directories": {
"app": "temp",
"output": "dist-native"
},
"win": {
"artifactName": "XLite-${version}-${os}-${arch}.${ext}",
"verifyUpdateCodeSignature": false,
"target": [
{
"target": "zip",
"arch": [
"x64",
"ia32"
]
},
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
],
"icon": "./src/static/images/favicon.ico",
"publish": {
"provider": "github",
"releaseType": "draft"
}
},
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.utilities",
"icon": "./src/static/images/favicon.icns",
"gatekeeperAssess": false,
"publish": {
"provider": "github",
"releaseType": "draft"
}
},
"linux": {
"target": [
{
"target": "appImage",
"arch": [
"x64"
]
},
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "tar.gz",
"arch": [
"x64"
]
}
],
"icon": "./src/static/images/linux/",
"synopsis": "Copyright © 2020-2023 Blocknet",
"description": "Copyright © 2020-2023 Blocknet",
"category": "Utility",
"desktop": {
"Name": "XLite",
"StartupWMClass": "xlite"
},
"publish": {
"provider": "github",
"releaseType": "draft"
}
}
}
}