Understanding starter repos is sometimes hard, this repo will show you how we got there. Commit by commit
The master branch you can treat as normal, it will contain instructions and general info about the repo.
The other branches are different starting points, some may be Universal, others have Redux. These branches will be rebased/rewritten when being updated to ensure the best history possible. This means you should always reset those branches, read CONTRIBUTING.md for information on how to contribute updates.
- Clone this repo
- Pick a branch as a starting point
- Checkout
master
- Run
git reset --hard origin/<branch-name>
- this will reset master to have the history of the chosen branch - If there is anything you don't like, revert that commit out (you may have to resolve small merge conflicts)
- Run
git remote -d origin
- You now have a fresh repo with clean history of how each dependency got into your project at this point.
- You can point your team at this repo to learn about the way your project is configured
- From this point change anything you want, hopefully the clean history makes it easier
Not done yet, focusing on the univeral-react branch. This will end up being mainly the same with the last few commits dropped off.
This branch is much like the webpack-react-redux branch, except it also has support for universal rendering (initial render on the server).