Skip to content

Commit

Permalink
Fix unnecessary git changes when starting the project
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Sep 15, 2023
1 parent dcecb61 commit 1df5114
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
7 changes: 7 additions & 0 deletions frontend/docker-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ set -euo pipefail

BASEDIR=$(dirname "$0")
ENV_FILE=$BASEDIR"/public/environment.js"
PDF_FILE=$BASEDIR"/src/pdf/pdf.mjs"

if [ ! -f "$ENV_FILE" ]; then
cp $BASEDIR/public/environment.docker.dist "$ENV_FILE"
fi

if [ ! -f "$PDF_FILE" ]; then
# Copy dummy versions of the pdf build outputs, to make sure there is always something to import
cp $BASEDIR/src/pdf/pdf.mjs.dist "$PDF_FILE"
cp $BASEDIR/src/pdf/prepareInMainThread.mjs.dist "$BASEDIR/src/pdf/prepareInMainThread.mjs"
fi

if [ "$CI" = 'true' ] ; then
npm ci --verbose
npm run build
Expand Down
3 changes: 1 addition & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions print/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1df5114

Please sign in to comment.