Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

A boilerplate template for a React Wordpress theme with Redux(and Redux Thunk), Bootstrap 4, additional plugins, and a Webpack 4 config that extracts Sass and assets into the dist folder. Jest is included as well, with some example test files.

License

Notifications You must be signed in to change notification settings

tone4hook/wp-react-redux-starter

Repository files navigation

WP React Redux Starter

A boilerplate template for a React Wordpress theme with Redux(and Redux Thunk), Bootstrap 4, additional plugins, and a Webpack 4 config that extracts Sass and assets into the dist folder. Jest is included as well, with some example test files.

This is meant as a starting point for a React Wordpress theme with a set up that is friendly to WP devs(components are similar to a regular WP theme).

In theme options, the menu needs to be set as Main Menu in order to show up.

Getting Started

Download, clone, or fork the repo. Using Terminal or Command Prompt navigate to the wp-react-redux-starter directory.

  • npm install to install packages and dependencies
  • npm start to run local server
  • npm run build to build the project in development mode (compiles in dist directory)
  • npm run prod to build the project in production mode (compiles in dist directory)
  • npm test to run Jest tests
  • npm test:watch to use Jest to watch

Add the folder to your Wordpress theme folder. (the build needs to be complete in the dist folder)

Prerequisites

  • Node.js (with NPM)

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A boilerplate template for a React Wordpress theme with Redux(and Redux Thunk), Bootstrap 4, additional plugins, and a Webpack 4 config that extracts Sass and assets into the dist folder. Jest is included as well, with some example test files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages