Commit 8329a3af authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] setup of package caching

parent a9a1afa4
......@@ -58,6 +58,12 @@ echo -e "\033[0;32mNode installed ✓\033[0m\n"
echo -e "\033[0;34mInstall dependencies\033[0m";
rm -rf ./node_modules
npm install yarn
# offline mirror
echo -e "\033[0;34mCreate offline mirror for node deps\033[0m";
node_modules/yarn/bin/yarn config set yarn-offline-mirror ./sgc-packages-offline-cache
node_modules/yarn/bin/yarn config set yarn-offline-mirror-pruning true
node_modules/yarn/bin/yarn install
echo -e "\033[0;32mDependencies installed ✓\033[0m\n"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment