1.0.0 • Published 2 years ago

whistle.nohost-xn v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

whistle.nohost-xn

【重要提醒】本插件只是一个模板,不能直接使用,主要是方便大家快速开发本地连接 nohost 的 whistle 插件,具体用途参见开发文档

访问 nohost 的 whistle 插件,安装此插件前确保你本地运行的 whistle 为最新版本(>= v2.3.1)。

需要用到 v2.3.1 及以上版本的 whistle,主要是因为项目的 rules.txt 里面用到了占位符 {{whistlePluginPackage.pluginHomepage}} 自动从插件的 package.jsonpluginHomepage 获取值,如果需要兼容低版本,可以直接手动替换即可。

安装或更新 whistle

npm i -g whistle --registry=https://r.npm.taobao.org
w2 restart

安装插件

w2 i whistle.nohost-xn

也可以指定 registry:w2 i whistle.nohost-xn --registry=https://r.npm.taobao.org 如果是公司内网用了 tnpmcnpmxnpm 命令,也可以采用:w2 xi whistle.nohost-xn,其中 x 表示你们所使用的新 npm 命令前缀,如 tnpmtßß。

安装成功后,可以在 whistle 界面的 Plugins 列表看到 nohost-xn 插件,插件默认处于启用状态,如果不需要可以禁用掉,这是插件的规则会自动被移除,更新插件只需重新安装下插件即可。