|
@@ -1,48 +0,0 @@
|
1
|
|
-const shellUtils = require('shell-utils');
|
2
|
|
-
|
3
|
|
-function installNavigation() {
|
4
|
|
- shellUtils.exec.execSync(`mkdir -p ./node_modules/react-native-navigation`);
|
5
|
|
- const navigationTar = shellUtils.exec.execSyncRead(`cd .. && npm pack`);
|
6
|
|
- shellUtils.exec.execSync(`tar -xf ../${navigationTar} -C ./node_modules/react-native-navigation --strip 1`);
|
7
|
|
- shellUtils.exec.execSync(`rm ../${navigationTar}`);
|
8
|
|
-
|
9
|
|
- if (!process.env.CI) {
|
10
|
|
- hardlinkNavigation();
|
11
|
|
- }
|
12
|
|
-}
|
13
|
|
-
|
14
|
|
-function copyNodeModulesFromNavigation() {
|
15
|
|
- shellUtils.exec.execSync(`cp -Rf ../node_modules ./`);
|
16
|
|
-}
|
17
|
|
-
|
18
|
|
-function removeHardlinks() {
|
19
|
|
- shellUtils.exec.execSync(`hardlink ./node_modules/react-native-navigation/ -u || true`);
|
20
|
|
-}
|
21
|
|
-
|
22
|
|
-function removeNodeModules() {
|
23
|
|
- shellUtils.exec.execSync(`rm -rf ./node_modules || true`);
|
24
|
|
-}
|
25
|
|
-
|
26
|
|
-function ignoreReactWarnings() {
|
27
|
|
- shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
|
28
|
|
-}
|
29
|
|
-
|
30
|
|
-function hardlinkNavigation() {
|
31
|
|
- shellUtils.exec.execSync(`hardlink ../ ./node_modules/react-native-navigation/ || true`);
|
32
|
|
-}
|
33
|
|
-
|
34
|
|
-function fixRN38() {
|
35
|
|
- shellUtils.exec.execSync(`node ./scripts/fixRN38.js`);
|
36
|
|
-}
|
37
|
|
-
|
38
|
|
-function run() {
|
39
|
|
- removeHardlinks();
|
40
|
|
- removeNodeModules();
|
41
|
|
- copyNodeModulesFromNavigation();
|
42
|
|
- installNavigation();
|
43
|
|
- ignoreReactWarnings();
|
44
|
|
- fixRN38();
|
45
|
|
-}
|
46
|
|
-
|
47
|
|
-run();
|
48
|
|
-
|