mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
40 lines
1.5 KiB
TypeScript
40 lines
1.5 KiB
TypeScript
// App's common configuration for any process (main, renderer, build pipeline, etc.)
|
|
import path from "path";
|
|
|
|
// Temp
|
|
export const reactAppName = "app_react"
|
|
export const vueAppName = "app_vue"
|
|
|
|
// Flags
|
|
export const isMac = process.platform === "darwin"
|
|
export const isWindows = process.platform === "win32"
|
|
export const isDebugging = process.env.DEBUG === "true";
|
|
export const isProduction = process.env.NODE_ENV === "production"
|
|
export const isDevelopment = isDebugging || !isProduction;
|
|
export const buildVersion = process.env.BUILD_VERSION;
|
|
export const isTestEnv = !!process.env.JEST_WORKER_ID;
|
|
|
|
// Paths
|
|
export const contextDir = process.cwd();
|
|
export const staticDir = path.join(contextDir, "static");
|
|
export const outDir = path.join(contextDir, "out");
|
|
export const mainDir = path.join(contextDir, "src/main");
|
|
export const rendererDir = path.join(contextDir, "src/renderer");
|
|
export const htmlTemplate = path.resolve(rendererDir, "template.html");
|
|
export const sassCommonVars = path.resolve(rendererDir, "components/vars.scss");
|
|
|
|
// Apis
|
|
export const staticProto = "static://"
|
|
|
|
export const apiPrefix = {
|
|
BASE: '/api',
|
|
TERMINAL: '/api-terminal', // terminal api
|
|
KUBE_BASE: '/api-kube', // kubernetes cluster api
|
|
KUBE_HELM: '/api-helm', // helm charts api
|
|
KUBE_RESOURCE_APPLIER: "/api-resource",
|
|
};
|
|
|
|
// Links
|
|
export const issuesTrackerUrl = "https://github.com/lensapp/lens/issues"
|
|
export const slackUrl = "https://join.slack.com/t/k8slens/shared_invite/enQtOTc5NjAyNjYyOTk4LWU1NDQ0ZGFkOWJkNTRhYTc2YjVmZDdkM2FkNGM5MjhiYTRhMDU2NDQ1MzIyMDA4ZGZlNmExOTc0N2JmY2M3ZGI"
|