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.