-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.js
More file actions
70 lines (63 loc) · 1.36 KB
/
constants.js
File metadata and controls
70 lines (63 loc) · 1.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
68
69
70
const folderMapping = {
android: "Android",
flutter: "Flutter",
ios: "iOS",
react: "React",
reactnative: "React-Native",
angular: "Angular",
api: "API",
javascript: "JavaScript",
unity: "Unity",
}
const platformMapping = {
android: "android",
flutter: "flutter-dart",
ios: "ios-swift",
react: "react",
reactnative: "react-native",
angular: "angular",
api: "api",
javascript: "javascript",
unity: "Unity",
}
const languageMapping = {
android: "kotlin",
flutter: "dart",
ios: "swift",
react: "javascript",
reactnative: "javascript",
angular: "javascript",
api: "javascript",
javascript: "javascript",
unity: "Unity",
}
const PRODUCT = process.env.PRODUCT
let DOCUSAURUS_INDEX =
process.env.DEPLOYMENT_ENV === "production"
? `DOCUSAURUS${PRODUCT === "video" ? "_VIDEO" : ""}`
: `DOCUSAURUS${PRODUCT === "video" ? "_VIDEO" : ""}_STG`
const CMS_INDEX = "DOCS"
const IGNORED_DIRECTORIES = ["common-content"]
const SDK_ORDER = [
"react",
"ios",
"android",
"reactnative",
"flutter",
"javascript",
"angular",
"api",
]
const ignoredVideoSDKsStaging = ["angular"]
const ignoredVideoSDKsProduction = ["angular"]
module.exports = {
IGNORED_DIRECTORIES,
DOCUSAURUS_INDEX,
CMS_INDEX,
folderMapping,
platformMapping,
languageMapping,
SDK_ORDER,
ignoredVideoSDKsStaging,
ignoredVideoSDKsProduction,
}