Skip to content

Testing script for building coblocks release with selected blocks only

Notifications You must be signed in to change notification settings

glendaviesnz/coblocks-builder

Repository files navigation

CoBlocks Builder

A prototype custom build script for CoBlocks. Currently it:

  • Clones the release branch of CoBlocks that matches the version in ./package.json
  • Copies custom blocks.js, class-coblocks.php, class-coblocks-register-blocks.php files to the source folder to only build and run selected blocks
  • Runs CoBlocks standard grunt build job
  • Copies the CoBlocks build folder that is generated to ./build
  • Removes any unused files and folders from the build folder

To use:

npm install
npm run build

After build has completed the ./build/coblocks-VERSION folder should be in state to be added to wp-content/plugins folder.

Things to note

  • You may need to install grunt globally for build script to run npm install -g grunt
  • You currently need WP CLI in your path for the CoBlocks build to run

About

Testing script for building coblocks release with selected blocks only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published