[#4901]: Fix npm version issue

Signed-off-by: Aleksandr Pantiukhov <alwxndr@gmail.com>
This commit is contained in:
Aleksandr Pantiukhov 2018-06-27 16:30:00 +02:00
parent e27d38e5ca
commit 2b6ee450ae
No known key found for this signature in database
GPG Key ID: 153E4F21734042F5
4 changed files with 2088 additions and 2103 deletions

4127
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"@tradle/react-native-http": "^2.0.1",
"assert": "1.4.1",
"asyncstorage-down": "4.0.1",
"babel-core": "6.24.1",
@ -14,7 +15,7 @@
"babel-plugin-transform-es2015-block-scoping": "6.15.0",
"babel-preset-react-native": "4.0.0",
"babel-register": "6.18.0",
"bignumber.js": "github:status-im/bignumber.js#master",
"bignumber.js": "git@github.com:status-im/bignumber.js.git",
"buffer": "3.6.0",
"chance": "1.0.12",
"create-react-class": "15.6.2",
@ -22,10 +23,10 @@
"emojilib": "2.2.9",
"events": "1.1.1",
"homoglyph-finder": "1.1.1",
"identicon.js": "github:status-im/identicon.js",
"identicon.js": "git@github.com:status-im/identicon.js.git",
"instabug-reactnative": "2.12.0",
"level-filesystem": "1.2.0",
"nfc-react-native": "github:status-im/nfc-react-native",
"nfc-react-native": "git@github.com:status-im/nfc-react-native.git",
"process": "0.11.10",
"prop-types": "15.6.0",
"punycode": "1.4.1",
@ -42,8 +43,7 @@
"react-native-fcm": "10.0.3",
"react-native-fetch-polyfill": "1.1.2",
"react-native-fs": "2.8.1",
"react-native-http": "github:tradle/react-native-http#834492d",
"react-native-http-bridge": "github:status-im/react-native-http-bridge",
"react-native-http-bridge": "git@github.com:status-im/react-native-http-bridge.git",
"react-native-i18n": "2.0.9",
"react-native-image-crop-picker": "0.18.1",
"react-native-image-resizer": "1.0.0",
@ -58,11 +58,11 @@
"react-native-tcp": "3.3.0",
"react-native-testfairy": "2.10.0",
"react-native-udp": "2.2.1",
"react-native-webview-bridge": "github:status-im/react-native-webview-bridge",
"react-native-webview-bridge": "git@github.com:status-im/react-native-webview-bridge.git",
"realm": "2.3.3",
"rn-snoopy": "github:status-im/rn-snoopy",
"rn-snoopy": "git@github.com:status-im/rn-snoopy.git",
"string_decoder": "0.10.31",
"url": "0.10.3",
"web3": "github:status-im/web3.js#feature/shhext"
"web3": "git@github.com:status-im/web3.js.git#feature/shhext"
}
}

View File

@ -84,6 +84,34 @@ EOF
fi
}
function install_clojure_cli() {
if is_macos; then
brew_install clojure
elif is_linux; then
install_clojure_cli_linux
fi
}
function install_clojure_cli_linux() {
if ! program_exists "lein"; then
cecho "@b@blue[[+ Installing Clojure CLI...]]"
local current_dir=$(pwd)
sudo su << EOF
curl --silent \
https://download.clojure.org/install/linux-install-1.9.0.381.sh \
-o /tmp/clojure
chmod +x /tmp/clojure
cd /tmp
./clojure
EOF
cd "$current_dir"
else
already_installed "Clojure CLI"
fi
}
function install_watchman() {
if is_macos; then
brew_install watchman
@ -164,17 +192,19 @@ function install_node_via_nvm() {
cd "$(repo_path)"
if [ ! -e "$nvmrc" ]; then
cecho "@b@blue[[+ Installing latest stable Node version]]"
cecho "@b@blue[[+ Installing Node 9 (Node 10 is not supported by Realm)]]"
nvm install stable
echo stable > "$nvmrc"
nvm install 9
nvm alias status-im 9
echo status-im > "$nvmrc"
nvm use
nvm use status-im
else
nvm use >/dev/null
local version_alias=$(cat "$nvmrc")
nvm use $version_alias
local version=$(node -v)
cecho "+ Node already installed ($version via NVM)... skipping."
cecho "+ Node already installed ($version_alias $version via NVM)... skipping."
fi
}
@ -228,6 +258,7 @@ function install_cocoapods() {
local gem_command="sudo gem"
local destination="system Ruby"
local version=$(required_pod_version)
if using_rvm; then
initialize_rvm
@ -237,10 +268,8 @@ function install_cocoapods() {
fi
if ! program_exists "pod"; then
$gem_command install cocoapods
$gem_command install cocoapods -v "$version"
elif ! correct_pod_version_is_installed; then
local version=$(required_pod_version)
cecho "@b@blue[[+ Updating to cocoapods $version]]"
$gem_command uninstall cocoapods --ignore-dependencies --silent

View File

@ -25,6 +25,7 @@ setup_header "Installing requirements..."
install_and_setup_package_manager
install_java8
install_clojure_cli
install_leiningen
install_node
install_watchman