/gulp-cordova-app-loader-manifest

Gulp plugin to create cordova-app-loader manifests

Primary LanguageJavaScriptISC LicenseISC

gulp-cordova-app-loader-manifest

Gulp plugin to create cordova-app-loader manifests. This plugin is fork from alexbeyn/gulp-cordova-app-loader-manifest, so all kudos go for him. There are minor changes in the manifest generation (mostly to fit the structure of my in my current projects easier).

Usage

var calManifest = require('gulp-cordova-app-loader-manifest');

gulp.task('manifest', function() {
  return gulp.src('./www/**')
    .pipe(calManifest(options))
    .pipe(gulp.dest('./'));
});

Options

load

options.load = [
  'lib/your-app.js',
  'css/your-css.css'
];

root

options.root = './';

Specifies the manifest.root option.

prefixSplit

options.prefixSplit = '/'

Specifies prefix to split the options.load filenames (default value is '/').

This means options.prefixSplit = 'www/ for the ['www/lib/app.js', 'www/css/style.css'] will produce the following output:

manifest.load = [
  'lib/app.js',
  'css/style.css'
]