babel-preset-codecademy

7.0.1 • Public • Published

babel-preset-codecademy

A collection of babel plugins and presets used at codecademy

Install

$ npm install --save-dev babel-preset-codecademy

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["codecademy"]
}

Via CLI

$ babel script.js --presets codecademy

Options

Type

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" }]
}

Publishing this package

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

Package Sidebar

Install

npm i babel-preset-codecademy

Weekly Downloads

646

Version

7.0.1

License

MIT

Unpacked Size

11.3 kB

Total Files

5

Last publish

Collaborators

  • codecademy