Grunt task to execute the Telerik AppBuilder CLI
npm install grunt-contrib-appbuilder~0.4.5
shell
npm install grunt-contrib-appbuilder --save-dev
`
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js
grunt.loadNpmTasks('grunt-contrib-appbuilder');
`
The "appbuilder" task
$3
In your project's Gruntfile, add a section named appbuilder to the data object passed into grunt.initConfig().
`js
grunt.initConfig({
appbuilder: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
`
$3
#### options.platform
Type: String
Default value: 'android'
The target build platform can be either, android, ios, wp8.
#### options.debug
Type: Boolean
Default value: true
Enables LiveSync with the three-finger tap and hold gesture.
#### options.download
Type: Boolean
Default value: true
Downloads the application package to the root of the project
#### options.companion
Type: Boolean
Default value: false
Produces a QR code for deployment in the Telerik AppBuilder companion app.
You cannot set both the companion and download switches.
#### options.certificate
Type: String
Default value: ''
Sets the certificate that you want to use for code signing your iOS or Android app.
#### options.provision
Type: String
Default value: ''
Sets the provisioning profile that you want to use for code signing your iOS app.
$3
`js
grunt.initConfig({
appbuilder: {
files: {
"HelloWorld.apk": ["test/HelloWorld"]
},
options: {
debug: false
}
},
});
``