File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 ) ,
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 ) 。
You can’t perform that action at this time.
0 commit comments