Socket
Book a DemoInstallSign in
Socket

lineman-babel

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lineman-babel

Compiles ES6/ES2015 code to ES5 in your Lineman application.

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

lineman-babel

A plugin to make it easy to use ES6/ES2015 in conjunction with a Lineman app.

It adds a default configuration of Babel's grunt-babel task to your project.

Installation

$ npm install lineman-babel --save

Configuration

All you need to do is install lineman-babel and it'll start treating all your app's production & test ".js" files as ES6.

Interrogating configuration

At any time, you can ask lineman about your babel config by asking:

$ lineman config babel

And to see what files it matches, you can run

$ lineman config files | grep babel

Overriding configuration

In your application.js, you can override the babel task:

babel: {
  options: {
    sourceMap: true
  }
}

Keywords

lineman

FAQs

Package last updated on 02 May 2015

Did you know?

Socket

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