forked from edrlab/thorium-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpreprocessor-directives.ts
More file actions
67 lines (47 loc) · 2.36 KB
/
preprocessor-directives.ts
File metadata and controls
67 lines (47 loc) · 2.36 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
// ==LICENSE-BEGIN==
// Copyright 2017 European Digital Reading Lab. All rights reserved.
// Licensed to the Readium Foundation under one or more contributor license agreements.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file exposed on Github (readium) in the project repository.
// ==LICENSE-END==
// build-time preprocessor directives
// (must be set by bundlers like WebPack / Browserify etc.)
declare const __RENDERER_LIBRARY_BASE_URL__: string;
export const _RENDERER_LIBRARY_BASE_URL = __RENDERER_LIBRARY_BASE_URL__;
declare const __RENDERER_READER_BASE_URL__: string;
export const _RENDERER_READER_BASE_URL = __RENDERER_READER_BASE_URL__;
declare const __RENDERER_PDF_WEBVIEW_BASE_URL__: string;
export const _RENDERER_PDF_WEBVIEW_BASE_URL = __RENDERER_PDF_WEBVIEW_BASE_URL__;
declare const __NODE_MODULE_RELATIVE_URL__: string;
export const _NODE_MODULE_RELATIVE_URL = __NODE_MODULE_RELATIVE_URL__;
declare const __DIST_RELATIVE_URL__: string;
export const _DIST_RELATIVE_URL = __DIST_RELATIVE_URL__;
declare const __PACKAGING__: string;
export const _PACKAGING = __PACKAGING__;
declare const __VSCODE_LAUNCH__: string;
export const _VSCODE_LAUNCH = __VSCODE_LAUNCH__;
declare const __GIT_BRANCH__: string;
export const _GIT_BRANCH = __GIT_BRANCH__;
declare const __GIT_SHORT__: string;
export const _GIT_SHORT = __GIT_SHORT__;
declare const __GIT_DATE__: string;
export const _GIT_DATE = __GIT_DATE__;
declare const __APP_VERSION__: string;
export const _APP_VERSION = __APP_VERSION__;
declare const __APP_NAME__: string;
export const _APP_NAME = __APP_NAME__;
// declare const __USE_HTTP_STREAMER__: boolean;
// export const _USE_HTTP_STREAMER = __USE_HTTP_STREAMER__;
declare const __NODE_ENV__: string;
export const _NODE_ENV = __NODE_ENV__;
// when not in packaged mode (i.e. prod or dev, but no app bundle),
// then check runtime process.env:
export const LCP_SKIP_LSD = __PACKAGING__ === "0" && process.env.LCP_SKIP_LSD === "1";
export const IS_DEV =
// ... either build-time "var":
__NODE_ENV__ === "DEV" ||
// ... or when not packaging, check runtime process.env:
__PACKAGING__ === "0" &&
(process.env.NODE_ENV === "development" || process.env.NODE_ENV === "dev");
declare const __CONTINUOUS_INTEGRATION_DEPLOY__: boolean;
export const _CONTINUOUS_INTEGRATION_DEPLOY = __CONTINUOUS_INTEGRATION_DEPLOY__;