Skip to content

Commit 6751b33

Browse files
committed
Merge branch 'master' of github.com:tolerious/generator-babel-plugin into feat/new-version
# Conflicts: # generators/app/index.js
2 parents ee529c1 + 28ed039 commit 6751b33

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# generator-babel-plugin [![Node.js Package](https://github.com/tolerious/generator-babel-plugin/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/tolerious/generator-babel-plugin/actions/workflows/npm-publish.yml)
1+
# generator-babel-plugin
2+
3+
[![Node.js Package](https://github.com/tolerious/generator-babel-plugin/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/tolerious/generator-babel-plugin/actions/workflows/npm-publish.yml) ![npm 总下载量](https://img.shields.io/npm/dt/generator-babel-plugins.svg)
24

35
使用Yeoman来创建babel plugin.
46
代码fork自[generator-babel-plugin](https://github.com/thejameskyle/generator-babel-plugin)
@@ -9,11 +11,11 @@
911
**全局安装Yeoman**
1012

1113
```shell
12-
$ npm i -g yo
14+
npm i -g yo
1315
```
1416

1517
```shell
16-
$ npm i -g generator-babel-plugins
18+
npm i -g generator-babel-plugins
1719
```
1820

1921
**创建插件文件夹**
@@ -25,13 +27,13 @@ mkdir my-babel-plugin && cd my-babel-plugin
2527
**运行generator**
2628

2729
```shell
28-
$ yo babel-plugins
30+
yo babel-plugins
2931
```
3032

3133
如果你想在测试中创建额外的fixtures
3234

3335
```shell
34-
$ yo babel-plugins:fixture name-of-fixture
36+
yo babel-plugins:fixture name-of-fixture
3537
```
3638

3739
为了更好的理解Babel插件的开发,强烈建议阅读[babel plugin handbook](https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md)

0 commit comments

Comments
 (0)