diff --git a/config.xml b/config.xml index 1608034..f57587b 100644 --- a/config.xml +++ b/config.xml @@ -35,7 +35,7 @@ - + @@ -43,6 +43,7 @@ + diff --git a/scripts/clean_node_modules.sh b/scripts/clean_node_modules.sh index d8b1de5..e489a8d 100755 --- a/scripts/clean_node_modules.sh +++ b/scripts/clean_node_modules.sh @@ -4,7 +4,7 @@ cd platforms/android/app/src/main/assets/www/node_modules -echo "Cleaning up node_modules from www..." +echo "Cleaning up unneeded files in node_modules..." echo "Size before: $(du -sh | cut -d ' ' -f 1)" diff --git a/scripts/get_dependencies.sh b/scripts/get_dependencies.sh new file mode 100755 index 0000000..b51b508 --- /dev/null +++ b/scripts/get_dependencies.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +echo "Installing node modules into www..." + +cd www + +if type "yarn" > /dev/null; then + yarn install + exit 0 +fi + +# If Yarn isn't installed, use npm +echo "Warning: using npm install instead of the preferred yarn install" +echo "Consider installing Yarn" +npm install \ No newline at end of file