Giter Site home page Giter Site logo

libaohuacc / react-luo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from javaluo/react-luo

0.0 0.0 0.0 5.05 MB

React脚手架 react redux webpack3 babel6 eslint antd

Home Page: http://isluo.com/work/react-luo/index.html

License: MIT License

JavaScript 88.88% CSS 9.21% HTML 1.92%

react-luo's Introduction

react-luo

构建

npm install       # 安装依赖模块
npm run dev       # 运行开发环境,默认监听8888端口
npm run build     # 正式打包,用于生产环境

分支

  • react-luo-react-routerV4
    配置了react-router4.0版本的分支
  • react-luo-noEslint-ES7
    取消了Eslint,配置了支持ES7装饰器的分支

更新日志

  • 2017-09-13
    1.创建了新的分支 配置了react-router 4.0

  • 2017-09-07
    1.使用react-hot-loader 3.0.0 配置了HMR热替换,不再需要以前的静态资源预编译了
    2.配置了Antd自定义主题所需的代码,现在可以直接在package.json中的theme字段定义自己的Antd主题

特性

  • HMR局部热替换

  • HappyPack多线程编译

  • 最终打包后,会在/build文件夹下生成 index.html 和 /dist文件夹,这两个东西是最终需要的。

目录结构

.
├── src                                 # 项目代码目录
│   ├── a_action                        # 所有的action
│   ├── a_component                     # 所有的UI类组件
│   ├── a_container                     # 所有的控制类组件
│   ├── a_reducer                       # 所有的reducer
│   ├── assets                          # 所有的图片、文件等资源
│   ├── css                             # 所有的样式文件
│   ├── route                           # 路由
│   ├── store                           # store数据中心
│   ├── util                            # 自定义工具
│   ├── app.js                          # 项目入口文件
│   ├── index.html                      # 开发环境所用的主页html文件
│   └── index_template.html             # 生产环境打包时所用的主页html文件

预览地址

http://isluo.com/work/react-luo/index.html

react-luo's People

Contributors

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