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.
On first run of the plugin locally you should install required dependencies
npm install
composer install
Composer could be downloaded from https://getcomposer.org/
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
npm run project:build-blocks
dist
folder.npm run project:set-version
CHANGELOG.md
package.json
, plugin.php
, commits the changes and creates a related git tag.npm run i18n:update-pot
languages/alps-gutenberg-blocks.pot
alps-gutenberg-blocks.pot
with POEdit to create new and update existing locale files with string translations.languages/alps-gutenberg-blocks-{lang_LANG}.po
en_US
format.npm run i18n:create-json
.po
files to .json
.po
file in languages
and generates .json
file with strings..po
file names should be like alps-gutenberg-blocks-en_US.po
.json
files are used for js scripts.npm run wp:plugin:build
build
directoryalps-gutenberg-blocks
directory with plugin filesalps-gutenberg-blocks.zip
– plugin distribution archivealps-gutenberg-blocks.json
– plugin metadata for Wordpress updatesnpm run wp:plugin:release
alps-gutenberg-blocks.zip
and alps-gutenberg-blocks.json
to CDNBuild 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 |