UNPKG

616 BJavaScriptView Raw
1const cwd = process.cwd();
2const path = require("path");
3const getPath = name => path.join(cwd, name);
4const os = require("os");
5const platform = os.platform();
6const isWin = platform == "win32";
7const isMac = platform == "darwin";
8
9exports.HOST = "http://www.jsgaotie.com";
10exports.BABEL_CONFIG_PATH = getPath("babel.config.js");
11exports.YNW_BABEL_PATH = getPath("ynw.babel.js");
12exports.YNW_CONFIG_PATH = getPath("ynw.config.js");
13exports.PACKAGE_JSON = getPath("package.json");
14exports.PRODUCTION = "production";
15exports.DEVELOPMENT = "development";
16exports.isWin = isWin;
17exports.isWin = isMac;