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

canonical-web-and-design/react-starter

Repository files navigation

Canonical Webteam React Starter

NOTE

New react projects should be bootstrapped with CRA, and this repo should be generally considered deprecated.

This provides a minimal react starter application with some sensible defaults:

Getting Started

  1. clone this repo
  2. run yarn install
  3. run yarn start to start the dev-server.

Tests & Coverage

  • run yarn test
  • run yarn coverage

What's here

Webpack 4

  • ES7/2016
  • environment based configuration
  • es-lint with AirBnB style
  • Prettier
  • Precommit hooks for linting and formatting.
  • JS/CSS minification/uglification.
  • dev server with hot module replacement

Testing

  • Jest - Facebook's test runner.
  • Enzyme - AirBnB's react testing utils, including a jQuery like API for component manipulation and DOM traversal.

Vanilla integration

  • SASS integration via sass-loader and node-sass-chokidar.
  • Using vanilla-framework-react
  • Example vanilla component usage in components/HelloWorld.js

Misc

  • Redux - state management with actions and reducers.
  • Lodash - swissarmy knife lib with many useful functional tools.

Not Included, but probably should be

Not Included, project dependant

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •