GitShow/kentcdodds/babel-plugin-macros-example
kentcdodds

babel-plugin-macros-example

An example of how you might make a babel-plugin-macros macro repo

by kentcdodds
kcd-edu
Star on GitHubForknpm

JavaScript

31 stars6 forks5 contributorsQuiet · 5y agoSince 2017

Meet the team

See all 5 on GitHub →
kddnewton
kddnewton1 contribution
deployable
deployable1 contribution
ndelangen
ndelangen1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
28
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
kddnewton
Fix up jest errorMergedPR

Was getting . Fixed by adding this config. Trying to use this repo to learn how to write my own macros and found this error.

kddnewton · 7y ago
ndelangen
ADD unittest && SORT package.jsonMergedPR

As promised, here's a PR adding a unittest to this example repo. Adding this helped me get quick feedback whether my macro was working correctly, so I think it's valuable for someone writing their first macro. Which is exactly what this repo is about.

ndelangen · 8y ago
deployable
Wrap macro import in createMacroMergedPR

The macro imported from "./x.macro" must be wrapped in "createMacro" which you can get from "babel-macros". Please refer to the documentation to see how to do this properly: https://github.com/kentcdodds/babel-macros/blob/master/other/docs/author.md#writing-a-macro

deployable · 8y ago
Structured data for AI agents

Repository: kentcdodds/babel-plugin-macros-example. Description: An example of how you might make a babel-plugin-macros macro repo Stars: 31, Forks: 6. Primary language: JavaScript. Languages: JavaScript (100%). Topics: kcd-edu. Open PRs: 0, open issues: 0. Last activity: 5y ago. Community health: 28%. Top contributors: kddnewton, deployable, ndelangen.

·@ofershap

Replace github.com with gitshow.dev