add more plugins, rename some

This commit is contained in:
Sebastian McKenzie
2015-09-15 06:12:46 +01:00
parent 3e8cbc60eb
commit 9969224a93
328 changed files with 2013 additions and 1543 deletions

View File

@@ -0,0 +1,3 @@
node_modules
*.log
src

View File

@@ -0,0 +1,35 @@
# babel-plugin-transform-function-bind
Compile function bind operator to ES5
## Installation
```sh
$ npm install babel-plugin-transform-function-bind
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["transform-function-bind"]
}
```
### Via CLI
```sh
$ babel --plugins transform-function-bind script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["transform-function-bind"]
});
```

View File

@@ -0,0 +1,11 @@
{
"name": "babel-plugin-transform-function-bind",
"version": "1.0.0",
"description": "Compile function bind operator to ES5",
"repository": "babel/babel",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"babel-plugin"
]
}

View File

@@ -0,0 +1,7 @@
export default function () {
return {
visitor: {
// your visitor methods go here
}
};
}