This repository was archived by the owner on Jul 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
84 lines (84 loc) · 2.76 KB
/
package.json
File metadata and controls
84 lines (84 loc) · 2.76 KB
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": "react_native_android_ios_web_electron",
"version": "0.0.1",
"license": "MIT",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"build": "source .env && NODE_ENV=production && yarn clean && expo export --public-url $EXPO_APP_PUBLIC_URL && mkdir -p dist-public && rm -Rf dist-public/* && cp -R dist/* dist-public/",
"serve:dist": "mkdir -p dist-public && (yarn serve -l 5201 dist-public > /dev/null 2>&1 &) && ngrok http 5201",
"clean": "rm -Rf dist",
"android": "expo start --android",
"android:build": "source .env && NODE_ENV=production && yarn build && turtle build:android --keystore-path keystore.jks --keystore-alias $EXPO_ANDROID_KEYSTORE_ALIAS --mode release --type apk --public-url $EXPO_APP_PUBLIC_URL/android-index.json",
"ios": "expo start --ios",
"web": "expo start --web",
"web:build": "NODE_ENV=production && yarn expo-optimize && expo build:web",
"electron": "expo-electron start",
"electron:build": "yarn electron:build:installer --dir",
"electron:build:packed": "source .env && NODE_ENV=production && yarn clean && electron-webpack && electron-builder",
"serve:electron:dist": "mkdir -p dist-electron && (yarn serve -l 5202 dist-electron > /dev/null 2>&1 &) && ngrok http 5202",
"eject": "expo eject"
},
"dependencies": {
"expo": "~37.0.3",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"react-native-screens": "~2.2.0",
"react-native-web": "~0.11.7"
},
"devDependencies": {
"@babel/core": "^7.8.6",
"@expo/electron-adapter": "^0.0.0-alpha.42",
"@expo/webpack-config": "^0.11.18",
"@types/react": "~16.9.23",
"@types/react-native": "~0.61.17",
"babel-preset-expo": "~8.1.0",
"electron": "^15.5.5",
"electron-builder": "^22.4.1",
"electron-log": "^4.1.1",
"electron-updater": "^4.2.5",
"expo-optimize": "^0.1.16",
"serve": "^11.3.0",
"sharp-cli": "^1.13.1",
"turtle-cli": "^0.14.5",
"typescript": "~3.8.3",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
},
"build": {
"appId": "com.yourcompany.${name}",
"publish": [
{
"provider": "generic",
"url": "${env.EXPO_ELECTRON_PUBLIC_URL}"
}
],
"extraMetadata": {
"main": "main.js"
},
"directories": {
"buildResources": "assets",
"output": "dist-electron"
},
"files": [
{
"from": "dist/main/",
"to": "./",
"filter": [
"**/*"
]
},
{
"from": "dist/renderer",
"to": "./",
"filter": [
"**/*"
]
},
"package.json",
"**/node_modules/**/*"
]
}
}