-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtap.js
51 lines (46 loc) · 1.1 KB
/
tap.js
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
const isWeb = process.env.PLATFORM === 'web'
/**
* It would be better to use the node core module `path`
* But this file is imported into the the app rootContainer, which is frontend
* So instead if finds the path to the tap root based on the Platform
*/
const pathToEntryPoint = isWeb
? `./apps/Main.js`
: `../../apps/Main.native.js`
module.exports = {
name: 'events-force-x5',
displayName: 'Events Force Mobile X5',
keg: {
routes: {
'/': 'RootContainer',
'/sessions': 'SessionsContainer',
},
tapResolver: {
paths: {
tapSrc: './src',
tapFonts: "./src/assets/fonts"
},
aliases: {
dynamic: {
Icons: 'assets/icons',
Contexts: 'contexts'
},
web: {
SVTapEntry: pathToEntryPoint
},
native: {
SVTapEntry: pathToEntryPoint
}
}
},
paths: {
buildConfig: 'configs/build.config.js'
},
// replacement definitions for both webpack and rollup builds
envs: {}
},
expo: {
name: 'tap-events-force',
slug: 'tap-events-force'
}
}