Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

NewDadaFE/generator-react-impression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

已废弃,迁移到generator

generator-react-impression

React + Redux + React Router + React Impression + Webpack 3

English Version

安装

首先, 安装Yeomangenerator-react-impression:

yarn global add yo generator-react-impression

然后创建新项目:

yo react-impression

或者升级旧项目:

cd YOUR_PROJECT_FOLDER
yo react-impression --upgrade

开发

首先, 进入项目目录并执行如下命令:

yarn start

然后, 打开浏览器并访问 http://localhost:8080

发版

首先, 在package.json文件中修改七牛云配置并加入密钥:

{
  "deploy": {
    "DOMAIN": "fe.imdada.cn",
    "BUCKET": "dada-fe",
    "ACCESS_KEY": "",
    "SECRET_KEY": ""
  }
}

然后执行如下命令之一:

# 小版本更新,如修复问题
npm version patch -m 'Release version %s'

# 大版本更新,如增加功能
npm version minor -m 'Release version %s'

# 手动指定版本号,如1.0.0
npm version 1.0.0 -m 'Release version %s'

# 测试版本
yarn debug

最佳实践

License

MIT