1.6.0 • Published 6 years ago
gulp-copy-ui5-thirdparty-library v1.6.0
gulp-copy-ui5-thirdparty-library
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"
}
)
)