NAD-ITS / alps-gutenberg-blocks

A Wordpress plugin to create Gutenberg plugins that work for ALPS.
0 stars 0 forks source link

ALPS 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

👉 npm run project:build-blocks

👉 npm run project:set-version

i18n

👉 npm run i18n:update-pot

👉 npm run i18n:create-json

Plugin release

👉 npm run wp:plugin:build

👉 npm run wp:plugin:release

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