{"name":"babel-plugin-dva-hmr","version":"0.1.0","description":"Hmr plugin for dva.","main":"lib/index.js","scripts":{"build":"rm -rf lib && ./node_modules/.bin/babel src --out-dir lib --ignore __tests__","test":"babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha --no-timeouts","debug":"mocha --require babel-core/register --require babel-polyfill --no-timeouts","lint":"eslint --ext .js src","coveralls":"cat ./coverage/lcov.info | coveralls"},"keywords":["dva","babel","babel-plugin","hmr"],"author":{"name":"chencheng","email":"sorrycc@gmail.com"},"peerDependencies":{"redbox-react":"1.x"},"devDependencies":{"babel-cli":"^6.3.13","babel-core":"^6.7.4","babel-istanbul":"^0.7.0","babel-plugin-add-module-exports":"^0.1.2","babel-preset-es2015":"^6.6.0","babel-preset-react":"^6.5.0","babel-preset-stage-0":"^6.3.13","coveralls":"^2.11.6","eslint":"^2.7.0","eslint-config-airbnb":"^6.2.0","expect":"^1.13.4","mocha":"^2.3.4","pre-commit":"~1.1.2"},"babel":{"presets":["es2015","stage-0"],"plugins":["add-module-exports"]},"files":["lib","src"],"license":"MIT","gitHead":"e76adf84b2ab05cd4f66566740ac1f5f21e782af","_id":"babel-plugin-dva-hmr@0.1.0","_shasum":"e798bdc14201cebf476c2f51c7613e95e4c74d4f","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.2.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"shasum":"e798bdc14201cebf476c2f51c7613e95e4c74d4f","tarball":"http://registry-npm.ywwl.com/babel-plugin-dva-hmr/download/babel-plugin-dva-hmr-0.1.0.tgz","integrity":"sha512-pwrwJRuqYvyORreOJp+Rdo1SsWPPqYatcYZhFXJ2LcB7KKZKcH7BKg6ML0s0BlRvuP9hEKwfg2IJDSSLFw4mHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1aDOybMX88xekE7SP6e8rNUbQsyC7dJcjpzi92oFUxwIhAP1mf44l8O69B7qCTTI0GCDAbuT5zp3evGy3lIG0sRRi"}],"size":2646,"noattachment":false,"key":"/babel-plugin-dva-hmr/-/babel-plugin-dva-hmr-0.1.0.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/babel-plugin-dva-hmr-0.1.0.tgz_1470455415209_0.6374012054875493"},"directories":{},"readme":"# babel-plugin-dva-hmr\n\n[![NPM version](https://img.shields.io/npm/v/babel-plugin-dva-hmr.svg?style=flat)](https://npmjs.org/package/babel-plugin-dva-hmr)\n[![Build Status](https://img.shields.io/travis/dvajs/babel-plugin-dva-hmr.svg?style=flat)](https://travis-ci.org/dvajs/babel-plugin-dva-hmr)\n[![Coverage Status](https://img.shields.io/coveralls/dvajs/babel-plugin-dva-hmr.svg?style=flat)](https://coveralls.io/r/dvajs/babel-plugin-dva-hmr)\n[![NPM downloads](http://img.shields.io/npm/dm/babel-plugin-dva-hmr.svg?style=flat)](https://npmjs.org/package/babel-plugin-dva-hmr)\n\nHMR babel plugin for dva.\n\n---\n\n## Install\n\n```bash\n$ npm install babel-plugin-dva-hmr redbox-react@1.x --save-dev\n```\n\n## Usage\n\n.babelrc\n\n```javascript\n{\n  \"plugins\": [\"dva-hmr\"]\n}\n```\n\nConfigure it in .roadhogrc(configure file for [roadhog](https://github.com/sorrycc/roadhog)) only in development mode, [example](https://github.com/dvajs/dva-example-user-dashboard/blob/d6da33b/.roadhogrc#L24-L30)\n\n```javascript\n\"env\": {\n  \"development\": {\n    \"extraBabelPlugins\": [\n      \"dva-hmr\"\n    ]\n  }\n}\n```\n\n## Options\n* `container` —— Specify the root element for `app.start()`.\n* `quiet` —— Don't output any log.\n* `disableModel` —— Disable model HMR.\n\n## License\n\nMIT\n","publish_time":1470455417055,"_cnpm_publish_time":1470455417055,"dist-tags":{"latest":"0.4.2"}}