UNPKG

babel-autobind

Version:

it binds methods to its class prototype + Compatible with stub/spy used on unit-test frameworks (Sinon.Js, enzyme,...so on) + Can be integrated with 3rd party decorators (like @autobind decorator)

69 lines (68 loc) 2.26 kB
{ "name": "babel-autobind", "version": "0.3.4", "description": "it binds methods to its class prototype + Compatible with stub/spy used on unit-test frameworks (Sinon.Js, enzyme,...so on) + Can be integrated with 3rd party decorators (like @autobind decorator)", "main": "index.js", "scripts": { "build": "babel -d lib/ src/", "prepublish": "npm run build", "test": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha -- test/*Spec.js", "coverage": "istanbul cover _mocha -- --ui bdd -R spec -t 5000;open ./coverage/lcov-report/index.html", "cover": "node_modules/.bin/babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha", "coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls" }, "repository": { "type": "git", "url": "git+https://github.com/abdennour/babel-autobind.git" }, "keywords": [ "autobind", "decorator", "test", "stub", "sinon", "mocky", "spy", "react", "babel", "bind", "prototype", "addon", "unit-test", "expect", "autobind-decorator", "enzyme" ], "author": "Abdennour TOUMI <http://abdennoor.com>", "license": "MIT", "bugs": { "url": "https://github.com/abdennour/babel-autobind/issues" }, "homepage": "https://github.com/abdennour/babel-autobind#readme", "devDependencies": { "autobind-decorator": "^1.3.4", "babel-cli": "^6.18.0", "babel-core": "^6.18.2", "babel-istanbul": "^0.11.0", "babel-plugin-react-html-attrs": "^2.0.0", "babel-plugin-syntax-decorators": "^6.13.0", "babel-plugin-transform-decorators-legacy": "^1.3.4", "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", "babel-polyfill": "^6.16.0", "babel-preset-es2015": "^6.18.0", "babel-preset-react": "^6.16.0", "babel-preset-stage-1": "^6.16.0", "console-info": "0.0.4", "coveralls": "^2.11.15", "enzyme": "^2.6.0", "expect": "^1.20.2", "jsdom": "9.8.3", "jsdom-global": "2.1.0", "mocha": "^3.2.0", "mocha-lcov-reporter": "^1.2.0", "react": "^15.4.1", "react-addons-test-utils": "^15.4.1", "react-dom": "^15.4.1", "sinon": "^1.17.6" } }