npm.io
1.6.0 • Published 7 years ago

gulp-copy-ui5-thirdparty-library

Licence
MIT
Version
1.6.0
Deps
6
Size
101 kB
Vulns
2
Weekly
0

gulp-copy-ui5-thirdparty-library

npm version GitHub license

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

internal

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

sap.ui.define("lodash", function() {
  
  // ... umd module defination

  return this.lodash;

})

usage

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"
    }
  )
)