👋 This is a community project and there is no official support for this package! Feel free to use it, open issues, contribute, and help answering questions.
A utility npm package for generating routes and setting up fragments in SAPUI5 applications.
- Automatically generates SAPUI5 routes.
- Automatically generates Fragment for your projects and add a onOpenFragment() function in selected controller to open it ;)
Please check CONTRIBUTING.MD file everything is step by step :) don't worry! you can do it
Install ui5-route-generator
as a development dependency using npm:
npm install ui5-route-generator -D
[OR]
npm install ui5-route-generator --save --dev
⚠️ Tooling Compatibility The tool will work when you open the project terminal with the path set to the project root directory, or else it will not work!
cd /path/to/pmProject user: pmProject $ npm run ui5-route-generator
npm run ui5-route-generator
? Please select an option: › - Use arrow-keys. Return to submit.
❯ create route
Fragment Setup
? View & Controller Name? › View4
? Do you want to use TypeScript? (y/n): › y
Controller file added successfully!! -> '/home/user/projects/project1/webapp/controller/View4.controller.ts'
View file added successfully!! -> '/home/user/projects/project1/webapp/view/View4.view.xml'
npm run ui5-route-generator
? Please select an option: › - Use arrow-keys. Return to submit.
create route
❯ Fragment Setup
? Please select a file: › `// List of controllers user need to select`
❯ App.controller.js
View1.controller.js
View3.controller.ts
View4.controller.ts
helper.controller.js
wasim.controller.js
Fragment file added successfully!! -> '/home/user/projects/project1/webapp/fragment/App.fragment.xml'
Fragment added successfully! Use the 'onOpenFragment()' function in '/home/user/projects/project1/webapp/controller/App.controller.js' to open it.
🚀 This project relies on the #JavaScript and developer #community for support and contributions. As there is no official support for this package, we need your help to make it better! It's time to contribute! 💪
Contributions are welcome! Please read the Contribution Guidelines for details on how to contribute to this project. Whether it's reporting a bug, suggesting new features, or submitting a pull request, your input is invaluable.
This project is licensed under the MIT License - see the LICENSE file for details.
- Acknowledgements
- Built with ❤️ by Sohail Khan
- Maintainer: Sohail Khan + #Community
- Inspired by the need to simplify SAPUI5 project setup