From 785c469ec4e026ce3ecf8d54b48b7c13596bd664 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 16 Jun 2014 23:10:25 +0200 Subject: [PATCH] js: Include package version in built files --- js/Gruntfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Gruntfile.js b/js/Gruntfile.js index 437ad9d0..81221676 100644 --- a/js/Gruntfile.js +++ b/js/Gruntfile.js @@ -2,8 +2,9 @@ module.exports = function (grunt) { grunt.initConfig({ + pkg: grunt.file.readJSON("package.json"), meta: { - banner: "/*! Mopidy.js - built " + + banner: "/*! Mopidy.js v<%= pkg.version %> - built " + "<%= grunt.template.today('yyyy-mm-dd') %>\n" + " * http://www.mopidy.com/\n" + " * Copyright (c) <%= grunt.template.today('yyyy') %> " +