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" println "#${attempt} attempt to install npm deps"
sh 'npm install' sh 'npm install'
installed = fileExists('node_modules/web3/index.js') installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
} }
} }
@ -34,11 +35,8 @@ node ('macos1') {
sh 'rm -rf node_modules' sh 'rm -rf node_modules'
sh 'cp .env.jenkins .env' sh 'cp .env.jenkins .env'
sh 'lein deps' 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 installJSDeps()
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 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..' sh 'cd ios && pod install && cd ..'

View File

@ -13,6 +13,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps" println "#${attempt} attempt to install npm deps"
sh 'npm install' sh 'npm install'
installed = fileExists('node_modules/web3/index.js') installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
} }
} }
@ -36,10 +37,6 @@ node ('macos1'){
sh 'cp .env.jenkins .env' sh 'cp .env.jenkins .env'
sh 'lein deps' sh 'lein deps'
installJSDeps() 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 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..' sh 'cd ios && pod install && cd ..'

View File

@ -10,6 +10,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps" println "#${attempt} attempt to install npm deps"
sh 'npm install' sh 'npm install'
installed = fileExists('node_modules/web3/index.js') installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
} }
} }
@ -54,12 +55,6 @@ node ('macos1') {
sh 'lein deps' sh 'lein deps'
installJSDeps() 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 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..' sh 'cd ios && pod install && cd ..'

View File

@ -13,6 +13,7 @@ def installJSDeps() {
println "#${attempt} attempt to install npm deps" println "#${attempt} attempt to install npm deps"
sh 'npm install' sh 'npm install'
installed = fileExists('node_modules/web3/index.js') installed = fileExists('node_modules/web3/index.js')
attemp = attempt + 1
} }
} }
@ -36,10 +37,6 @@ node ('macos1'){
sh 'cp .env.prod .env' sh 'cp .env.prod .env'
sh 'lein deps' sh 'lein deps'
installJSDeps() 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 'mvn -f modules/react-native-status/ios/RCTStatus dependency:unpack'
sh 'cd ios && pod install && cd ..' 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" "postinstall": "./postinstall.sh"
}, },
"devDependencies": { "devDependencies": {
"rn-nodeify": "^8.2.0" "rn-nodeify": "8.2.0"
}, },
"dependencies": { "dependencies": {
"assert": "1.4.1", "assert": "1.4.1",
@ -20,8 +20,8 @@
"babel-preset-react-native": "4.0.0", "babel-preset-react-native": "4.0.0",
"babel-register": "6.18.0", "babel-register": "6.18.0",
"bignumber.js": "github:status-im/bignumber.js#master", "bignumber.js": "github:status-im/bignumber.js#master",
"browserify-zlib": "^0.1.4", "browserify-zlib": "0.1.4",
"buffer": "^3.6.0", "buffer": "3.6.0",
"chance": "1.0.12", "chance": "1.0.12",
"console-browserify": "1.1.0", "console-browserify": "1.1.0",
"constants-browserify": "0.0.1", "constants-browserify": "0.0.1",
@ -37,16 +37,16 @@
"instabug-reactnative": "git+https://github.com/status-im/instabug-reactnative.git", "instabug-reactnative": "git+https://github.com/status-im/instabug-reactnative.git",
"level-filesystem": "1.2.0", "level-filesystem": "1.2.0",
"nfc-react-native": "github:status-im/nfc-react-native", "nfc-react-native": "github:status-im/nfc-react-native",
"os-browserify": "^0.1.2", "os-browserify": "0.1.2",
"path-browserify": "0.0.0", "path-browserify": "0.0.0",
"process": "0.11.10", "process": "0.11.10",
"prop-types": "15.6.0", "prop-types": "15.6.0",
"punycode": "^1.4.1", "punycode": "1.4.1",
"querystring-es3": "0.2.1", "querystring-es3": "0.2.1",
"re-natal": "0.8.0", "re-natal": "0.8.0",
"react": "^16.0.0", "react": "16.2.0",
"react-dom": "16.0.0", "react-dom": "16.2.0",
"react-native": "^0.51.0", "react-native": "0.51.0",
"react-native-action-button": "2.8.1", "react-native-action-button": "2.8.1",
"react-native-android-sms-listener": "github:adrian-tiberius/react-native-android-sms-listener#listener-bugfix", "react-native-android-sms-listener": "github:adrian-tiberius/react-native-android-sms-listener#listener-bugfix",
"react-native-autolink": "1.1.1", "react-native-autolink": "1.1.1",
@ -64,28 +64,28 @@
"react-native-image-crop-picker": "0.18.1", "react-native-image-crop-picker": "0.18.1",
"react-native-image-resizer": "1.0.0", "react-native-image-resizer": "1.0.0",
"react-native-invertible-scroll-view": "1.1.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-linear-gradient": "2.4.0",
"react-native-mapbox-gl": "github:status-im/react-native-mapbox-gl", "react-native-mapbox-gl": "github:status-im/react-native-mapbox-gl",
"react-native-orientation": "3.1.0", "react-native-orientation": "3.1.0",
"react-native-os": "1.1.0", "react-native-os": "1.1.0",
"react-native-popup-menu": "0.8.3", "react-native-popup-menu": "0.8.3",
"react-native-qrcode": "0.2.6", "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-sortable-listview": "0.2.6",
"react-native-splash-screen": "3.0.6", "react-native-splash-screen": "3.0.6",
"react-native-svg": "6.0.0", "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-udp": "2.2.1",
"react-native-vector-icons": "4.4.2", "react-native-vector-icons": "4.4.2",
"react-native-webview-bridge": "github:status-im/react-native-webview-bridge#react-native-0.49", "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", "realm": "2.0.7",
"stream-browserify": "^1.0.0", "stream-browserify": "1.0.0",
"string_decoder": "^0.10.31", "string_decoder": "0.10.31",
"timers-browserify": "^1.4.2", "timers-browserify": "1.4.2",
"tty-browserify": "0.0.0", "tty-browserify": "0.0.0",
"url": "^0.10.3", "url": "0.10.3",
"vm-browserify": "0.0.4", "vm-browserify": "0.0.4",
"web3": "github:status-im/web3.js#status-develop" "web3": "github:status-im/web3.js#status-develop"
}, },

View File

@ -3,5 +3,3 @@
# rn-nodeify # rn-nodeify
# temporary hack due to https://github.com/facebook/react-native/issues/4968 # 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; ./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;