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