Skip to content

a boilerplate monorepo for people writing babel plugins in normal plugin form as well as macro form

Notifications You must be signed in to change notification settings

swyxio/babel-plugin-macro-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel plugin/macro boilerplate

This is a boilerplate monorepo for people writing babel plugins in normal plugin form as well as babel-plugin-macros form. Supporting two forms of the plugin can help increase adoption for a variety of user setups, and really isn't too hard once you have the right setup. Which this tries to be.

if you spot something that could be a better practice, PLEASE open an issue or tell me I'm wrong!

Prerequisites

You should have read through the babel handbook and (optionally) the babel-plugin-macros blogpost.

Usage

Clone, not fork, this repo. Write your plugin and tests in babel-plugin-boilerplate, and then handle the macro portion in boilerplate.macro. Rename both of them to whatever your new name is.

When you are done writing and testing, run lerna publish from this root level and you should be good to go.

About

a boilerplate monorepo for people writing babel plugins in normal plugin form as well as macro form

Resources

Stars

Watchers

Forks

Packages

No packages published