0.1.0 • Published 6 years ago

grunt-openui5-babel v0.1.0

Weekly downloads
3
License
-
Repository
github
Last release
6 years ago

grunt-openui5-babel

Grunt plugin to transpile UI5 sources with Babel

WARNING: This is an EXPERIMENTAL Grunt plugin. Use at your own risks!

Special thanks to:

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-openui5-babel --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-openui5-babel');

The "openui5_babel" task

Overview

In your project's Gruntfile, add a section named openui5_babel to the data object passed into grunt.initConfig().

grunt.initConfig({
  openui5_babel: {
    options: {
      // babel-plugin-transform-modules-ui5 options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});

Options

See https://github.com/r-murphy/babel-plugin-transform-modules-ui5#options for supported options

Usage Examples

grunt.initConfig({
  openui5_babel: {
    options: {
	  namespacePrefix: 'my.ui5.component'
	},
    files: [{
	  expand : true,
	  cwd : 'src',
	  src : ['**/*.js'],
	  dest : 'dist'
    }],
  },
});

NOTE

Put your Babel configuration into your .babelrc file.

Release History

(nothing yet)