ui5-control-generator

1.0.4 • Public • Published

ui5-control-generator

UI5 Control Generator

Installation

npm install --save-dev ui5-control-generator

Usage

To start the generator, run:

npx ui5-control-generator --ns <namespace>

Commandline Options

This is the list of available commandline arguments, including the ones above:

  • --ns, --namespace: namespace of your UI5 project
  • --p, --path: Optional parameter to define a specific folder to search for html files, default will search in all folders
  • --s, --split: Split Control logic and renderer in two files, default will split. Values can be true or false
  • --ow, --overwrite: Overwrite already existing files with the same name, default will not overwrite. Possible values can be true or false.
  • --loglevel: Set the console logging verbosity; options are: "error", "warn", "info", "debug", "trace"; default level is "info"

Demo app

Demo app available on GitHub https://github.com/lemaiwo/DemoCustomControlGenerator

Todo

  • Detect UI5 namespace automatically
  • Automatically use the text in html for the names of properties and attributes
  • Add init function for TypeScript
  • Add onAfterRendering function for TypeScript
  • Fix error in onAfterRendering function for TypeScript
  • Automatically resolve errors after TypeScript files are generated

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    4
    • latest

Version History

Package Sidebar

Install

npm i ui5-control-generator

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

77.7 kB

Total Files

15

Last publish

Collaborators

  • lemaiwo