1 Star 0 Fork 0

liujiachang / app-port

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

应用端口

记录Web开发时各项目在不同环境下使用的端口号,防止端口冲突。

使用

克隆代码到本地后,打开谷歌浏览器,点击 更多工具 -> 扩展程序 -> 加载已解压的扩展程序 -> 选择chrome-extension文件夹

在chrome-extension目录下新增 data.json,并按以下规则输入数据:

{
  "ports": [
    {
      // 应用名称
      "title": "应用A",
      // 应用描述,可不填
      "sub_title": "描述A",
      // 开发环境使用的端口号,可不填
      "dev_port": 3000,
      // 测试环境使用的端口号,可不填
      "test_port": 6000,
      // 生产环境使用的端口号,可不填
      "prd_port": 8000
    },
    {
      "title": "应用B",
      "sub_title": "",
      "dev_port": 3001,
      "test_port": null,
      "prd_port": null
    },
    // ...
  ]
}

插件展示

常规状态:

常规状态

端口推荐:

推荐端口

端口检测:

推荐端口

推荐端口

MIT License Copyright (c) 2022 liujiachang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

谷歌浏览器插件,记录Web开发时各项目在不同环境下使用的端口号,防止端口冲突。 展开 收起
JavaScript 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/liiiiiiu/app-port.git
git@gitee.com:liiiiiiu/app-port.git
liiiiiiu
app-port
app-port
main

搜索帮助