Last active
April 19, 2021 14:11
-
-
Save BenBroide/e44539b960e5fdc0de480e58d464e103 to your computer and use it in GitHub Desktop.
WordPress Cli create plugin + Create React App
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
cd /your/instllation/path/wp-content/plugins | |
// Create custom plugin | |
wp scaffold plugin wp-create-react-app-concept --activate --skip-tests | |
cd wp-create-react-app-concept | |
// We need only react-plugin.php for our demo - deleting all other files | |
ls | grep -v wp-create-react-app-concept.php | xargs rm | |
// Create React App | |
npx create-react-app react-app | |
cd react-app | |
// Build the app | |
yarn build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment