Grunt plugin to facilitate deployment of openui5 application to SAP Gateway system. Based off the work done by @wolframK here
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-openui5-deploy-abap --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-openui5-deploy-abap');
In your project's Gruntfile, add a section named openui5_deploy_abap
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
openui5_deploy_abap:{
sbx:{
targetDir:'target',
appName: 'Z_APP_NAME',
appDesc: 'Meaningful Name',
package: 'Z_PACKAGE',
transportDesc:' Description goes here',
connection:{
user: 'user',
passwd: 'PASSWORD',
ashost: 'SAPGGYCI',
sysnr: '18',
client: '250'
}
}
},
});
Type: String
Directory used as a work area during the build process.
Type: String
Name of the BSP applicaiton on the SAP Gateway system.
Type: String
Description of the BSP application on the SAP Gateway system.
Type: String
Package that contains the BSP applicaiton on the SAP Gateway system.
Type: String
Description for the transport that the BSP applicaiton is added to.
Type: Object
Connection details for the SAP Gateway system.
Type: String
Username of the user used to connect to the SAP Gateway
Type: String
Password for the user used to connect to the SAP Gateway
Type: String
Host string of the SAP Gateway system. Found on the properties of the connection in the SAP GUI.
Type: String
System number of the SAP Gateway system. Found on the properties of the connection in the SAP GUI.
Type: String
Client of the SAP Gateway system. Found on the properties of the connection in the SAP GUI.
In this example, the application would be deployed to system SAPGGYCI client 250 using user user
under the name Z_APP_NAME
in package Z_PACKAGE
.
grunt.initConfig({
openui5_deploy_abap:{
sbx:{
targetDir:'target',
appName: 'Z_APP_NAME',
appDesc: 'Meaningful Name',
package: 'Z_PACKAGE',
transportDesc:' Description goes here',
connection:{
user: 'user',
passwd: 'PASSWORD',
ashost: 'SAPGGYCI',
sysnr: '18',
client: '250'
}
}
},
});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
(Nothing yet)