Skip to content

Commit

Permalink
Install node modules in production mode and delete them afterwards to…
Browse files Browse the repository at this point in the history
… free out space

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 23, 2021
1 parent c9edf4c commit ea86712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo/bin/pma-demo-update
Expand Up @@ -88,7 +88,9 @@ for REPONAME in $REPOS ; do
if [ -f package.json ] ; then
# We still redirect output to /dev/null because even with the --silent flag, yarn still gives sass output such as
# $ sass themes/pmahomme/scss:themes/pmahomme/css themes/original/scss:themes/original/css themes/metro/scss:themes/metro/css
yarn install --frozen-lockfile --non-interactive --silent > /dev/null
yarn install --production --frozen-lockfile --non-interactive --silent > /dev/null
# They waste too much space, clear them out
rm -rf ./node_modules
fi

# Link themes
Expand Down

0 comments on commit ea86712

Please sign in to comment.