|
1 | 1 | {
|
2 |
| - "name": "MyDiceBot", |
3 |
| - "version": "19.8.21", |
| 2 | + "name": "mydicebot-browser-190919", |
| 3 | + "version": "1.0.0", |
4 | 4 | "description": "MyDiceBot - Bet more, earn more!",
|
5 | 5 | "homepage": "https://mydicebot.com",
|
6 | 6 | "author": "MyDiceBot <mydicebot.com@gmail.com>",
|
7 |
| - "main": "main.js", |
| 7 | + "main": "index_pkg.js", |
| 8 | + "pkg": { |
| 9 | + "assets": [ |
| 10 | + "views/**/*", |
| 11 | + "public/**/*" |
| 12 | + ], |
| 13 | + "scripts": [ |
| 14 | + "public/**/*.js" |
| 15 | + ] |
| 16 | + }, |
8 | 17 | "babel": {
|
9 | 18 | "presets": [
|
10 | 19 | "es2015-node",
|
11 | 20 | "stage-0"
|
12 | 21 | ]
|
13 | 22 | },
|
| 23 | + "bin": { |
| 24 | + "start": "./index_pkg.js" |
| 25 | + }, |
14 | 26 | "dependencies": {
|
15 | 27 | "babel-core": "^6.24.1",
|
16 | 28 | "babel-plugin-transform-builtin-extend": "^1.1.2",
|
17 | 29 | "babel-preset-es2015": "^6.24.1",
|
| 30 | + "babel-preset-stage-0": "^6.24.1", |
| 31 | + "babel-preset-es2015-node": "^6.1.1", |
18 | 32 | "bitcore-message": "^1.0.4",
|
19 | 33 | "body-parser": "^1.10.2",
|
| 34 | + "command-exists": "^1.2.7", |
20 | 35 | "config": "^1.28.1",
|
21 | 36 | "cookie-parser": "^1.3.3",
|
| 37 | + "execa": "^1.0.0", |
22 | 38 | "express": "^4.16.2",
|
23 | 39 | "express-session": "^1.16.1",
|
24 | 40 | "formidable": "^1.2.1",
|
|
27 | 43 | "isomorphic-fetch": "^2.2.1",
|
28 | 44 | "kdbxweb": "https://github.com/keeweb/kdbxweb.git",
|
29 | 45 | "morgan": "^1.5.1",
|
| 46 | + "opn": "^5.4.0", |
30 | 47 | "pug": "^2.0.3",
|
31 | 48 | "request": "^2.88.0",
|
32 |
| - "steem": "^0.7.1", |
33 |
| - "electron-updater": "^4.1.2" |
| 49 | + "steem": "^0.7.1" |
34 | 50 | },
|
35 | 51 | "devDependencies": {
|
36 |
| - "babel-preset-es2015-node": "^6.1.1", |
37 |
| - "babel-preset-stage-0": "^6.24.1", |
38 | 52 | "babel-preset-env": "^1.6.1",
|
39 | 53 | "babel-cli": "^6.24.1",
|
40 |
| - "electron": "^6.0.0", |
41 |
| - "electron-builder": "^20.44.4" |
42 |
| - }, |
43 |
| - "build": { |
44 |
| - "productName": "MyDiceBot", |
45 |
| - "artifactName": "mydicebot-desktop-${version}-${arch}.${ext}", |
46 |
| - "appId": "com.mydicebot.app", |
47 |
| - "directories": { |
48 |
| - "output": "release/electron/builder" |
49 |
| - }, |
50 |
| - "asar": true, |
51 |
| - "files": [ |
52 |
| - "**/*", |
53 |
| - "!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,*.md,LICENSE}", |
54 |
| - "!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}", |
55 |
| - "!**/node_modules/*.d.ts", |
56 |
| - "!**/node_modules/.bin", |
57 |
| - "!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}", |
58 |
| - "!.editorconfig", |
59 |
| - "!**/test/*", |
60 |
| - "!**/tests/*", |
61 |
| - "!build/*", |
62 |
| - "!release/*", |
63 |
| - "!**/._*", |
64 |
| - "!**/{*.min.js.gz, *.min.map}", |
65 |
| - "!*.sh", |
66 |
| - "!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}", |
67 |
| - "!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}", |
68 |
| - "!**/{appveyor.yml,.travis.yml,circle.yml}", |
69 |
| - "!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}", |
70 |
| - "!{app.js,app_pkg.js,cache.js,index.js,index_pkg.js,package.json.electron,package.json.electron.pkg,package.json.web,package.json.pkg,pm2.json}", |
71 |
| - "!config/{development.json,production.json,testing.json}", |
72 |
| - "!views/login.pug.simulator" |
73 |
| - ], |
74 |
| - "extraResources": [ |
75 |
| - { |
76 |
| - "from": "script", |
77 |
| - "to": "../script", |
78 |
| - "filter": [ |
79 |
| - "**/*" |
80 |
| - ] |
81 |
| - }, |
82 |
| - { |
83 |
| - "from": "keepass", |
84 |
| - "to": "../keepass", |
85 |
| - "filter": [ |
86 |
| - "**/*" |
87 |
| - ] |
88 |
| - } |
89 |
| - ], |
90 |
| - "dmg": { |
91 |
| - "contents": [ |
92 |
| - { |
93 |
| - "x": 410, |
94 |
| - "y": 150, |
95 |
| - "type": "link", |
96 |
| - "path": "/Applications" |
97 |
| - }, |
98 |
| - { |
99 |
| - "x": 130, |
100 |
| - "y": 150, |
101 |
| - "type": "file" |
102 |
| - } |
103 |
| - ] |
104 |
| - }, |
105 |
| - "mac": { |
106 |
| - "icon": "build/icons/icon_mac.png", |
107 |
| - "target": "zip" |
108 |
| - }, |
109 |
| - "win": { |
110 |
| - "icon": "build/icons/icon.ico", |
111 |
| - "target": [ |
112 |
| - { |
113 |
| - "target": "nsis", |
114 |
| - "arch": [ |
115 |
| - "x64", |
116 |
| - "ia32" |
117 |
| - ] |
118 |
| - } |
119 |
| - ] |
120 |
| - }, |
121 |
| - "linux": { |
122 |
| - "icon": "build/icons", |
123 |
| - "category": "Utility", |
124 |
| - "target": [ |
125 |
| - "AppImage" |
126 |
| - ] |
127 |
| - }, |
128 |
| - "publish": [ |
129 |
| - { |
130 |
| - "provider": "github", |
131 |
| - "owner": "mydicebot", |
132 |
| - "repo": "mydicebot.github.io", |
133 |
| - "protocol": "https" |
134 |
| - } |
135 |
| - ] |
| 54 | + "pkg": "^4.3.7" |
136 | 55 | },
|
137 | 56 | "scripts": {
|
138 | 57 | "test": "node test.js",
|
139 | 58 | "dev": "pm2-dev pm2.json",
|
140 |
| - "start": "pm2-docker pm2.json", |
141 |
| - "electron-packager-linux": "./build/node_modules/.bin/electron-packager . --overwrite --platform=linux --arch=x64 --out=release/electron/package --ignore=build/ --ignore=release/ --ignore=test/ --ignore=.git/ --ignore=.sh --app-version=0 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
142 |
| - "electron-packager-darwin": "./build/node_modules/.bin/electron-packager . --overwrite --platform=darwin --arch=x64 --out=release/electron/package --ignore=.git/ --ignore=build/ --ignore=release/ --ignore=test/ --ignore=.sh --app-version=0 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
143 |
| - "electron-packager-win32": "./build/node_modules/.bin/electron-packager . --overwrite --platform=win32 --arch=x64 --out=release/electron/package --ignore=.git/ --ignore=build/ --ignore=release/ --ignore=test/ --ignore=.sh --app-version=0 --electron-version=$(./build/node_modules/.bin/electron -v | cut -c 2-)", |
144 |
| - "pack": "electron-builder --dir", |
145 |
| - "dist": "electron-builder --linux --ia32 --x64 --armv7l --arm64", |
146 |
| - "win-dist": "electron-builder --win --x64 --ia32", |
147 |
| - "mac-dist": "electron-builder --mac" |
| 59 | + "start": "pm2-docker pm2.json" |
148 | 60 | },
|
149 | 61 | "license": "MIT"
|
150 | 62 | }
|
0 commit comments