Logging the Leanplum config to the console to make it easy to check the correct values are being used.
This commit is contained in:
parent
14eb2d2617
commit
39e57eccc1
1 changed files with 6 additions and 2 deletions
|
|
@ -434,10 +434,14 @@ module.exports = function(grunt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var leanplumForEnv = env === 'prod' ? leanplumConfig.prod : leanplumConfig.dev;
|
var leanplumForEnv = env === 'prod' ? leanplumConfig.prod : leanplumConfig.dev;
|
||||||
|
var appId = leanplumForEnv.appId;
|
||||||
|
var key = leanplumForEnv.key;
|
||||||
|
console.log('Leanplum app ID: "' + appId + '"');
|
||||||
|
console.log('Leanplum key: "' + key + '"');
|
||||||
|
|
||||||
var newContent = '// Generated\n' + content
|
var newContent = '// Generated\n' + content
|
||||||
.replace("appId: ''","appId: '" + leanplumForEnv.appId + "'")
|
.replace("appId: ''","appId: '" + appId + "'")
|
||||||
.replace("key: ''", "key: '" + leanplumForEnv.key + "'");
|
.replace("key: ''", "key: '" + key + "'");
|
||||||
return newContent;
|
return newContent;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue