1 Star 0 Fork 9

luodh/notesnook

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.env-cmdrc.js 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
thecodrr 提交于 2022-08-26 19:19 +08:00 . refactor: run prettier on the whole codebase
const { execSync } = require("child_process");
const { cpus, networkInterfaces } = require("os");
const { version } = require("./package.json");
const ip = require("ip");
const NUM_CPUS = cpus().length;
const IS_CI = process.env.CI;
const gitHash = execSync("git rev-parse --short HEAD").toString().trim();
const APP_VERSION = version.replaceAll(".", "");
console.log("App version:", APP_VERSION);
console.log("Ip address:", ip.address());
module.exports = {
beta: {
REACT_APP_BETA: true
},
test: {
TEST_ALL: true
},
all: {
UV_THREADPOOL_SIZE: IS_CI ? NUM_CPUS : 2,
GENERATE_SOURCEMAP: false,
INLINE_RUNTIME_CHUNK: false,
DISABLE_ESLINT_PLUGIN: true,
REACT_APP_GIT_HASH: gitHash,
REACT_APP_VERSION: APP_VERSION
},
dev: {
REACT_APP_LOCALHOST: ip.address(),
REACT_APP_CI: "true"
},
web: {
REACT_APP_PLATFORM: "web"
},
debug: {
PWDEBUG: 1,
DEBUG: "pw:api"
},
silent: {
REACT_APP_TEST: true,
DISABLE_ESLINT_PLUGIN: "true",
FAST_REFRESH: "false",
BROWSER: "none"
},
desktop: {
BROWSER: "none",
REACT_APP_PLATFORM: "desktop"
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/thinkinpg/notesnook.git
git@gitee.com:thinkinpg/notesnook.git
thinkinpg
notesnook
notesnook
master

搜索帮助