Clean up build scripts

This commit is contained in:
Eric Dvorsak 2018-01-17 00:52:15 +01:00
parent 5f979cdf8c
commit 314d425187
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
7 changed files with 432 additions and 990 deletions

6
Jenkinsfile vendored
View File

@ -10,6 +10,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps"
sh 'npm install'
installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
}
}
@ -34,11 +35,8 @@ node ('macos1') {
sh 'rm -rf node_modules'
sh 'cp .env.jenkins .env'
sh 'lein deps'
installJSDeps()
sh '[ -f node_modules/react-native/packager/src/JSTransformer/index.js ] && sed -i "" "s/301000/1201000/g" node_modules/react-native/packager/src/JSTransformer/index.js || echo "New packager"'
// Fix silly RN upgrade weird env issue
sh 'cp findSymlinkedModules.js.patch node_modules/react-native/local-cli/util/findSymlinkedModules.js'
installJSDeps()
sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..'

View File

@ -13,6 +13,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps"
sh 'npm install'
installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
}
}
@ -36,10 +37,6 @@ node ('macos1'){
sh 'cp .env.jenkins .env'
sh 'lein deps'
installJSDeps()
sh '[ -f node_modules/react-native/packager/src/JSTransformer/index.js ] && sed -i "" "s/301000/1201000/g" node_modules/react-native/packager/src/JSTransformer/index.js || echo "New packager"'
// Fix silly RN upgrade weird env issue
sh 'cp findSymlinkedModules.js.patch node_modules/react-native/local-cli/util/findSymlinkedModules.js'
sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..'

View File

@ -10,6 +10,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps"
sh 'npm install'
installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
}
}
@ -54,12 +55,6 @@ node ('macos1') {
sh 'lein deps'
installJSDeps()
// Uncomment with RN merge
sh '[ -f node_modules/react-native/packager/src/JSTransformer/index.js ] && sed -i "" "s/301000/1201000/g" node_modules/react-native/packager/src/JSTransformer/index.js || echo "New packager"'
// sh 'sed -i "" "s/301000/1201000/g" node_modules/react-native/packager/src/JSTransformer/index.js'
// Fix silly RN upgrade weird env issue
sh 'cp findSymlinkedModules.js.patch node_modules/react-native/local-cli/util/findSymlinkedModules.js'
sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..'

View File

@ -13,6 +13,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps"
sh 'npm install'
installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
}
}
@ -36,10 +37,6 @@ node ('macos1'){
sh 'cp .env.prod .env'
sh 'lein deps'
installJSDeps()
sh '[ -f node_modules/react-native/packager/src/JSTransformer/index.js ] && sed -i "" "s/301000/1201000/g" node_modules/react-native/packager/src/JSTransformer/index.js || echo "New packager"'
// Fix silly RN upgrade weird env issue
sh 'cp findSymlinkedModules.js.patch node_modules/react-native/local-cli/util/findSymlinkedModules.js'
sh 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..'

1365
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"postinstall": "./postinstall.sh"
},
"devDependencies": {
"rn-nodeify": "^8.2.0"
"rn-nodeify": "8.2.0"
},
"dependencies": {
"assert": "1.4.1",
@ -20,8 +20,8 @@
"babel-preset-react-native": "4.0.0",
"babel-register": "6.18.0",
"bignumber.js": "github:status-im/bignumber.js#master",
"browserify-zlib": "^0.1.4",
"buffer": "^3.6.0",
"browserify-zlib": "0.1.4",
"buffer": "3.6.0",
"chance": "1.0.12",
"console-browserify": "1.1.0",
"constants-browserify": "0.0.1",
@ -37,16 +37,16 @@
"instabug-reactnative": "git+https://github.com/status-im/instabug-reactnative.git",
"level-filesystem": "1.2.0",
"nfc-react-native": "github:status-im/nfc-react-native",
"os-browserify": "^0.1.2",
"os-browserify": "0.1.2",
"path-browserify": "0.0.0",
"process": "0.11.10",
"prop-types": "15.6.0",
"punycode": "^1.4.1",
"punycode": "1.4.1",
"querystring-es3": "0.2.1",
"re-natal": "0.8.0",
"react": "^16.0.0",
"react-dom": "16.0.0",
"react-native": "^0.51.0",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-native": "0.51.0",
"react-native-action-button": "2.8.1",
"react-native-android-sms-listener": "github:adrian-tiberius/react-native-android-sms-listener#listener-bugfix",
"react-native-autolink": "1.1.1",
@ -64,28 +64,28 @@
"react-native-image-crop-picker": "0.18.1",
"react-native-image-resizer": "1.0.0",
"react-native-invertible-scroll-view": "1.1.0",
"react-native-level-fs": "^3.0.0",
"react-native-level-fs": "3.0.0",
"react-native-linear-gradient": "2.4.0",
"react-native-mapbox-gl": "github:status-im/react-native-mapbox-gl",
"react-native-orientation": "3.1.0",
"react-native-os": "1.1.0",
"react-native-popup-menu": "0.8.3",
"react-native-qrcode": "0.2.6",
"react-native-randombytes": "^3.0.0",
"react-native-randombytes": "3.0.0",
"react-native-sortable-listview": "0.2.6",
"react-native-splash-screen": "3.0.6",
"react-native-svg": "6.0.0",
"react-native-tcp": "^3.2.1",
"react-native-tcp": "3.3.0",
"react-native-udp": "2.2.1",
"react-native-vector-icons": "4.4.2",
"react-native-webview-bridge": "github:status-im/react-native-webview-bridge#react-native-0.49",
"readable-stream": "^1.0.33",
"readable-stream": "1.1.14",
"realm": "2.0.7",
"stream-browserify": "^1.0.0",
"string_decoder": "^0.10.31",
"timers-browserify": "^1.4.2",
"stream-browserify": "1.0.0",
"string_decoder": "0.10.31",
"timers-browserify": "1.4.2",
"tty-browserify": "0.0.0",
"url": "^0.10.3",
"url": "0.10.3",
"vm-browserify": "0.0.4",
"web3": "github:status-im/web3.js#status-develop"
},

View File

@ -3,5 +3,3 @@
# rn-nodeify
# temporary hack due to https://github.com/facebook/react-native/issues/4968
./node_modules/.bin/rn-nodeify --install "assert,zlib,buffer,inherits,console,constants,crypto,dns,domain,events,http,https,os,path,process,punycode,querystring,fs,stream,string_decoder,timers,tty,url,util,net,vm" --hack;
npm install --save react@16.0.0;
npm install --save react-native-tcp@3.2.1;