3 Star 6 Fork 0

Gitee 极速下载/codepilot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/CodePilotai/codepilot
克隆/下载
env-variables.config.js 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
petebytes 提交于 2018-11-01 10:07 . Initial MIT release v5.0.0
const services = require('./services.config')
const sharedVars = {
'process.env.SPECTRON': process.env.SPECTRON
}
// Any environment variables that you will need to access in electron's main process (any files under 'src/main')
// get exported here.
module.exports.main = {
...sharedVars
}
// Any environment variables that you will need to access in electron's renderer process (any files under 'src/renderer')
// get exported here.
module.exports.renderer = {
...sharedVars,
'process.env.YOUTUBE_ACTIVE': services.youtube.active,
'process.env.YOUTUBE_API_KEY': process.env.YOUTUBE_API_KEY
? '"' + process.env.YOUTUBE_API_KEY + '"'
: services.youtube.key,
'process.env.GITHUB_ACTIVE': services.github.active,
'process.env.GITHUB_CLIENT_ID': process.env.GITHUB_CLIENT_ID
? '"' + process.env.GITHUB_CLIENT_ID + '"'
: services.github.client,
'process.env.GITHUB_CLIENT_SECRET': process.env.GITHUB_CLIENT_SECRET
? '"' + process.env.GITHUB_CLIENT_SECRET + '"'
: services.github.secret,
'process.env.STACKOVERFLOW_ACTIVE': services.stackoverflow.active,
'process.env.STACKOVERFLOW_API_KEY': process.env.STACKOVERFLOW_API_KEY
? '"' + process.env.STACKOVERFLOW_API_KEY + '"'
: services.stackoverflow.key,
'process.env.SEARCHCODE_ACTIVE': services.searchcode.active,
'process.env.LOCAL_ACTIVE': services.local.active,
'process.env.RANKER_ACTIVE': services.ranker.active
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/codepilot.git
git@gitee.com:mirrors/codepilot.git
mirrors
codepilot
codepilot
master

搜索帮助