Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/soontao/gulp-copy-ui5-thirdparty-library

gulp plugin for copy node_modules to sap ui5 module
https://github.com/soontao/gulp-copy-ui5-thirdparty-library

gulp javascirpt openui5 sapui5 ui5

Last synced: 1 day ago
JSON representation

gulp plugin for copy node_modules to sap ui5 module

Awesome Lists containing this project

README

        

# gulp-copy-ui5-thirdparty-library

[![npm version](https://badge.fury.io/js/gulp-copy-ui5-thirdparty-library.svg)](https://badge.fury.io/js/gulp-copy-ui5-thirdparty-library)
[![GitHub license](https://img.shields.io/github/license/Soontao/gulp-copy-ui5-thirdparty-library.svg)](https://github.com/Soontao/gulp-copy-ui5-thirdparty-library/blob/master/LICENSE)

Next-Generation-UI5 modules, support ui5 use ALL modules in npm environment.

![](https://openui5.org/images/OpenUI5_new_big_side.png)

## internal

This plugin will use `rollup` to package nodejs module to `umd` format and copy its to destination with ui5 module defination format:

```js
sap.ui.define("lodash", function() {

// ... umd module defination

return this.lodash;

})
```

## usage

```js
gulp.src("./package.json").pipe(
// this lib will convert node.js library to ui5 module format
copyUi5Lib(
{
// index html path
indexTemplateAbsPath: join(__dirname, "./src/index.html"),
// target js output path
thirdpartyLibPath: "_thridparty"
}
)
)
```