Skip to content

rogervanwile/recipe-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update Translations-Template file (POT)

npm run i18n:make-pot

  • Open recipe-creator-de_DE.po in Poedit
  • Click "Katalog" > "Aus POT-Datei aktualisieren"
  • Select the recipe-creator.pot
  • Update the translations
  • Save the file and click "Datei" > "MO-Datei erstellen"

The translations for the JS files have to be a JSON file.

npm run i18n:make-json

More Infos: https://developer.wordpress.org/block-editor/developers/internationalization/

Development

First run

brew install composer brew install node@16

composer install npm install

npm run start

Update SVG icons

Run npm run build:fonts

Error: Some icons are not visible

Its possible that some icons must be "fixed" before converting to a webfont. For that, use:

npm run fix:font-svgs

Publish a new version

  • Update version in package.json and run npm install
  • Update version in recipe-creator.php
  • Update changelogs in changelog.txt and copy the latest changes to the readme.txt
  • Update version in readme.txt (Stable tag)
  • Create a new tag on the main branch.

=> The release will be created within a github workflow and is pushed to the wordpress plugin directory.