Build expiration date

Add the buildExpiration config and add it to the renderer's config
object. Use grunt to write the build expiration to
config/local-production.json which will override the default value (no
expiration) in production. Finally, run this grunt task as part of the
build process.

// FREEBIE
This commit is contained in:
lilia 2017-04-13 10:52:12 -07:00 committed by Scott Nonnenberg
parent d0fc2f7e71
commit e7e030a5e2
No known key found for this signature in database
GPG key ID: A4931C09644C654B
5 changed files with 20 additions and 2 deletions

View file

@ -1,6 +1,12 @@
;(function() {
'use strict';
var BUILD_EXPIRATION = 0;
try {
BUILD_EXPIRATION = parseInt(window.config.buildExpiration);
if (BUILD_EXPIRATION) {
console.log("Build expires: ", new Date(BUILD_EXPIRATION).toISOString());
}
} catch (e) {}
window.extension = window.extension || {};