项目作者: lnked

项目描述 :
React Starter Kit
高级语言: JavaScript
项目地址: git://github.com/lnked/react-starter.git
创建时间: 2017-01-29T00:03:55Z
项目社区:https://github.com/lnked/react-starter

开源协议:MIT License

下载


license
Build Status

Code Climate
Issue Count


React-starter a react web starter kit.

Installation

GIT

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

OR

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

Then run command

  1. yarn

OR

  1. npm i

Run tasks

Start dev-server

  1. yarn start

Build without compress

  1. yarn build

Build with compress

  1. yarn release

Analyze code

  1. yarn analyze

Stats

  1. yarn stats

Lint scripts

  1. yarn lint:scripts

Lint styles

  1. yarn lint:styles

Lint styles and scripts

  1. yarn lint

Fix

  1. yarn run lint:fix

Build with environment

  1. 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

  1. yarn add-layout --name test-layout
  2. yarn add-layout --name 'test layout'

Optional

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

Add page

  1. yarn add-page --name test-page
  2. yarn add-page --name 'test page'

Optional

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

Add fragment

  1. yarn add-fragment --name test-fragment
  2. yarn add-fragment --name 'test fragment'

Optional

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

Add component

  1. yarn add-component --name test-component
  2. yarn add-component --name 'test component'

Optional

  1. yarn add-component --name test-component --type class (default)
  2. 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