-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapps.ts
79 lines (75 loc) · 2.1 KB
/
apps.ts
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
71
72
73
74
75
76
77
78
79
import path from "path";
type Platform = "jetbrains" | "web" | "vs";
export const appData: AppData = {
admin: {
entry: path.resolve(__dirname, "./src/containers/Admin/index.tsx"),
platforms: ["web"]
},
dashboard: {
entry: path.resolve(__dirname, "./src/containers/Dashboard/index.tsx"),
environmentVariables: ["dashboardEnvironment"],
platforms: ["jetbrains", "vs"]
},
documentation: {
entry: path.resolve(__dirname, "./src/containers/Documentation/index.tsx"),
environmentVariables: ["documentationPage"],
platforms: ["jetbrains"]
},
["email-confirmation"]: {
entry: path.resolve(
__dirname,
"./src/containers/EmailConfirmation/index.tsx"
),
platforms: ["web"]
},
["ide-launcher"]: {
entry: path.resolve(__dirname, "./src/containers/IdeLauncher/index.tsx"),
platforms: ["web"]
},
login: {
entry: path.resolve(__dirname, "./src/containers/Login/index.tsx"),
platforms: ["web"]
},
["installation-wizard"]: {
entry: path.resolve(
__dirname,
"./src/containers/InstallationWizard/index.tsx"
),
environmentVariables: ["wizardFirstLaunch", "wizardSkipInstallationStep"],
platforms: ["jetbrains"]
},
main: {
entry: path.resolve(__dirname, "./src/containers/Main/index.tsx"),
platforms: ["jetbrains", "vs"]
},
// /** @deprecated */
// notifications: {
// entry: path.resolve(__dirname, "./src/containers/Notifications/index.tsx"),
// environmentVariables: [
// "notificationsViewMode"
// ],
// platforms: ["jetbrains"]
// },
["recent-activity"]: {
entry: path.resolve(__dirname, "./src/containers/RecentActivity/index.tsx"),
platforms: ["jetbrains"]
},
troubleshooting: {
entry: path.resolve(
__dirname,
"./src/containers/Troubleshooting/index.tsx"
),
platforms: ["jetbrains"]
}
};
type AppData = Record<
string,
{ entry: string; environmentVariables?: string[]; platforms: string[] }
>;
export interface WebpackEnv {
WEBPACK_BUNDLE: true;
WEBPACK_BUILD: true;
PLATFORM?: Platform;
ZIP?: boolean;
["ZIP_FILE_FORMAT"]?: string;
}