Giter VIP home page Giter VIP logo

grunt-bump-pom's Introduction

grunt-bump-pom - version 0.0.6

Retire Status Built with Grunt Build Status Dependency Status NPM version

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

No more development

I will no longer develop this plugin any further and I strongly suggest users of this plugin to either fork it and continue the development on their hand, or find another plugin.

##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 [email protected]: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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.