{"name":"@vue/babel-sugar-v-on","version":"0.1.0","description":"Babel syntactic sugar for v-model support in Vue JSX","main":"dist/plugin.js","repository":{"type":"git","url":"https://github.com/vuejs/jsx/tree/master/packages/babel-sugar-event-modifiers"},"author":{"name":"Nick Messing","email":"dot.nick.dot.messing@gmail.com"},"license":"MIT","private":false,"scripts":{"pretest:snapshot":"yarn build:test","test:snapshot":"nyc --reporter=html --reporter=text-summary ava -v test/snapshot.js","pretest:functional":"yarn build:test && nyc --reporter=html --reporter=text-summary babel test/functional.js --plugins ./dist/plugin.testing.js,./node_modules/@vue/babel-plugin-transform-vue-jsx/dist/plugin.js --out-file test/functional-compiled.js","test:functional":"ava -v test/functional-compiled.js","build":"rollup -c","build:test":"rollup -c rollup.config.testing.js","test":"rm -rf coverage* && yarn test:snapshot && mv coverage coverage-snapshot && yarn test:functional && mv coverage coverage-functional","prepublish":"yarn build"},"devDependencies":{"@babel/cli":"^7.0.0-rc.3","@babel/core":"^7.0.0-rc.3","@babel/preset-env":"^7.0.0-rc.3","@vue/test-utils":"^1.0.0-beta.24","ava":"^0.25.0","jsdom":"^12.0.0","jsdom-global":"^3.0.2","ninos":"^2.0.2","nyc":"^12.0.2","rollup":"^0.65.0","rollup-plugin-babel":"4.0.0-beta.8","rollup-plugin-babel-minify":"^5.0.0","rollup-plugin-istanbul":"^2.0.1","vue":"^2.5.17","vue-template-compiler":"^2.5.17"},"dependencies":{"@babel/plugin-syntax-jsx":"^7.0.0-rc.3","@vue/babel-plugin-transform-vue-jsx":"^0.1.0","camelcase":"^5.0.0"},"nyc":{"exclude":["dist","test"]},"_id":"@vue/babel-sugar-v-on@0.1.0","_npmVersion":"6.2.0","_nodeVersion":"8.11.3","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"dist":{"integrity":"sha512-jtSDXHzZVYE2Mo8zqmu6fhLVoAaV62LCA3QCvhVMu2FVB4UjGySisWdnOZm2etZhnBoocmIzOoKF6ae7SD0NEw==","shasum":"b89caab00a56fd6ac079bc160ae560e3e2dc1f26","tarball":"http://registry-npm.ywwl.com/@vue/babel-sugar-v-on/download/@vue/babel-sugar-v-on-0.1.0.tgz","fileCount":11,"unpackedSize":341535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbhA4ICRA9TVsSAnZWagAAcUAP/3TILS6GeBZ1IY5cXaP5\nNl4xxPB+Cwq4CeBxr6wmYQ67xv5tBzy2jpwEIirJsCP0gutM4PEOvUtfjXPl\n90bVGvbbOjdxZVkI1hvyIUT4iTzKSo3OgYEqf8IKiWpv9Mnc0hWNJiPaYMF2\n6sdX3DTthy3YArmDXpU3nc1iPQUhwurs1CpRcKrN/w03xgFfeE/GTCCALdK2\nXEFyOrMA1eDsq8Q4+QIdVGrk0dhNSiqCtXwX1nGF1xXsEqUhPiTMn28rCEbP\nKUNLVFqTM3p0L/DVH8IUAGpsckqsnTvAQ84X/uzZckUM5oOk01UVK4E66xa7\nPRm6Eewm8CCcsj0sTekhO6Dslazmgb2e7y0M7e3JA4ot/4slwfHw1rC00T4z\ntjRGLagKfSv77V2uTXqJS6Za+U4XTmMuk8zTZOXi3j80+6Y97QIdMvp9GzEq\nx5ZYp/AEu+f+3B35J0ihiMVYoVNeZVBOY8pe4Dh+xLQmu4cKQrT1BlNYSAtl\nmpiH+yYmCYCX/W9D3ewHDbQeJTuG0ULgHQ34b36Yr/0+jlaLgPiqobIIHSbJ\nFzftHKtFRcr0UhL4vZUZqen1ucxcBoQUYY7CN+3bP5gTSliLLxkbySpKdhc/\nO2ap8nhoYZnNdZcQOVqG9WRIsSHWLq3TGLfZxyGDdr+mU60n1Mf/QwwnKW8e\nJisr\r\n=dWHT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHudApOOQSNREyz8AxBCazGLUioUgdtGBpsZpxo9ZD1iAiBSTvl5L113t6LMKySs+gG+pBzp6XltKgFxLhrA1BvHpw=="}],"size":128413,"noattachment":false,"key":"/@vue/babel-sugar-v-on/-/@vue/babel-sugar-v-on-0.1.0.tgz"},"maintainers":[{"name":"akryum","email":"guillaume.b.chau@gmail.com"},{"name":"chrisvfritz","email":"chrisvfritz@gmail.com"},{"name":"eddyerburgh","email":"edward.yerburgh@gmail.com"},{"name":"ktsn","email":"ktsn55@gmail.com"},{"name":"michalsnik","email":"msajnog93@gmail.com"},{"name":"mysticatea","email":"star.ctor@gmail.com"},{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"},{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"znck","email":"rahulkdn@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-sugar-v-on_0.1.0_1535381000219_0.9486138082308311"},"_hasShrinkwrap":false,"readme":"## @vue/babel-sugar-v-on\n\nSyntactic sugar for v-on in JSX.\n\n### Babel Compatibility Notes\n\n- This repo is only compatible with Babel 7.x, for 6.x please use [vuejs/babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)\n\n### Usage\n\nInstall the dependencies:\n\n```sh\n# for yarn:\nyarn add @vue/babel-sugar-v-on\n# for npm:\nnpm install @vue/babel-sugar-v-on --save\n```\n\nIn your `.babelrc`:\n\n```json\n{\n  \"plugins\": [\"@vue/babel-sugar-v-on\"]\n}\n```\n\nHowever it is recommended to use the [configurable preset](../babel-preset-jsx/README.md) instead.\n\n### Details\n\nThis plugin adds v-on to the JSX and tries to mirror the same behaviour as in vue-template-compiler, with a few differences:\n\n1.  You should use underscore (`_`) instead of dot (`.`) for modifiers (`vOn:click_prevent={this.test}`)\n2.  It is recommended to use camelCase version of it (`vOn`) in JSX, but you can use kebab-case too (`v-on`).\n\n```js\nexport default {\n  methods: {\n    test() {\n      console.log('Hello World')\n    },\n  },\n  render(h) {\n    return (\n      <div>\n        <a href=\"https://vuejs.org\" vOn:click={this.test}>Vue</a>\n      </div>\n    )\n  },\n}\n```\n","publish_time":1535381000304,"_cnpm_publish_time":1535381000304,"dist-tags":{"latest":"1.4.0"}}