-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
145 lines (145 loc) · 4.12 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
{
"name": "bara_demo",
"version": "0.0.1",
"private": true,
"main": "dist/index.js",
"author": {
"name": "BaraJS"
},
"description": "BaraJS Desktop Application",
"homepage": "./",
"scripts": {
"dev": "run-p start:web start:mobile start:desktop",
"start:web": "craco start --verbose",
"start:mobile": "node node_modules/react-native/local-cli/cli.js start",
"start:desktop": "cross-env BROWSER=none concurrently \"yarn compile:desktop -w\" \"wait-on http://localhost:3000 && yarn watch:desktop\"",
"watch:desktop": "nodemon --watch dist --exec \"electron ./dist\"",
"do:web": "concurrently --kill-others \"yarn compile -w\" \"yarn start:web\"",
"do:desktop": "cross-env BROWSER=none concurrently \"yarn dev:web\" \"yarn compile:desktop -w\" \"wait-on http://localhost:3000 && yarn watch:desktop\"",
"compile": "run-s compile:tsc compile:web compile:desktop",
"compile:tsc": "tsc -b",
"compile:web": "craco build",
"compile:desktop": "tsc -b ./tsconfig.desktop.json",
"build:desktop": "run-s clean compile:desktop compile:web build:desktop:cpres build:desktop:electron",
"build:desktop:cpres": "shx cp -R build dist/web",
"build:desktop:electron": "electron-builder",
"test": "jest",
"clean": "shx rm -rf release dist build",
"format": "prettier --write '{.,src,desktop/**}/*.{js,jsx,ts,tsx}'",
"lint": "tslint -p .",
"studio": "open -a /Applications/Android\\ Studio.app ./android/",
"xcode": "open ios/bara_demo.xcodeproj"
},
"dependencies": {
"bara": "2.4.0",
"bara-react": "3.1.0",
"bara-react-icons": "1.1.0",
"bara-react-yofi": "1.1.2",
"electron-store": "3.2.0",
"electron-updater": "4.0.6",
"jsonfile": "5.0.0",
"mkdirp": "0.5.1",
"react": "16.8.6",
"react-app-polyfill": "0.2.2",
"react-dom": "16.8.6",
"react-native": "0.59.4",
"react-native-vector-icons": "6.4.2"
},
"devDependencies": {
"@babel/core": "7.4.3",
"@babel/plugin-proposal-class-properties": "7.4.0",
"@babel/polyfill": "7.4.3",
"@babel/runtime": "7.4.3",
"@craco/craco": "4.1.0",
"@types/electron-devtools-installer": "2.2.0",
"@types/electron-store": "1.3.1",
"@types/jest": "24.0.11",
"@types/jsonfile": "5.0.0",
"@types/mkdirp": "0.5.2",
"@types/node": "11.13.4",
"@types/react": "16.8.13",
"@types/react-native": "0.57.45",
"@types/react-native-vector-icons": "6.4.0",
"@types/react-test-renderer": "16.8.1",
"babel-plugin-react-native-web": "0.11.2",
"concurrently": "4.1.0",
"cross-env": "5.2.0",
"electron": "4.1.4",
"electron-builder": "20.39.0",
"electron-devtools-installer": "2.2.4",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"metro-react-native-babel-preset": "0.53.1",
"nodemon": "1.18.11",
"npm-run-all": "4.1.5",
"prettier": "1.17.0",
"react-scripts": "2.1.8",
"react-test-renderer": "16.8.6",
"shx": "0.3.2",
"tslint": "5.16.0",
"tslint-config-airbnb": "5.11.1",
"tslint-config-prettier": "1.18.0",
"tslint-react": "4.0.0",
"typescript": "3.4.3",
"wait-on": "3.2.0"
},
"jest": {
"preset": "react-native"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"tslint --fix",
"prettier --write",
"git add"
]
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"build": {
"appId": "dev.barajs.example",
"productName": "Bara Example",
"extends": null,
"directories": {
"buildResources": "assets",
"output": "release"
},
"extraMetadata": {
"name": "bara-example"
},
"linux": {
"icon": "icons/icon.png"
},
"mac": {
"category": "public.app-category.developer-tools",
"icon": "icons/icon.png"
},
"win": {
"icon": "icons/icon.ico"
},
"files": [
"assets",
"dist"
],
"protocols": [
{
"name": "Bara Example",
"schemes": [
"bara"
]
}
],
"publish": {
"provider": "github",
"releaseType": "release"
}
}
}