A lightweight and simple React and Redux boilerplate, using Jest as a test harness.
sudo npm i|installsudo npm run dev|build(build is prod)
- Build processes for dev & prod
- Hot reloading
- SCSS compiling
srcis where all the code issrc/stylesheetsis where all the SCSS goes. Directories used for:utils(things like a grid, loaders, and errors)variables(colours, widths etc can be kept in here)ui(things like a tabslider, gallery or menu)components(where styles for more specialised components go)
src/modulesis where independent pieces of logic can go so they're reusable (e.g API or form validations)src/commonis where common components are keptsrc/[component_name]is how large parent components are made (e.g app)
- Bundles React with
jsxsyntax - Compiles ES6 (with Babel)
- Linting (with ESLint)
- Build with webpack
- Develop locally with webpack-dev-server
- Jest test harness
Cian O'Leary for teaching me React and helping set up the pipeline.