{"id":49531737,"url":"https://github.com/tolerious/generator-babel-plugin","last_synced_at":"2026-05-02T08:12:27.196Z","repository":{"id":350416516,"uuid":"1206732209","full_name":"tolerious/generator-babel-plugin","owner":"tolerious","description":"Another version for the original generator-babel-plugin","archived":false,"fork":false,"pushed_at":"2026-04-26T15:12:46.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-26T17:13:59.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tolerious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-10T07:46:21.000Z","updated_at":"2026-04-26T15:12:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tolerious/generator-babel-plugin","commit_stats":null,"previous_names":["tolerious/generator-babel-plugin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tolerious/generator-babel-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2Fgenerator-babel-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2Fgenerator-babel-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2Fgenerator-babel-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2Fgenerator-babel-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolerious","download_url":"https://codeload.github.com/tolerious/generator-babel-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolerious%2Fgenerator-babel-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32527207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-02T08:12:26.612Z","updated_at":"2026-05-02T08:12:27.191Z","avatar_url":"https://github.com/tolerious.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-babel-plugin\n\n[![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)\n\n使用Yeoman来创建babel plugin.\n代码fork自[generator-babel-plugin](https://github.com/thejameskyle/generator-babel-plugin)，\n原仓库经过测试，在本地无法运行了，故此fork了项目进行了修改。\n\n## 用法\n\n**全局安装Yeoman**\n\n```shell\nnpm i -g yo\n```\n\n```shell\nnpm i -g generator-babel-plugins\n```\n\n**创建插件文件夹**\n\n```shell\nmkdir my-babel-plugin \u0026\u0026 cd my-babel-plugin\n```\n\n**运行generator**\n\n```shell\nyo babel-plugins\n```\n\n如果你想在测试中创建额外的fixtures\n\n```shell\nyo babel-plugins:fixture name-of-fixture\n```\n\n为了更好的理解Babel插件的开发，强烈建议阅读[babel plugin handbook](https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md)。\n\n同时我也提供了[中文翻译改进版](https://babel.frontend.fan/user-handbook)，针对原版中的排版问题以及过时的描述予以更正。\n\n\u003e 为了测试插件，可以配合另外一个项目[simple-babel-project-template](https://github.com/tolerious/simple-babel-project-template)进行使用，创建好babel插件后，为了在本地进行效果测试，可以在新创建的插件项目中运行\n```\nnpx link\n```\n然后在使用**simple-babel-project-template**的项目中运行\n```\nnpm link your-babel-plugin\n```\n其中`your-babel-plugin`就是你创建插件的那个项目中`package.json`文件中`name`字段.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolerious%2Fgenerator-babel-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolerious%2Fgenerator-babel-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolerious%2Fgenerator-babel-plugin/lists"}