Skip to content

jmorino/grunt-openui5-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

This plugin has been created to work around this bug. This bug has been fixed with version 6.16.1. Then, this Grunt plugin becomes obsolete: consider using the official grunt-babel plugin instead.

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)

About

Grunt plugin to transpile UI5 sources with Babel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published