Socket
Socket
Sign inDemoInstall

babel-init

Package Overview
Dependencies
58
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-init

Setup `.babelrc` using command.


Version published
Maintainers
1
Install size
8.52 MB
Created

Readme

Source

babel-init

Build Status

Setup .babelrc using command.

Install

$ npm install -g babel-init

Usage

$ npm init --yes #if you havn't made package.json
$ babel-init

Select presets and plugins!

Plugin List: https://babeljs.io/docs/plugins/

output

? Select presets latest, stage-0
? Select plugins syntax-flow and transform-flow-strip-types

.babelrc

{
  "env": {},
  "ignore": [],
  "plugins": [
    "syntax-flow",
    "transform-flow-strip-types"
  ],
  "presets": [
    "latest",
    "stage-0"
  ]
}

Customize

.babelinitrc

You can use .babelinitrc.
You put it on home or project root directory.
babel-init read this files and creating the select box.

{
  "presets": [],
  "plugins": []
}

The following is a sample file.

{
  "presets": [],
  "plugins": [
    {
      "name": "syntax-flow and transform-flow-strip-types",
      "value": "syntax-flow,transform-flow-strip-types"
    },
    "lodash",
    "transform-runtime"
  ]
}

name is the words displayed in the select box.
value is an installed package name. (same meaning as only string in array)

Keywords

FAQs

Last updated on 27 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc