♻️ Npm dependency install can be reduced to one call

This commit is contained in:
z3rOR0ne 2022-07-21 07:27:33 -07:00
parent 8701c1835b
commit 5e67c8d334

View file

@ -77,8 +77,7 @@ if [ $numrepos -eq 0 ] ; then
read -e -r -p "${txtwhite}would you like to make this an npm project?(y/n): ${txtyellow}" confirmnpm read -e -r -p "${txtwhite}would you like to make this an npm project?(y/n): ${txtyellow}" confirmnpm
if [[ $confirmnpm == "y" || $confirmnpm == "yes" ]] ; then if [[ $confirmnpm == "y" || $confirmnpm == "yes" ]] ; then
npm init -y npm init -y
npm install -D nodemon npm install -D nodemon prettier
npm install -D prettier
# creates default .prettierrc # creates default .prettierrc
echo -e 'trailingComma: "all"\ntabWidth: 4\nsemi: false\nsingleQuote: true\nbracketSpacing: true\narrowParens: "avoid"' > .prettierrc echo -e 'trailingComma: "all"\ntabWidth: 4\nsemi: false\nsingleQuote: true\nbracketSpacing: true\narrowParens: "avoid"' > .prettierrc