react-fatigue-dev

Module of modules for making modules

  • 所有者: tj/react-fatigue-dev
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

React Fatigue Dev

Module of modules and Makefile to reduce the amount of boilerplate when developing React components.

Installation

$ npm install tj/react-fatigue-dev

Usage

Add this module as a dev dependency, and add the following to your project's Makefile:

include node_modules/react-fatigue-dev/Makefile

You'll now have a number of targets available, see make help for details. You may customize the default behaviour
by overriding the Makefile variables, view ./Makefile to see the defaults.

For example use port :8000 instead of :3000, and instead of serving ./example, serve ./test:

SERVER_FLAGS = -p 8000 ./test
include node_modules/react-fatigue-dev/Makefile

Check out react-click-outside for a full example.

Includes

  • fatigue
  • babel-cli
  • babel-preset-es2015
  • babel-preset-react
  • babel-preset-stage-0
  • babelify
  • browserify
  • browserify-hmr
  • ecstatic
  • react
  • react-dom
  • watchify
  • other crazy shit, wtf

.babelrc

Example babelrc:

{
  "presets": ["es2015", "react", "stage-0"],
  "plugins": [],
  "env": {
    "development": {
      "plugins": [
        ["react-transform", {
          "transforms": [{
            "transform": "react-transform-hmr",
            "imports": ["react"],
            "locals": ["module"]
          }]
        }],
        "transform-runtime",
        "transform-decorators-legacy"
      ]
    }
  }
}

Badges




tjholowaychuk.com  · 
GitHub @tj  · 
Twitter @tjholowaychuk

主要指标

概览
名称与所有者tj/react-fatigue-dev
主编程语言Makefile
编程语言Makefile (语言数: 1)
平台
许可证
所有者活动
创建于2016-02-25 00:14:00
推送于2017-04-05 06:34:10
最后一次提交2016-11-13 10:08:17
发布数0
用户参与
星数314
关注者数7
派生数17
提交数26
已启用问题?
问题数7
打开的问题数4
拉请求数2
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?