node package manager

grunt-bump-pom

grunt-bump-pom - version 0.0.6

Built with Grunt Build Status Dependency Status NPM version

A grunt plugin to bump the deploy version in your pom xml file

Table of Contents

Getting started

Install this grunt plugin next to your project's Gruntfile.js with:

npm install grunt-bump-pom --save-dev

To remove it:

npm uninstall grunt-bump-pom --save-dev

Then add this line to your project's Gruntfile.js:

grunt.loadNpmTasks('grunt-bump-pom');

API

Add something like this in your gruntfile:

bumppom : {
  options : {
    files : [
      'test/inc/pom.xml'
    ],
    backup : true,
    bump_from_pom : true,
    bump_from_package : false
  }
},

Options

files Required

Type: Array

backup

Type: Boolean
Default: true

bump_from_pom

Type: Boolean
Default: true

Should we bump the version that is in the files given?

bump_from_package

Type: Boolean
Default: false

Should we bump the version in the files given from package.json?

xmlSettings

Type: Boolean
Default:

{
  ignoreComments                : false,
  ignoreProcessingInstructions  : false,
  createMainDocument            : true,
  prettyIndent                  : 4
}

Extra options for the xml to json parser. See node-jsxml for more information.


Documentation

The client code is ment to be self documented. Feel free to browse the code.

Development

Getting started

Download and install the module

$ mkdir grunt-bump-pom
$ cd grunt-bump-pom
$ git clone git@github.com:phun-ky/grunt-bump-pom.git .
$ git-flow init
$ npm install
$ grunt

And happy coding!

Deployment

Run

grunt build-patch

This action will update the bump the package.json version, update the changelog and rebuild the readme.

Then

git commit -am "<commit message>"
..
git push && git push --tags

And you're done!

Howto

How to update this readme

If you wish to update this README, edit the relevant .md-files in the docs directory of the webroot and do:

grunt readme

This will update the README.

Contributing

Found a bug? Have a feature request? Please create an issue.

Code-contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

If you runt grunt, tests will be run automagically when you save a file. If you want to run tests manually use:

grunt test

Release history

DATE VERSION CHANGES

  • 2014-11-13 cf59125 Trying to resolve the version issues
  • 2014-11-13 592e570 Updated package.json
  • 2014-11-13 960048b Updated deps version
  • 2014-11-13 9e50db6 Rebuilt after PR
  • 2014-11-13 2570d31 Merge pull request #1 from reifi/master
  • 2014-11-13 262a312 Rebuilt with bumped version
  • 2014-11-13 67c7e75 Updated semver version
  • 2014-10-27 82f22f6 Merge pull request #1 from reifi/feat-copy-version
  • 2014-10-27 df0f300 renamed generally overused 'copy' param to more unique 'copyversion'
  • 2014-10-27 5ace47e Just copy version from package.json
  • 2014-10-09 e8a0bbc Merge branch 'release/v0.0.1'
  • 2014-10-09 b108be3 Removed backup files for testing, updated readme, built changelog and bumped version
  • 2014-10-09 5d1ca9a Reset version in package.json
  • 2014-10-09 8f6d87d Initial commit

License and Copyright

Copyright (c) 2014 Alexander Vassbotn R√łyne-Helgesen, contributors.
Released under the , licenses


README generated 2014-11-13