summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/bootstrap/Gruntfile.js')
-rw-r--r--[-rwxr-xr-x]bower_components/bootstrap/Gruntfile.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/bower_components/bootstrap/Gruntfile.js b/bower_components/bootstrap/Gruntfile.js
index 97f4ec4c..c3016a2b 100755..100644
--- a/bower_components/bootstrap/Gruntfile.js
+++ b/bower_components/bootstrap/Gruntfile.js
@@ -3,6 +3,7 @@
module.exports = function(grunt) {
"use strict";
+ RegExp.quote = require('regexp-quote')
var btoa = require('btoa')
// Project configuration.
grunt.initConfig({
@@ -156,6 +157,17 @@ module.exports = function(grunt) {
files: 'less/*.less',
tasks: ['recess']
}
+ },
+
+ sed: {
+ versionNumber: {
+ pattern: (function () {
+ var old = grunt.option('oldver')
+ return old ? RegExp.quote(old) : old
+ })(),
+ replacement: grunt.option('newver'),
+ recursive: true
+ }
}
});
@@ -173,6 +185,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-html-validation');
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-recess');
+ grunt.loadNpmTasks('grunt-sed');
// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll', 'validation']);
@@ -203,6 +216,11 @@ module.exports = function(grunt) {
// Default task.
grunt.registerTask('default', ['test', 'dist', 'build-customizer']);
+ // Version numbering task.
+ // grunt change-version-number --oldver=A.B.C --newver=X.Y.Z
+ // This can be overzealous, so its changes should always be manually reviewed!
+ grunt.registerTask('change-version-number', ['sed']);
+
// task for building customizer
grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
var fs = require('fs')