Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemaiwo/ui5-task-transpile-gen
UI5tooling task for transpiling ES6 to ES5 including Async Await
https://github.com/lemaiwo/ui5-task-transpile-gen
Last synced: 19 days ago
JSON representation
UI5tooling task for transpiling ES6 to ES5 including Async Await
- Host: GitHub
- URL: https://github.com/lemaiwo/ui5-task-transpile-gen
- Owner: lemaiwo
- License: mit
- Created: 2020-02-20T11:17:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-01T10:37:37.000Z (over 2 years ago)
- Last Synced: 2024-04-23T23:00:32.785Z (7 months ago)
- Language: JavaScript
- Size: 2.09 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ui5-task-transpile-gen
UI5tooling task for transpiling ES6 to ES5 including Async AwaitTask for [ui5-builder](https://github.com/SAP/ui5-builder), enabling ES6 support.
## Install
```bash
npm install ui5-task-transpile-gen --save-dev
```## Usage
1. Define the dependency in `$yourapp/package.json`:
```json
"devDependencies": {
// ...
"ui5-task-transpile-gen": "*"
// ...
},
"ui5": {
"dependencies": [
// ...
"ui5-task-transpile-gen",
// ...
]
}
```> As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the `ui5 > dependencies` array. In addition, once using the `ui5 > dependencies` array you need to list all UI5 tooling relevant dependencies.
2. configure it in `$yourapp/ui5.yaml`:
```yaml
builder:
customTasks:
- name: ui5-task-transpile-gen
afterTask: replaceVersion
bundles:
- bundleDefinition:
name: namespace/appname/Component-preload.js
defaultFileTypes:
- ".js"
- ".json"
- ".xml"
- ".html"
- ".library"
sections:
- mode: raw
filters:
- namespace/appname/regenerator-runtime/runtime.js
- mode: preload
filters:
- namespace/appname/manifest.json
- namespace/appname/controller/**
- namespace/appname/Component.js
- namespace/appname/i18n/**
- namespace/appname/model/**
- namespace/appname/util/**
- namespace/appname/view/**
- namespace/appname/libs/**
- namespace/appname/test/**
resolve: false
sort: true
declareModules: false
bundleOptions:
optimize: true
usePredefineCalls: true
```