stephenlacy / gulp-bump

Bump any version in any file which supports semver with gulp (gulpjs.com)
MIT License
258 stars 26 forks source link

Does it support WordPress themes and plugins? #68

Closed geminorum closed 7 years ago

geminorum commented 7 years ago

Can I define a task to bump a WordPress theme, or a plugin?

also we usually define version as php constant to use anywhere on the code:

define( 'MY_PLUGIN_VERSION', '1.2.1' );

anyway that can happen with a task?

stephenlacy commented 7 years ago

This will bump any text file, for the variable use a custom regex

geminorum commented 7 years ago

it's the same regex from `bump-regex`, I've just added comma to the delimiter char set.
stephenlacy commented 7 years ago

Do you want to send a pr with that example to the examples folder/gulpfile?