grunt-contrib-appbuilder v0.1.3
grunt-contrib-appbuilder
Grunt task to build a mobile application using the Telerik AppBuilder CLI
Getting Started
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-contrib-appbuilder --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-contrib-appbuilder');
The "appbuilder" task
Overview
In your project's Gruntfile, add a section named appbuilder
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
appbuilder: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
});
Options
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.
Usage Examples
grunt.initConfig({
appbuilder: {
files: {
"HelloWorld.apk": ["test/HelloWorld"]
},
options: {
debug: false
}
},
});
Contributing
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.
Release History
- 0.1.3 Updated appbuilder syntax
- 0.1.2 Escaped string inputs
- 0.1.1 Set android as the default platform
- 0.1.0 Initial Implementation