{"name":"@vue/babel-sugar-v-on","version":"1.2.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-v-on"},"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.2.0","@babel/core":"^7.2.0","@babel/preset-env":"^7.2.0","@vue/test-utils":"^1.0.0-beta.26","ava":"^0.25.0","jsdom":"^13.0.0","jsdom-global":"^3.0.2","ninos":"^2.0.2","nyc":"^13.1.0","rollup":"^0.67.4","rollup-plugin-babel":"4.0.3","rollup-plugin-babel-minify":"^6.2.0","rollup-plugin-istanbul":"^2.0.1","vue":"^2.5.17","vue-template-compiler":"^2.5.17"},"dependencies":{"@babel/plugin-syntax-jsx":"^7.2.0","@vue/babel-plugin-transform-vue-jsx":"^1.2.0","camelcase":"^5.0.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"nyc":{"exclude":["dist","test"]},"gitHead":"a6f821f59f55f5dcb9de8850d2105ebd92e1c864","_id":"@vue/babel-sugar-v-on@1.2.0","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-7aVgdsy3NpoxPcuZ3XTBoY+31jhmAJclsxnhrArP6CzX2dCNDSwd3Gb8zFO5KEf8h7D3yvYhYiO0L+v90F8uLg==","shasum":"3dd9e221cff95a842b1e0aea812e41667b95ca7a","tarball":"http://registry-npm.ywwl.com/@vue/babel-sugar-v-on/download/@vue/babel-sugar-v-on-1.2.0.tgz","fileCount":3,"unpackedSize":7215,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfiZSGCRA9TVsSAnZWagAAsooP/0DTB2joBceTu8sT6Ivm\no8Pa0N0iIWtb03R8yKciyIsRoRhRRLh1qRtplRs+2CAAwv/lpdI9stX3DjPX\n/lTsoNHaoVtUGiOgUeBAtzqBHGd2vPCnApeS4aBASyzS4f160LMB392YLJXO\ngpN8GFk/RXaSsXvG/Jj2bWwTVX0QqIqCtoG0qlBWdYExa2O9XznBYIewnFsT\nNjt84BLENXB/yAhvGW/Lh/wyKuE2wyHgeyooHHnd1i7t4vwu0KUfuBkoBWW/\ngWX9lQvzYrHA3InkO9WOY8fm1RNerRa1cR7t9Mm+4LBduJOCBFft5S99P9WY\nghywN9mjLx0HE9oY11G2/iAlCqde3Q5JlLJpHmAhyg9UPbt/9uyBWVu4U4Ez\ngW3l912ijpIrmnGIJtexkbhiIv7T7Pmmg7wmaimnIyZ3iGhX0TD+wdCLPgrf\nH55XAdpf0rYh/DRCoQVu3TkDwNm6rCaqcdKBs/x90tSEU0x0RDhsj8Q4vWNB\n3Ao2gdkf2hXcuH4xdVZFlmTqxsbHBQPB4HSsQG+8iKjEUHdLaXqQhbQV/qGd\nqJ1WpIT+H1hW9j4Q4X3psk9pQ6wjN1/mN4OnCDNbK72Qh+nUuBoZWbegHHv9\nnVHuwmL8VilppYG/wLbMo9eIJW4/swyWOGA9g9vgOQHAN9PfNpQvvBYQD8gD\nwwEf\r\n=f36l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDlLAwMTyrzBiL+SJgwjT7UvTTwQHYEPhnEePcbiGMqwIhALAPlpEBkM6y2HahcJ1V3RjFSaUZcRj+YBrPsqb9cpwF"}],"size":3130,"noattachment":false,"key":"/@vue/babel-sugar-v-on/-/@vue/babel-sugar-v-on-1.2.0.tgz"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"},{"name":"nickmessing","email":"dot.nick.dot.messing@gmail.com"}],"_npmUser":{"name":"soda","email":"haoqunjiang+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-sugar-v-on_1.2.0_1602851974146_0.31990812809779134"},"_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":1602851974242,"_cnpm_publish_time":1602851974242,"dist-tags":{"latest":"1.4.0"}}