altaywtf / react-component-starter

Starter project for crafting reusable React Components.

Home Page:http://altayaydemir.github.io/react-component-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Component Starter

Starter project for crafting React Components.

Features

  • CSS modules configuration with SCSS syntax
  • ESlint configuration with Airbnb's React Styleguide
  • Testing setup powered by Jest & Enzyme
  • Example project configuration which builds into docs folder as a static webpage so you can serve it from Github repository

Installation

$ git clone git@github.com:altayaydemir/react-component-starter.git

$ cd react-component-starter

### Yarn
# Install yarn package manager
$ npm install yarn -g 

# Install project dependencies
$ yarn

Usage

Development Flow

# run this while developing your component
$ yarn run start

# run documentation project (separately from first one)
$ yarn run start:docs

# run both tasks concurrently
$ yarn run dev

Production Build

# build the library
$ yarn run build:lib

# build the docs
$ yarn run build:docs

# build'em all!
$ yarn run build

Testing

# run tests in watch mode
$ yarn run test:watch

# run tests and generate code coverage
$ yarn run test

About

Starter project for crafting reusable React Components.

http://altayaydemir.github.io/react-component-starter/


Languages

Language:JavaScript 99.1%Language:CSS 0.9%