11# Create React WP Theme <!-- omit in toc -->
22
3- Oct. 12 , 2019
3+ Nov. 23 , 2019
44<br />
5- * UPDATED * to match [ v3.2.0] ( https://github.com/facebook/create-react-app/releases/tag/v3.2.0 ) of [ Create React App] ( https://create-react-app.dev/ )
5+ [ v3.2.0] ( https://github.com/facebook/create-react-app/releases/tag/v3.2.0 ) of [ Create React App] ( https://create-react-app.dev/ ) is still the latest.
66
77The intention of this project is to maintain a set of custom ` react-scripts ` that will allow you to
88create React WordPress themes as easily as ` create-react-app ` allows other devs to create their apps.
@@ -19,6 +19,7 @@ Check it out:
1919[ Let's build a WordPress theme with React: Part 1 (Setup)] ( http://michaelsoriano.com/wordpress-theme-react-part-1-setup/ )
2020
2121## Readme Contents <!-- omit in toc -->
22+
2223For more details check out the rest of this document.
2324
2425- [ Creating a New Theme] ( #creating-a-new-theme )
@@ -58,7 +59,7 @@ To create a WordPress theme using the `create-react-wptheme`, follow these steps
5859 - Write access for your web server is only needed during this setup step.
5960 - ** You can revoke write access after the setup has completed.**
6061 - Interested (paranoid?) about what it's doing? Check out the file: ` <your theme folder name>/index.php `
61- - When that's done the theme tells you to ` Please restart the Nodejs watcher now ...`
62+ - When that's done you'll see: ` Now, back in your command prompt, rerun the "start" script again ...`
6263 - To do that, go back to your command prompt where you first ran ` npm run start ` and rerun that same command again.
6364- In a few seconds you should see your browser load with the standard create-react-app page, but it's running as a WordPress theme!
6465
@@ -154,16 +155,17 @@ When that command finishes, your optimized files are located in a folder that ca
154155
155156Here's an example showing which folder to deploy to your server:
156157
157- - ...wp-content
158- - themes
159- - my-theme
160- - my-theme ` <- deploy this folder to your production server's themes folder `
161- - react-src
162- - !READY_TO_DEPLOY!.txt
158+ - ...wp-content
159+ - themes
160+ - my-theme
161+ - my-theme ` <- deploy this folder to your production server's themes folder `
162+ - react-src
163+ - !READY_TO_DEPLOY!.txt
163164
164165If you need to continue developing your theme, simply:
165- - ` cd react-src `
166- - ` npm run start `
166+
167+ - ` cd react-src `
168+ - ` npm run start `
167169
168170And all your theme files will reappear.
169171
0 commit comments