Created
February 17, 2018 20:31
-
-
Save Shelob9/8a89edecf4d180ea28fc4c2518601c56 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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install create-guten-block globally | |
npm install create-guten-block --global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a plugin "fancy-video-player" with a block | |
create-guten-block fancy-video-player |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# switch from plugins to new plugin directory | |
cd fancy-video-player | |
# Install | |
npm install | |
# Run development build and watchet | |
npm run start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build plugin assets the most optimized for performance | |
npm run build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
Josh you don't have to run
npm install
that's done for you.Just one single command.
and then
cd fancy-video-player npm start