1 Star 0 Fork 11

codesignup/stf-ease_1

forked from 云香水识/stf-ease 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.f2econfig.prod.js 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
shiyangyang 提交于 2021-08-24 13:56 +08:00 . 1. 修改README.md
// @ts-check
const { STFEase } = require('./lib')
const port = Number(process.env['PORT']) || 7100
const ease = new STFEase({
/**
* windows 环境下可以配置环境变量启动 ADB_SHELL=adb.exe
*/
adb: process.env['ADB_SHELL'] || 'adb',
/**
* 要和f2e-server的端口一致
*/
port,
/**
* adb forward 起始端口,会自动检查是否占用,已占用则 +1
*/
port_tcp_start: Number(process.env['PORT_FORWARD_BEGIN']) || 7400,
/**
* 默认展示宽度
*/
screen_width: Number(process.env['SCREEN_WIDTH']) || 360,
/**
* 是否默认安装需要的apk文件
*/
install_pkg: process.env['INSTALL_PKG'] === 'true',
/**
* 帧率限制
*/
rate: Number(process.env['RATE']) || 30,
})
/**
* @type {import('f2e-server').F2EConfig}
*/
const config = {
port,
gzip: true,
livereload: process.env['DEV'] === 'true',
buildFilter: (p) => /^(index|static)/.test(p),
middlewares: [
ease.create_route,
],
// @ts-ignore
onServerCreate: ease.create_server
}
module.exports = config
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/codesignup/stf-ease_1.git
git@gitee.com:codesignup/stf-ease_1.git
codesignup
stf-ease_1
stf-ease_1
master

搜索帮助