Skip to content

bfillmer/greenfield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greenfield

Opinionated application organization and libraries for bootstrapping new React-based applications.

Build pipeline provided by Create React App.

Commands

npm i # install dependencies
npm start # development server
npm test # Jest in watch-mode
npm run build # production build

All commands use NODE_PATH to leverage absolute pathing to src/ for cleaner imports in source code.

Commit Hooks

Husky commit hooks are setup by default to attempt to run a static build on any commit. This ensures that everything has been linted and a build would be successful if the code went to production.

While this boilerplate does not have tests, if any were added the husky configuration in package.json should be changed to:

"husky": {
  "hooks": {
    "pre-commit": "npm run ci-build && npm run ci-test"
  }
}

Library Overview