Add before_prepare hook to fetch dependencies
parent
7dbf55e60f
commit
ae74a87889
@ -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
|
Loading…
Reference in New Issue