grunt-plist-version
Bump versions in Xcode plist files
Last updated 5 years ago by vincent__ .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-plist-version 
SYNC missed versions from official npm registry.

grunt-plist-version

Bump versions in Xcode plist files with Grunt

Getting Started

This plugin requires Grunt ~0.4.0 and Semver

The PlistBuddy is used to modify the plist file, it comes with Xcode.

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-plist-version --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-plist-version');

plistversion task

Run this task with the grunt plistversion command.

This plugin uses registerMultiTask so you can define multiple version keys to update.

Task targets, files and options may be specified according to the grunt Configuring tasks guide.

Options

plistFile

The plist file to be modified

Type: String
Default: "Info.Plist"

versionKey

The key to modify, for an IOS app it's generally CFBundleVersion

Type: String
Default: "CFBundleVersion"

replaceFunction

The function called to bump the version number

Type: Function
Default: function(version){ return semver.inc(version, 'minor'); }

Usage Example

grunt.initConfig({
	plistversion: {
	  bumpversion: {
	    plistFile: 'MyProject-Info.plist',
	    versionKey: 'CFBundleVersion'
	  }
	},
})

Current Tags

  • 0.3.2                                ...           latest (5 years ago)

3 Versions

  • 0.3.2                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.2.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |