Skip to content

lnked/react-starter

Repository files navigation

license Build Status

Code Climate Issue Count


React-starter a react web starter kit.

Installation

GIT

git clone -b master git@github.com:lnked/react-starter.git

OR

git init
git remote add origin git@github.com:lnked/react-starter.git
git fetch origin
git pull origin master

Then run command

yarn

OR

npm i

Run tasks

Start dev-server

yarn start

Build without compress

yarn build

Build with compress

yarn release

Analyze code

yarn analyze

Stats

yarn stats

Lint scripts

yarn lint:scripts

Lint styles

yarn lint:styles

Lint styles and scripts

yarn lint

Fix

yarn run lint:fix

Build with environment

yarn release --env example

Requires a file .env.example file in the root folder of the project You can add any files to your environments

Code generation commands

Add layout

yarn add-layout --name test-layout
yarn add-layout --name 'test layout'

Optional

yarn add-layout --name test-layout --type class (default)
yarn add-layout --name test-layout --type function

Add page

yarn add-page --name test-page
yarn add-page --name 'test page'

Optional

yarn add-page --name test-page --type class (default)
yarn add-page --name test-page --type function

Add fragment

yarn add-fragment --name test-fragment
yarn add-fragment --name 'test fragment'

Optional

yarn add-fragment --name test-fragment --type class (default)
yarn add-fragment --name test-fragment --type function

Add component

yarn add-component --name test-component
yarn add-component --name 'test component'

Optional

yarn add-component --name test-component --type class (default)
yarn add-component --name test-component' --type function

Features

  • Webpack 4
  • TypeScript
  • Styled Components
  • PostCss / scss
  • Svg sprites
  • MobX
  • Tests
  • Code generation

Get in touch