2016-02-17 20:44:40 +00:00
|
|
|
/// <reference path="typings/main.d.ts" />
|
2016-02-20 09:11:25 +00:00
|
|
|
|
|
|
|
import helpers = require("./smartenv.classes.helpers");
|
2016-02-17 20:44:40 +00:00
|
|
|
export class Environment {
|
2016-02-20 09:11:25 +00:00
|
|
|
runtimeEnv:string;
|
|
|
|
isBrowser:boolean;
|
|
|
|
userAgent:string;
|
|
|
|
isNode:boolean;
|
|
|
|
nodeVersion:string;
|
|
|
|
isCI:boolean;
|
|
|
|
isTravis:boolean;
|
2016-03-03 00:50:13 +00:00
|
|
|
isC9:boolean;
|
2016-02-20 09:11:25 +00:00
|
|
|
constructor() {
|
|
|
|
this.runtimeEnv = helpers.getEnvString();
|
|
|
|
this.isBrowser = helpers.isBrowser();
|
|
|
|
this.userAgent = helpers.getUserAgentString();
|
|
|
|
this.isNode = helpers.isNode();
|
|
|
|
this.nodeVersion = helpers.getNodeVersion();
|
|
|
|
this.isCI = helpers.isCI();
|
|
|
|
this.isTravis = helpers.isTravis();
|
2016-03-03 00:50:13 +00:00
|
|
|
this.isC9 = helpers.isC9();
|
2015-11-30 14:04:04 +00:00
|
|
|
};
|
2015-12-01 07:29:58 +00:00
|
|
|
}
|