Remove duplicate build script
This commit is contained in:
parent
0b27ba235f
commit
ae131a3e27
2 changed files with 6 additions and 20 deletions
20
build
20
build
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ -z "$NVM_DIR" ]
|
|
||||||
then
|
|
||||||
NVM_DIR="~/.nvm"
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $NVM_DIR/nvm.sh
|
|
||||||
nvm install
|
|
||||||
nvm use
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
npm install
|
|
||||||
|
|
||||||
echo "Fixing the hacks..."
|
|
||||||
|
|
||||||
# React-Native doesnt like having .babelrc files in modules, and officially suggests not shipping react-native modules with them included.
|
|
||||||
# This script scans all sub-dirs of node_modules, and removes any it finds, except the ones inside react-native itself.
|
|
||||||
find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm || echo "Already patched!"
|
|
|
@ -12,3 +12,9 @@ nvm use
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
echo "Fixing the hacks..."
|
||||||
|
|
||||||
|
# React-Native doesnt like having .babelrc files in modules, and officially suggests not shipping react-native modules with them included.
|
||||||
|
# This script scans all sub-dirs of node_modules, and removes any it finds, except the ones inside react-native itself.
|
||||||
|
find node_modules -type f -name .babelrc | grep -v /react-native/ | xargs rm || echo "Already patched!"
|
||||||
|
|
Reference in a new issue