xingtongju / react-redux-router-base

基于 Webpack, React, Redux, Router, Immutable, etc. 搭建的前端开发框架

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-react-redux-base

关于 url 二级路径即上下文 context 的说明

基础项目中 urlContext 设置为 '',如果实际项目中 urlContext 不是 '',需要修改项目中对应的变量值

  • /server/config/base.js urlContext

Server

generate dll file

At first, generate dll file. You need to exec the following command.

npm run dll

start server

npm start

start server after build

npm run start:prod

Build

Development

NODE_ENV=development npm run build

Beta

NODE_ENV=beta npm run build

production

NODE_ENV=production npm run build

Unit Test

Test

npm test

If you writ unit test incremental, you should use the following command, it will save compile time.

Test Watch

npm run test-watch

检查单元测试的覆盖度

npm run check-coverage

说明,用来查看测试通过率,后面的参数值可以修改,分别是表达式,条件分支,函数,行数 百分比

"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100"

Unit Test Frame

Development explain

  • shortcut key: control + h , open DevTool panel
  • shortcut key: control + w , change DevTool panel position

关于 sass 的说明

由于私服不能连接外网下载安装 node-sass 过程中需要的文件,故 forked 了包含 node-sass 依赖的包, 重新发布了带 vendor 的 node-sass 和依赖 node-sass 的包,新的依赖包名称对应关系如下

官方的依赖 加入 vendor 的依赖 官方当前版本
node-sass node-sass-vendor 4.5.3
sass-loader-joy-vendor sass-loader 6.0.6
sass-true-vendor sass-true
sasslint-loader-vendor sasslint-loader 0.0.1

注意:如官方有新版本时,可以重新 forked 更新自定义的依赖包

Issue

https://github.com/joy-web/react-redux-router-base/issues

Change Log

Please view here

相关参考

About

基于 Webpack, React, Redux, Router, Immutable, etc. 搭建的前端开发框架


Languages

Language:JavaScript 78.3%Language:CSS 18.8%Language:Shell 1.8%Language:HTML 1.1%