This project is an Angular CLI project.
yarn setup- Create local branch and make changes
ng serve- Submit PR
- Merge PR into master
- Deployment will happen automatically
When you first checkout the repo, run yarn setup to install all dependencies.
Install Firebase Tools by running npm install -g firebase-tools and run firebase login to authenticate for deployment permissions.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng serve -o to have the browser open once the initial build is complete.
Create a branch and push a pull request to GitHub. Once the PR has successfully built, and has been approved and merged, the update will be automatically be pushed to Firebase Hosting.
Deploying to live http://devfest.mn website
Will happen automatically upon merge to main.
Photos should be:
- Quality at 50%
- Resize images to fit within 1024x768 while maintaining aspect ratio
find ./src/a/images/gallery -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" -o -iname "*.webp" \) -exec sh -c '
echo "Processing: $1"
# Create backup with .original extension if it doesn'\''t exist
if [ ! -f "$1.original" ]; then
cp "$1" "$1.original"
echo "Created backup: $1.original"
fi
# Compress and resize the image
convert "$1" -quality 50 -resize "1024x768>" "$1.compressed"
# Replace original with compressed version
mv "$1.compressed" "$1"
echo "Compressed: $1"
echo "---"
' _ {} \;