This repository is the database for the plugin Nested ordered lists. This provides a Gutenberg block-addition to use the list-block with nested ordered lists and some list-styles.
After checkout go through the following steps:
- copy build/build.properties.dist to build/build.properties.
- modify the build/build.properties file - note the comments in the file.
- execute the command in build/:
ant init
- execute the command in the plugin-directory
npm start
- after that the plugin can be activated in WordPress
- increase the version number in build/build.properties.
- execute the following command in build/:
ant build
- after that you will finde in the release/ directory a zip file which could be used in WordPress to install it.
I recommend to use PoEdit to translate texts for this plugin.
Run in main directory:
wp i18n make-pot . languages/nested-ordered-lists-for-block-editor.pot --exclude=src,svn
- Open .po-file of the language in PoEdit.
- Go to "Translate" > "Update from POT-file".
- After this the new entries are added to the language-file.
- Open .po-file of the language in PoEdit.
- Go to File > Save.
- Upload the generated .mo-file and the .po-file to the plugin-folder languages/
Run in main directory:
wp i18n make-json languages
OR use ant in build/-directory: ant json-translations
npm install
npm start
npm run build
Hint: will be called by ant-command mentioned above.
Run ant generate-css
in build/.
- reversed orders numbered list with start numbers > 0 on level 2 will not work in frontend.
composer install
vendor/bin/phpcs --extensions=php --ignore=*/attributes/*,*/example/*,*/css/*,*/vendor/*,*/node_modules/*,*/svn/* --standard=ruleset.xml .
vendor/bin/phpcbf --extensions=php --ignore=*/attributes/*,*/example/*,*/css/*,*/vendor/*,*/node_modules/*,*/svn/* --standard=ruleset.xml .
vendor/bin/wp-documentor parse app --format=markdown --output=docs/hooks.md --prefix=nolg_
Hint: this check runs against the VIP-GO-platform which is not our target for this plugin. Many warnings can be ignored.
vendor/bin/phpcs --extensions=php --ignore=*/attributes/*,*/example/*,*/css/*,*/vendor/*,*/node_modules/*,*/svn/* --standard=WordPress-VIP-Go .