domi-utils
v1.1.1
Published
Utility Domiziano per generare file base
Downloads
64
Readme
Hello my friends , this is my first nmp package!
🔧 npx domi-utils Basic Command Init your project, you can add modules from following list
📦 --add mta Command
The --add mta command allows you to generate a mta.yaml file for your project, enabling multi-target application (MTA) deployment with SAP technologies.
✨ What It Does ? 🚀 Prepares your project for deployment to SAP BTP
📝 Create a mta.yaml file in your project root.
🧾 Prompt you to enter a description for your MTA project.
- If no description is provided, a default template will be used.
📁 Require the presence of two folders:
app/frontend – your frontend module
app/approuter – your application router moduleExpected Project Structure
my-project/ ├── app/ │ └── frontend/ # Your UI5 or React/Vue frontend ├── approuter/ # Your SAP AppRouter configuration └── mta.yaml # Generated by --add mta
📦 --add router Command
The --add router command allows you to generate a basic AppRouter module with SAP BTP-compatible.
✨ What It Does ? 🚀 Sets up your AppRouter quickly
📁 Creates a folder named <your-name>-approuter
📄 Copies in 3 essential files: .gitignore, package.json, xs-app.json
💬 Prompts you for the destination name (defaults to your-destination)
🧠 Automatically detects the UI app folder under the app/ directory
- Sets the welcomeFile in xs-app.json to match your UI folder name (e.g. /frontend)
🛡️ Updates xs-app.json with the proper routing and destination infoExpected Project Structure
my-project/ ├── myapp-approuter/ ├── .gitignore ├── package.json └── xs-app.json
📦 --add ui5 Command
The --add ui5 command allows you to quickly scaffold a basic UI5 frontend module into your project..
✨ What It Does ? 🚀 Sets up basic ui5 quickly
📁 Copies the entire app/ directory (including subfolders and files)
📂 Preserves the structure: controller/, view/, Component.js, etc.
📍 Places it into the root of your current working directoryExpected Project Structure
my-project/ ├── app/ │ └── my-frontend-name/ # Your UI5 or React/Vue frontend │ └── All-my-File-and-Folders
