Skip to content
Website: Musikverein Wollbach 1866 e.V.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
_prod
partials
php
root
.gitattributes
.gitignore
.mvwc-config.json
.pug-lint.json
LICENSE
README.md
bs-config.json
package-lock.json
package.json
sass-lint.yml
tsconfig.json
tslint.json

README.md

Getting started

Prerequisites

npm install

Build and release

npm run release

cd ./_prod

npm run validate

Verify, that there are no build and validation issues. If so:

  • commit
  • tag
  • push
  • upload to FTP

Debug / Test Build

npm run serve

Best Practices

Adding new images to the website

Images have a specific width. Mostly they have a maximum of 1200px in any orientation. Furthermore EXIF information should be stripped away etc. This can easily be achieved using e.g. ImageMagick / GraphicsMagick.

Following snippet can be used to process all images in the current folder:

ls ./*.jpg | % {
  $name = $_.Name
  gm convert $name -auto-orient -quality 70 -strip -resize '1200x1200' "c_$name"
}

Adding new images to the gallery

Copy all input images to the directory ./root/gallery/<YEAR>/<AlbumName>/ directory. And run following command:

npm run gallery

Move the newly added images to the gallery directory and run a new release to generate the gallery HTML from the updated galleries.json.

You can’t perform that action at this time.