rename flow-comments plugin

This commit is contained in:
Henry Zhu 2015-12-15 20:14:47 -05:00
parent 9303517bab
commit 33ce926c7f
23 changed files with 10 additions and 10 deletions

View File

@ -1,3 +0,0 @@
{
"plugins": ["flow-comments"]
}

View File

@ -1,4 +1,4 @@
# babel-plugin-flow-comments
# babel-plugin-transform-flow-comments
Turn flow type annotations into comments.
@ -41,7 +41,7 @@ function foo(x /*: number*/) /*: string*/ {}
## Installation
```sh
$ npm install babel-plugin-flow-comments
$ npm install babel-plugin-transform-flow-comments
```
## Usage
@ -52,20 +52,20 @@ $ npm install babel-plugin-flow-comments
```json
{
"plugins": ["flow-comments"]
"plugins": ["transform-flow-comments"]
}
```
### Via CLI
```sh
$ babel --plugins flow-comments script.js
$ babel --plugins transform-flow-comments script.js
```
### Via Node API
```javascript
require("babel-core").transform("code", {
plugins: ["flow-comments"]
plugins: ["transform-flow-comments"]
});
```

View File

@ -1,8 +1,8 @@
{
"name": "babel-plugin-flow-comments",
"name": "babel-plugin-transform-flow-comments",
"version": "6.3.19",
"description": "Turn flow type annotations into comments",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-flow-comments",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-flow-comments",
"license": "MIT",
"main": "lib/index.js",
"keywords": [

View File

@ -0,0 +1,3 @@
{
"plugins": ["transform-flow-comments"]
}