legica
This commit is contained in:
3
constants/environments.ts
Normal file
3
constants/environments.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const ENVIRONMENTS = ["development", "testing", "production"];
|
||||
export const ENVIRONMENT =
|
||||
ENVIRONMENTS.filter((env) => process?.argv?.includes?.(`--${env}`))?.[0] || "development";
|
||||
2
constants/index.ts
Normal file
2
constants/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./environments";
|
||||
export * from "./version";
|
||||
3
constants/version.ts
Normal file
3
constants/version.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { version } from "../package.json";
|
||||
|
||||
export const APP_VERSION = version;
|
||||
Reference in New Issue
Block a user