-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export interface EnvInfo { | ||
/** Detect if global `window` object is available */ | ||
browser: boolean | ||
/** Detect if `NODE_ENV` environment variable is `test` */ | ||
test: boolean | ||
/** Detect if `NODE_ENV` environment variable is `dev` or `development` */ | ||
dev: boolean | ||
/** Detect if `NODE_ENV` environment variable is `production` */ | ||
production: boolean | ||
/** Detect if `DEBUG` environment variable is set */ | ||
debug: boolean | ||
/** Detect if a well-known CI is detected */ | ||
ci: boolean | ||
/** Detect if TTY is available */ | ||
tty: boolean | ||
/** Detect if MINIMAL environment variable is set, running in CI or test or TTY is unavailable */ | ||
minimal: boolean | ||
/** Detect if process.platform is windows */ | ||
windows: boolean | ||
/** Detect if process.platform is darwin (MacOS) */ | ||
darwin: boolean | ||
/** Detect if process.platform is linux */ | ||
linux: boolean | ||
} |