1.2.0 • Published 7 years ago

babel-preset-medopad v1.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

babel-preset-medopad

Package Version Travis CI Build Status License Medopad Code Style

This is Medopad's Babel preset.

Plugins

transform-exponentiation-operator allows the use of exponentiation operators.

transform-object-rest-spread allows the use of rest properties for object destructuring assignment and spread properties for object literals. Built-ins usage is enabled by default.

transform-class-properties allows the use of class properties.

transform-runtime externalizes references to helpers and built-ins, automatically polyfilling the code without polluting globals.

Install

Shareable presets are designed to work with the presets feature of .babelrc files.

First, install the preset (with all of its dependencies):

npm install babel-preset-medopad --save-dev

Then, add this to your .babelrc file:

{
  "presets": ["medopad"]
}

You can override settings from the shareable preset by adding them directly into your .babelrc file.

Use with ESLint

If you wish to use ESLint, install the parser:

npm install babel-eslint --save-dev

Then, add this to your .eslintrc file:

parser: "babel-eslint"

Use with webpack

If you wish to use webpack, install the loader:

npm install babel-loader --save-dev

Then, add this to your webpack.config.js file:

module: {
  loaders: [
    {
      test: /\.js$/,
      loader: 'babel-loader'
    }
  ]
}

Develop

Test

npm test

Release

npm version [major|minor|patch] -m "v%s"