vojtajina / grunt-bump

Grunt.js plugin - Increment package version.
MIT License
651 stars 122 forks source link

Multiple files with different regExp #161

Closed siamkreative closed 9 years ago

siamkreative commented 9 years ago

Hi there,

Is it possible to have multiple sub-task with a specific regex for each files? I mean something like this:

bump: {
    packageJson: {
        options: {
            files: ['package.json']
        }
    },
    pluginConstant: {
        options: {
            regExp: 'define\\(\\s*\'WR_VERSION\',\\s*\'',
            files: ['plugin-reviews.php']
        }
    },
    stableTag: {
        options: {
            regExp: 'Stable tag:\\s+',
            files: ['readme.txt']
        }
    }
},

For my WordPress plugin, I'm currently using https://github.com/kswedberg/grunt-version, which works well for version bumps, but it doesn't handle git tag/commit/release/push.

Cheers

eddiemonge commented 9 years ago

Please check the issue tracker to see if there is already a ticket matching what you are looking for. In this case, it would have been an easy search as it is the first open ticket listed:

issues

Thank you for using the plugin and contributing.

edit: be nice to people and they will be nice to you, I hope.

siamkreative commented 9 years ago

Thanks Eddie. Looks like I missed that one.