ui5-task-check-eocp

0.0.6 • Public • Published

UI5 task for checking the End of Cloud Provisioning date of the used UI5 version

Task for ui5-builder, checking expiring End of Cloud Provisioning date

Prerequisites

Install

npm install ui5-task-check-eocp --save-dev

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-task-check-eocp": "*"
    // ...
}
  1. configure it in $yourapp/ui5.yaml:
builder:
  customTasks:
  - name: ui5-task-check-eocp
    afterTask: replaceVersion
    configuration:
      failOnEocp: true

Configuration options (in $yourapp/ui5.yaml)

  • failOnEocp: boolean (default: false) When set to true, it will fail the build. Also, due to the async nature of the check, make this task the first and all others dependent in this task using the afterTask setting.

How it works

The task checks the application's UI5 version (as specified in the ui5.yaml file), and matches it with the UI5 versions available (these are retrieved from http://ui5.sap.com). If the current date is within (or after) the End of Cloud Provisioning quarter, it prints a warning during the ui5 build execution like this:

Example of the task's output

NB: In case of expired provisioning date, the task does not halt the ui5 build process from executing. It is the developer's responsibility to proceed and update the UI5 version at will.

Licence

Standard MIT license

If you find this extension useful, buy Qualiture (Robin van het Hof) a beer when you see him 🙂

Readme

Keywords

Package Sidebar

Install

npm i ui5-task-check-eocp

Weekly Downloads

23

Version

0.0.6

License

MIT

Unpacked Size

689 kB

Total Files

6

Last publish

Collaborators

  • robinvanhethof