UNPKG

babel-plugin-autobind-class-methods

Version:

Babel plugin that binds every class method to "this" with hot reload support

44 lines (43 loc) 1.26 kB
{ "name": "babel-plugin-autobind-class-methods", "version": "5.0.1", "description": "Babel plugin that binds every class method to \"this\" with hot reload support", "main": "lib/index.js", "scripts": { "clean": "rm -rf lib", "build": "babel src -d lib", "example": "npm run build && babel example/input.js -o example/output.js", "test": "mocha --compilers js:babel-register", "test:watch": "npm run test -- --watch", "prepublish": "npm run clean && npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/chris-lock/babel-plugin-autobind-class-methods.git" }, "bugs": { "url": "https://github.com/chris-lock/babel-plugin-autobind-class-methods/issues" }, "homepage": "https://github.com/chris-lock/babel-plugin-autobind-class-methods#readme", "keywords": [ "Babel", "class", "autobind", "this", "bind", "arrow", "react", "method", "property" ], "author": "Karolis Masiulis & Chris Lock", "license": "MIT", "devDependencies": { "babel-cli": "^6.9.0", "babel-helper-plugin-test-runner": "^6.8.0", "babel-preset-es2015": "^6.9.0", "babel-preset-stage-0": "^6.5.0", "mocha": "^2.4.5", "ugnis-eslint": "^1.1.0" } }