👋 We moved this to https://github.com/Codecademy/client-modules
A collection of babel plugins and presets used at codecademy
$ npm install --save-dev babel-preset-codecademy
.babelrc
{
"presets": ["codecademy"]
}
$ babel script.js --presets codecademy
default: 'library'
Certain options can be turned on and off depending on what you're using babel for.
For applications, we enable runtime helpers and @babel/runtime
becomes a required dependency.
{
"presets": ["codecademy", { "type": "application" }]
}
For libraries (default), we don't enable runtime helpers because then the resulting package would need @babel/runtime
as a dependency, which should be handled by the consumer of the package.
{
"presets": ["codecademy", { "type": "library" }]
}
This package is automatically published by GitHub Actions when the version number changes
- merge your PR into
main
- create a new PR that updates the version of the package in package.json. Base the version bump on all of the changes that will be added in this version.
- merge the version PR into
main
- check the actions to see when the package is published