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. Turn flow type annotations into comments.
@ -41,7 +41,7 @@ function foo(x /*: number*/) /*: string*/ {}
## Installation ## Installation
```sh ```sh
$ npm install babel-plugin-flow-comments $ npm install babel-plugin-transform-flow-comments
``` ```
## Usage ## Usage
@ -52,20 +52,20 @@ $ npm install babel-plugin-flow-comments
```json ```json
{ {
"plugins": ["flow-comments"] "plugins": ["transform-flow-comments"]
} }
``` ```
### Via CLI ### Via CLI
```sh ```sh
$ babel --plugins flow-comments script.js $ babel --plugins transform-flow-comments script.js
``` ```
### Via Node API ### Via Node API
```javascript ```javascript
require("babel-core").transform("code", { 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", "version": "6.3.19",
"description": "Turn flow type annotations into comments", "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", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"keywords": [ "keywords": [

View File

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