Little README.md and automatical install of requirements on missing node_modules

This commit is contained in:
Torsten Raudssus 2023-04-08 23:02:54 +02:00
parent 61b47ac36a
commit bb4c0ea1f2
3 changed files with 15 additions and 1 deletions

View file

@ -2,6 +2,13 @@
export IP=$( hostname -i )
if [[ ! -d "node_modules" ]]; then
echo "node_modules does not exist."
if [[ -f "package.json" ]]; then
npm install
fi
fi
if [[ -z "$@" ]]
then
if [[ -f "package.json" ]]