|
3 | 3 | "version": "1.0.0",
|
4 | 4 | "description": "",
|
5 | 5 | "keywords": [],
|
6 |
| - "main": "src/index.js", |
| 6 | + "main": "public/electron.js", |
| 7 | + "homepage": "./", |
7 | 8 | "dependencies": {
|
8 | 9 | "@emotion/core": "10.0.21",
|
9 | 10 | "@testing-library/jest-dom": "4.1.2",
|
10 | 11 | "@testing-library/react": "9.3.0",
|
| 12 | + "electron-is-dev": "^1.1.0", |
11 | 13 | "firebase": "6.6.1",
|
12 | 14 | "firebase-tools": "7.6.1",
|
13 | 15 | "lodash": "4.17.15",
|
|
19 | 21 | "recharts": "1.8.3"
|
20 | 22 | },
|
21 | 23 | "devDependencies": {
|
22 |
| - "typescript": "3.3.3" |
| 24 | + "@rescripts/cli": "^0.0.13", |
| 25 | + "@rescripts/rescript-env": "^0.0.11", |
| 26 | + "concurrently": "^5.0.0", |
| 27 | + "electron": "^7.1.1", |
| 28 | + "electron-builder": "^22.1.0", |
| 29 | + "typescript": "^3.7.2", |
| 30 | + "wait-on": "^3.3.0" |
23 | 31 | },
|
24 | 32 | "scripts": {
|
25 | 33 | "install": "cd functions && yarn",
|
26 |
| - "start": "react-scripts start", |
27 |
| - "build": "react-scripts build", |
28 |
| - "test": "react-scripts test --env=jsdom", |
| 34 | + "start": "rescripts start", |
| 35 | + "build": "rescripts build", |
| 36 | + "test": "rescripts test", |
29 | 37 | "eject": "react-scripts eject",
|
| 38 | + "postinstall": "electron-builder install-app-deps", |
| 39 | + "preelectron-pack": "yarn build", |
| 40 | + "electron-pack": "build -mw", |
| 41 | + "electron-dev": "concurrently \"BROWSER=none yarn start\" \"wait-on http://localhost:3000 && electron .\"", |
30 | 42 | "firebase": "firebase",
|
31 | 43 | "deploy": "yarn firebase deploy"
|
32 | 44 | },
|
33 |
| - "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"] |
| 45 | + "browserslist": [ |
| 46 | + ">0.2%", |
| 47 | + "not dead", |
| 48 | + "not ie <= 11", |
| 49 | + "not op_mini all" |
| 50 | + ], |
| 51 | + "author": { |
| 52 | + "name": "Your Name", |
| 53 | + |
| 54 | + "url": "https://your-website.com" |
| 55 | + }, |
| 56 | + "build": { |
| 57 | + "appId": "com.my-website.my-app", |
| 58 | + "productName": "MyApp", |
| 59 | + "copyright": "Copyright © 2019 ${author}", |
| 60 | + "mac": { |
| 61 | + "category": "public.app-category.utilities" |
| 62 | + }, |
| 63 | + "files": [ |
| 64 | + "build/**/*", |
| 65 | + "node_modules/**/*" |
| 66 | + ], |
| 67 | + "directories": { |
| 68 | + "buildResources": "assets" |
| 69 | + } |
| 70 | + } |
34 | 71 | }
|
0 commit comments