Skip to content

Instantly share code, notes, and snippets.

@sharazghouri
Forked from Shelob9/0-links.md
Created February 18, 2018 14:44
Show Gist options
  • Save sharazghouri/e00874e47db0e4ced1828cc485d9bf9d to your computer and use it in GitHub Desktop.
Save sharazghouri/e00874e47db0e4ced1828cc485d9bf9d to your computer and use it in GitHub Desktop.
Install create-guten-block and use it to create a plugin with a block (and optionally eject from cgb-scripts)
# Install create-guten-block globally
npm install create-guten-block --global
# Create a plugin "fancy-video-player" with a block
create-guten-block fancy-video-player
# switch from plugins to new plugin directory
cd fancy-video-player
# Install
npm install
# Run development build and watchet
npm run start
# Build plugin assets the most optimized for performance
npm run build
# Convert single dependency cgb-scripts to all dependies it encapsualtes.
npm run eject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment