From 2ab984aa38df5cb13216cf40863936323f6ffa61 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 30 Apr 2014 11:05:19 -0700 Subject: [PATCH] Added bower update mechanism --- Gruntfile.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index b077b431..d3036d14 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -208,6 +208,14 @@ module.exports = function(grunt) { }); }); + // ---------- + grunt.registerTask("bower", function() { + var path = "../site-build/bower.json"; + var data = grunt.file.readJSON(path); + data.version = packageJson.version; + grunt.file.write(path, JSON.stringify(data, null, 2) + "\n"); + }); + // ---------- // Build task. // Cleans out the build folder and builds the code and images into it, checking lint. @@ -229,7 +237,7 @@ module.exports = function(grunt) { // ---------- // Publish task. // Cleans the built files out of the release folder and copies newly built ones over. - grunt.registerTask("publish", ["package", "clean:release", "copy:release"]); + grunt.registerTask("publish", ["package", "clean:release", "copy:release", "bower"]); // ---------- // Default task.