js: Include package version in built files
This commit is contained in:
parent
af238d5259
commit
785c469ec4
@ -2,8 +2,9 @@
|
|||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
pkg: grunt.file.readJSON("package.json"),
|
||||||
meta: {
|
meta: {
|
||||||
banner: "/*! Mopidy.js - built " +
|
banner: "/*! Mopidy.js v<%= pkg.version %> - built " +
|
||||||
"<%= grunt.template.today('yyyy-mm-dd') %>\n" +
|
"<%= grunt.template.today('yyyy-mm-dd') %>\n" +
|
||||||
" * http://www.mopidy.com/\n" +
|
" * http://www.mopidy.com/\n" +
|
||||||
" * Copyright (c) <%= grunt.template.today('yyyy') %> " +
|
" * Copyright (c) <%= grunt.template.today('yyyy') %> " +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user