We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安装whistle及所需插件:
npm i -g whistle whistle.nohost-xxx
Mac 或 Linux 可能需要加 sudo:
sudo
sudo npm i -g whistle whistle.nohost-xxx
其中,whistle.nohost-xxx 用于切换nohost环境的whistle插件(实现参考:https://github.com/nohosts/whistle.nohost-imweb),主要用于选择后台测试环境,前端无需本地配置后台环境,具体操作看后面介绍。
whistle.nohost-xxx
启动whistle:
w2 start
Mac是如果用brew安装Node可能会出现命令找不到问题,手动配下path,或者网上找下解决方案
配置代理:
8899
打开whistle界面:http://local.whistlejs.com
安装whislte根证书:https://wproxy.org/whistle/webui/https.html
上述操作只在第一次开发项目需要安装,后面最多只需在重启电脑时启动下whistle即可:w2 start
agency-react
git clone http://git.test.com/xxx/agency-react.git
tnpm i
w2 add
npm run dev
whistle界面 > Plugins > nohostenv插件界面
所有项目的本地映射规则都放在项目的 .whistle.js 文件中,并通过 w2 add 命令自动设置到whistle,无需手动配置项目的本地环境;所有公共环境都在nohost上配好,前端无需配置后台环境,后台也无需配置前端环境,产品测试无需配置任何环境。
.whistle.js
vConsole
eruda
更多功能参考:https://github.com/avwo/whistle
The text was updated successfully, but these errors were encountered:
你好 .whistle.js文件有示例吗,具体是怎么配置账号和环境的呢
Sorry, something went wrong.
https://wproxy.org/whistle/cli.html
No branches or pull requests
安装Node
安装工具
安装whistle及所需插件:
Mac 或 Linux 可能需要加
sudo
:其中,
whistle.nohost-xxx
用于切换nohost环境的whistle插件(实现参考:https://github.com/nohosts/whistle.nohost-imweb),主要用于选择后台测试环境,前端无需本地配置后台环境,具体操作看后面介绍。启动whistle:
配置代理:
8899
):打开whistle界面:http://local.whistlejs.com
安装whislte根证书:https://wproxy.org/whistle/webui/https.html
上述操作只在第一次开发项目需要安装,后面最多只需在重启电脑时启动下whistle即可:
w2 start
开始工作
agency-react
为例):whistle界面 > Plugins > nohostenv插件界面
选择对应后台测试环境:所有项目的本地映射规则都放在项目的
.whistle.js
文件中,并通过w2 add
命令自动设置到whistle,无需手动配置项目的本地环境;所有公共环境都在nohost上配好,前端无需配置后台环境,后台也无需配置前端环境,产品测试无需配置任何环境。页面调试
vConsole
或eruda
可以用插件:https://github.com/whistle-plugins/whistle.inspect更多功能参考:https://github.com/avwo/whistle
The text was updated successfully, but these errors were encountered: