{"name":"babel-preset-vue","version":"0.1.0","description":"Babel preset for all Vue plugins.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/babel-preset-vue.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"github.com/egoist"},"engines":{"node":">=4"},"scripts":{"test":"echo lol"},"files":["index.js"],"keywords":["babel","vue","jsx","preset"],"dependencies":{"babel-helper-vue-jsx-merge-props":"^2.0.2","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-vue-jsx":"^3.1.2"},"gitHead":"08da0da2122d43d8a7db85c15a910222c88ed72d","bugs":{"url":"https://github.com/egoist/babel-preset-vue/issues"},"homepage":"https://github.com/egoist/babel-preset-vue#readme","_id":"babel-preset-vue@0.1.0","_shasum":"adb84ceab3873bd72606fdd3f7047640f032301f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"adb84ceab3873bd72606fdd3f7047640f032301f","tarball":"http://registry-npm.ywwl.com/babel-preset-vue/download/babel-preset-vue-0.1.0.tgz","integrity":"sha512-a3zyda+5iYnBDRoDtf567/uGt14G1jqdlkGenJtoy+z8tOWFhT/cgtgYdevQPwjKS3CM+pwPXWEgvgiC/l8blg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfklqII9ZIIbhY58CFSfaTXHTFeNe0IRXENx3mvUl2YgIhAPH8aktN7TmUF6m/32uL1jMIAKEFHNy0JwjisSFvaAYT"}],"size":1318,"noattachment":false,"key":"/babel-preset-vue/-/babel-preset-vue-0.1.0.tgz"},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-preset-vue-0.1.0.tgz_1478504793906_0.3788904796820134"},"directories":{},"readme":"# babel-preset-vue\n\nBabel preset for all Vue plugins.\n\n## Install\n\n```bash\nnpm install -D babel-preset-vue\n```\n\nCDN: [UNPKG](https://unpkg.com/babel-preset-vue/)\n\n## Usage\n\nIn your `.babelrc`:\n\n```json\n{\n  \"presets\": [\"vue\"]\n}\n```\n\nYou can toggle specific features, by default all features are enabled, e.g.:\n\n```json\n{\n  \"presets\": [\n    [\"vue\", {\n      \"eventModifiers\": false\n    }]\n  ]\n}\n```\n\n\n## JSX Features\n\n> Note that following features are not available for babel v7 currently, you may disable them if necessary.\n\n### Event modifiers\n\nOption name: `eventModifiers`\n\nUses [`babel-plugin-jsx-event-modifier`](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers) for adding event modifiers support.\n\nExample:\n```js\nVue.component('hello-world', {\n  methods: {\n    method () {\n      console.log('clicked')\n    }\n  },\n  render () {\n    return (\n      <div>\n        <a href=\"/\" onClick:prevent={this.method} />\n      </div>\n    )\n  }\n})\n```\n\n### v-model\n\nOptions name: `vModel`\n\nUses [`babel-plugin-jsx-v-model`](https://github.com/nickmessing/babel-plugin-jsx-v-model) for adding `v-model` support.\n\nExample:\n\n```js\nVue.component('hello-world', {\n  data: () => ({\n    text: 'Hello World!'\n  }),\n  render () {\n    return (\n      <div>\n        <input type=\"text\" v-model={this.text} />\n        {this.text}\n      </div>\n    )\n  }\n})\n```\n\n## License\n\nMIT &copy; [EGOIST](https://github.com/egoist)\n","publish_time":1478504795420,"_cnpm_publish_time":1478504795420,"dist-tags":{"latest":"2.0.2"}}