Generate chosted apps across platforms and devices
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-manifoldjs --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-manifoldjs');
In your project's Gruntfile, add a section named manifold
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
manifoldjs: {
options: {
// Task-specific options go here.
}
},
});
- Type:
String
- Default value:
'generatedApps'
The path to the output path.
- Type:
Array
- Default value:
'['chrome', 'firefox', 'android', 'ios', 'windows10', 'web']'
An array of platforms that will be created by ManifoldJs based on the manifest.json. Posibilities: 'chrome', 'firefox', 'android', 'ios', 'windows10', 'windows81', 'web'.
- Type:
Boolean
- Default value:
'buildProjects'
If true, then the iOS, Android and Windows81 projects will be builded.
- Type:
String
- Example:
'http://www.manifoldjs.com'
The target site url.
- Type:
String
- Example:
'www/manifest.json'
The path to the local manifest.
In this example, the default options are used.
grunt.initConfig({
manifoldjs: {
options: {
manifestFilePath: 'manifest.json'
}
},
});
In this example, custom options are used.
grunt.initConfig({
manifoldjs: {
options: {
output: 'outputPath',
platforms: ['chrome', 'firefox', 'windows10', 'web'],
buildProjects: true,
site : 'http://www.manifoldjs.com',
manifestFilePath: 'www/manifest.json'
}
},
});
(Nothing yet)