Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.

A collection of babel plugins and presets used at codecademy

License

Notifications You must be signed in to change notification settings

Codecademy/babel-preset-codecademy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

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

About

A collection of babel plugins and presets used at codecademy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •