rename flow-comments plugin
This commit is contained in:
parent
9303517bab
commit
33ce926c7f
@ -1,3 +0,0 @@
|
||||
{
|
||||
"plugins": ["flow-comments"]
|
||||
}
|
||||
@ -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"]
|
||||
});
|
||||
```
|
||||
@ -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": [
|
||||
3
packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/options.json
vendored
Normal file
3
packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-flow-comments"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user