Skip to content

egonoid/react-template

Repository files navigation

Travis CI Build

egonoid React Template

Use this template when creating a new react project. It's based on create-react-app for more information and docs visit create-react-app.dev

Getting started

$ yarn
$ yarn start

Features

Linting and formatting

Run all

$ yarn lint

TS Lint

$ yarn lint:ts

stylelint

$ yarn lint:scss

Prettier

$ yarn format

Git Hooks

The pre-commit hook runs linting on ts and scss files, and formats all staged files with prettier.

The pre-push hook runs all unit tests.

Storybook

Use Storybook to develop components in an independent environment that allows you to simulate different states.

$ yarn storybook

Analyze bundle and chunk size

$ yarn build && yarn analyze

Unit Testing

Watch mode

$ yarn test

Single run

$ yarn test:single

Debugging (VS Code)

While running yarn start the debugger can be attached by pressing F5.

Note: You need to have to have Debugger for Chrome installed.