Comparing version 2.7.0 to 2.8.0
@@ -27,2 +27,26 @@ 'use strict'; | ||
// WordPress Theme: https://developer.wordpress.org/themes/basics/main-stylesheet-style-css/ | ||
gulp.task('wptheme', function(){ | ||
gulp.src('./style.css') | ||
.pipe(bump()) | ||
.pipe(gulp.dest('./build')); | ||
}); | ||
// WordPress Plugin: https://developer.wordpress.org/plugins/the-basics/header-requirements/ | ||
gulp.task('wpplugin', function(){ | ||
gulp.src('./plugin.php') | ||
.pipe(bump()) | ||
.pipe(gulp.dest('./build')); | ||
}); | ||
// PHP Constant: `define( 'MY_PLUGIN_VERSION', '1.0.0' );` | ||
gulp.task('phpconstant', function(){ | ||
var constant = "MY_PLUGIN_VERSION"; | ||
gulp.src('./plugin.php') | ||
.pipe(bump({ | ||
regex: new RegExp( "([<|\'|\"]?"+constant+"[>|\'|\"]?[ ]*[:=,]?[ ]*[\'|\"]?[a-z]?)(\\d+\\.\\d+\\.\\d+)(-[0-9A-Za-z\.-]+)?([\'|\"|<]?)", "i" ), | ||
})) | ||
.pipe(gulp.dest('./build')); | ||
}); | ||
gulp.task('key', function(){ | ||
@@ -29,0 +53,0 @@ gulp.src('./key.json') |
{ | ||
"name": "gulp-bump", | ||
"description": "Bump npm versions with Gulp (gulpjs.com)", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"homepage": "http://github.com/stevelacy/gulp-bump", | ||
@@ -10,3 +10,3 @@ "repository": "git://github.com/stevelacy/gulp-bump.git", | ||
"dependencies": { | ||
"bump-regex": "^2.7.0", | ||
"bump-regex": "^2.8.0", | ||
"plugin-error": "^0.1.2", | ||
@@ -13,0 +13,0 @@ "plugin-log": "^0.1.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25534
25
538
Updatedbump-regex@^2.8.0