From 92b7ba6601087ff29f148d1ba9ab70644c7d5ddf Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Wed, 13 Nov 2013 13:15:44 +0100 Subject: [PATCH] dont delete key from dev build --- Gruntfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ba49a58..5b5cf52 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -259,7 +259,8 @@ module.exports = function(grunt) { patchManifest({ suffix: ' (TEST)', client_id: '440907777130-bfpgo5fbo4f7hetrg3hn57qolrtubs0u.apps.googleusercontent.com', - version: version + version: version, + deleteKey: true }); }); grunt.registerTask('manifest-stable', function() { @@ -269,7 +270,8 @@ module.exports = function(grunt) { patchManifest({ suffix: ' (Alpha)', - version: version + version: version, + deleteKey: true }); }); @@ -287,7 +289,9 @@ module.exports = function(grunt) { if (options.client_id) { manifest.oauth2.client_id = options.client_id; } - delete manifest.key; + if (options.deleteKey) { + delete manifest.key; + } fs.writeFileSync(path, JSON.stringify(manifest, null, 2)); }