Grunt plugin for Babel
JavaScript
Latest commit cf4f0c7 Oct 20, 2016 @sindresorhus sindresorhus lock down XO
Permalink
Failed to load latest commit information.
tasks tweaks Oct 30, 2015
test meta tweaks Apr 8, 2016
.editorconfig meta tweaks Apr 8, 2016
.gitattributes init Oct 6, 2014
.gitignore Close #45 PR: Fix paths on Windows.. Sep 20, 2015
.travis.yml meta tweaks Apr 8, 2016
gruntfile.js meta tweaks Apr 8, 2016
license init Oct 6, 2014
package.json lock down XO Oct 20, 2016
readme.md meta tweaks Apr 8, 2016

readme.md

grunt-babel Build Status

Use next generation JavaScript, today, with Babel

Issues with the output should be reported on the Babel issue tracker.

Install

$ npm install --save-dev grunt-babel babel-preset-es2015

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
    babel: {
        options: {
            sourceMap: true,
            presets: ['es2015']
        },
        dist: {
            files: {
                'dist/app.js': 'src/app.js'
            }
        }
    }
});

grunt.registerTask('default', ['babel']);

Options

See the Babel options, except for filename which is handled for you.

License

MIT © Sindre Sorhus