Skip to content

Commit

Permalink
this
Browse files Browse the repository at this point in the history
  • Loading branch information
bronifty committed Aug 22, 2024
1 parent c159415 commit 64a2d8e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
14 changes: 12 additions & 2 deletions services/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ for dir in "$PARENT_DIR"/*; do
fi
done

#!/bin/bash

# Build common service
echo "Building common service in $(pwd)"
npm run build

# Build react-router-7-contacts service
cd ../react-router-7-contacts
echo "Building in $(pwd)"
echo "Building react-router-7-contacts service in $(pwd)"
npm install --frozen-lockfile
npm run build

# Create a lambda.zip file for react-router-7-contacts
echo "Creating lambda.zip for react-router-7-contacts"
zip -r lambda.zip . -x "node_modules/*" "*.git*"

# Return to the original directory
cd ../common
cd ../common
15 changes: 15 additions & 0 deletions services/common/zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,18 @@ for dir in "$PARENT_DIR"/*; do
cd -
fi
done


#!/bin/bash

# Zip common service
echo "Zipping common service in $(pwd)"
zip -r lambda.zip . -x "node_modules/*" "*.git*"

# Zip react-router-7-contacts service
cd ../react-router-7-contacts
echo "Zipping react-router-7-contacts service in $(pwd)"
zip -r lambda.zip . -x "node_modules/*" "*.git*"

# Return to the original directory
cd ../common

0 comments on commit 64a2d8e

Please sign in to comment.