made-from-scratch react boiler. with webpack & babel, yarn.
although create-react-app is great, sometimes you want a home cooked meal.
- react 15
- webpack 3
- es6 via babel 6
- CSS modules
- Jest/Enzyme for testing
- eslint/standard & prettier for linting & JS standards
- lint-staged/husky for pre-commit lint checker
- node 8.1.6
- express 4
- change the
.env_samplefile to.env - change the apixu key... in lieu of
xxxxxxxxx, add your own - confirm you have
yarninstalled (npm install yarn -g) - confirm you have node installed (
node -v; fwiw, i havev8.1.4) - do the following:
$ yarn install
$ yarn start
-> http://localhost:8080For testing, we use Jest + Enzyme, type: $ yarn test
- colocate CSS
- css modules should be imported via style-loader & css-loader
- JSX files have
.jsxextension - one component, one file
- dont block the event loop!
- test coverage bro
- see readme from
nrirepo - add redux
- add react router 4
- add logging & error handling (https://github.com/mzabriskie/axios#handling-errors)
- less/sass/nextcss
- css linter
- loading spinner
- fix package.json proxy setting
- CSS/HTML: add reset/normalize
- add JSDoc (see below)
/**
* Some description here about what this method does
* @param {string} range - param 1 description
* @param {Object} data - param 2 description
* @return {Object} something - return value from this function
*/