Coder Social home page Coder Social logo

xingtongju / react-redux-router-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enjoyfuture/react-redux-router-base

1.0 1.0 0.0 1.42 MB

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

JavaScript 78.30% Shell 1.75% CSS 18.81% HTML 1.13%

react-redux-router-base's Introduction

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

相关参考

react-redux-router-base's People

Contributors

hopefuture avatar tedyhy avatar txy920 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.