ALPS Gutenberg Blocks WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
A Wordpress plugin to create Gutenberg plugins that work for ALPS.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/adventistchurch/alps-gutenberg-blocks/releases/download/v2.1.12/alps-gutenberg-blocks-v2.1.12.zipALPS Gutenberg Plugin
This plugin is created to support the ALPS for Wordpress, to provide Gutenberg Blocks with ALPS markup.
This project is based on Create Guten Block.
Local development
👉 Init
On first run of the plugin locally you should install required dependencies
npm install
composer install
Composer could be downloaded from https://getcomposer.org/
Link to the WP installation
You should link the build/alps-gutenberg-blocks into wp-content/plugins of the local WP.
ln -s path/to/plugin/ path/to/wp/wp-content/plugins/alps-gutenberg-blocks
The alps-gutenbers-blocks directory should appear in wp-content/plugins.
👉 npm run dev
- Use to compile and run the blocks in development mode.
- Watches for any changes and reports back any errors in your code.
👉 npm run project:build-blocks
- Use to build production code for your blocks inside
distfolder. - Runs once and reports back the gzip file sizes of the produced code.
👉 npm run project:set-version
- Use to sync the current version in code with
CHANGELOG.md - Sets the plugin version in
package.json,plugin.php, commits the changes and creates a related git tag. - Push result to the GitHub to run the build and release processes.
i18n
👉 npm run i18n:update-pot
- Use to generate master file for internationalization.
- Scans the project files for localizable strings and dumps them to the
languages/alps-gutenberg-blocks.pot - Open
alps-gutenberg-blocks.potwith POEdit to create new and update existing locale files with string translations. - Translation files should be named as
languages/alps-gutenberg-blocks-{lang_LANG}.po - Set language code in
en_USformat.
👉 npm run i18n:create-json
- Use to convert
.pofiles to.json - Iterates over each
.pofile inlanguagesand generates.jsonfile with strings. .pofile names should be likealps-gutenberg-blocks-en_US.po.jsonfiles are used for js scripts.
Plugin release
👉 npm run wp:plugin:build
- Use on Continuous Integration server to create a plugin archive for distribution
- Builds plugin artifacts in
builddirectory alps-gutenberg-blocksdirectory with plugin filesalps-gutenberg-blocks.zip– plugin distribution archivealps-gutenberg-blocks.json– plugin metadata for Wordpress updates
👉 npm run wp:plugin:release
- Use on Continuous Integration server to publish the new version
- Uploads
alps-gutenberg-blocks.zipandalps-gutenberg-blocks.jsonto CDN - Creates GitHub release for manual installation
CI Config
Build script uses Environment Variables to get the config
| Var | Description | Example |
|---|---|---|
| CDN_HOST | SSH host | some.server.com |
| CDN_USER | SSH user | username |
| CDN_PRIVATE_KEY | SSH private key content (multiline) | |
| CDN_PRIVATE_KEY_PASS | SSH private key passphrase | |
| CDN_ROOT_PATH | Path on server for artifacts uploading | /var/www |
Releases
Newest 25 of 28 recorded releases. Each count is every asset in that release; expand a row for the breakdown.
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.