Skip to content

A template with webpack 4 + react 16 + react-router 4 + babel 7 setup for projects startup

License

Notifications You must be signed in to change notification settings

dwqs/react-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-startup

A template with webpack 4 + react 16 + react-router 4 setup for projects startup.

Install/安装

Install it by chare or vue-cli/可以通过 chare 或者 vue-cli 来安装:

chare init dwqs/react-startup your-project-name -o remote-url-of-your-project

Above command will init your project with this template, and associate it with the remote url.(vue-cli doesn't provide this feature current)./上述命令会初始你的项目, 并将你的项目关联到远程的 remote-url. vue-cli 目前不能在初始化项目时关联远程仓库.

字段说明

如果通过 chare 或者 vue-cli 来安装, 在安装的过程中,会需要输入一些基本信息,可以查看 meta.js 来了解. 咨询的信息都有默认值, 一般选择默认就行, 模板生成之后也可以再更改.

一些字段说明如下:

  • port: 客户端的端口号, 默认是 3000
  • state: 状态管理工具选择,目前支持 mobx和 redux
  • prefix: Ajax 请求的前缀, 如 http://test.com, 默认是 ''.

About

A template with webpack 4 + react 16 + react-router 4 + babel 7 setup for projects startup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published