-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Config.gs
57 lines (40 loc) · 1.16 KB
/
Config.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// JSHint - TODO
/* jshint asi: true */
/* jshint esversion: 6 */
(function(){"use strict"})()
// Code review all files - TODO
// JSHint review (see files) - TODO
// Unit Tests - TODO
// System Test (Dev) - TODO
// System Test (Prod) - TODO
// Config.gs
// =========
//
// Dev: AndrewRoberts.net
//
// All the constants and configuration settings
// Configuration
// =============
const SCRIPT_NAME = "GAS Framework"
const SCRIPT_VERSION = "v0.dev"
const PRODUCTION_VERSION_ = false
// Log Library
// -----------
const DEBUG_LOG_LEVEL_ = PRODUCTION_VERSION_ ? BBLog.Level.INFO : BBLog.Level.FINER
const DEBUG_LOG_DISPLAY_FUNCTION_NAMES_ = PRODUCTION_VERSION_ ? BBLog.DisplayFunctionNames.NO : BBLog.DisplayFunctionNames.NO
// Assert library
// --------------
const SEND_ERROR_EMAIL_ = PRODUCTION_VERSION_ ? true : false
const HANDLE_ERROR_ = PRODUCTION_VERSION_ ? Assert.HandleError.DISPLAY_FULL : Assert.HandleError.THROW
const ADMIN_EMAIL_ADDRESS_ = ''
// Tests
// -----
const TEST_FLAG_ = true
const TEST_SHEET_ID_ = ''
if (PRODUCTION_VERSION_) {
if (!TEST_FLAG_) {
throw new Error('Test Flag set in production')
}
}
// Constants/Enums
// ===============