玩命加载中 . . .

主页 归档 分类 标签

hexo插件本地测试

前言

Hello,晚上好,正直九点时间。我还没吃饭呢,┭┮﹏┭┮。
这是我的我的插件本地测试经历吧。
具体教程网上很多。

dev test in local

hexo plugin how to test your npm plugin package.
I use npm link,and something must to be do with hexo plugin test.
This is step:

  1. In your npm package,use npm link to test in local.
  2. And then, in your project,use npm link [your packagen_ame]to install it.
  3. Ok,you can do test work.
  4. And last,you use npm unlink [your package_name] to uninstall it.

But why,I want to write this.

Because in hexo module plugin,it needs more step to do it,if not it dosen’t work.
This is step:

  1. In your package to add packagename to dependencies.
  2. And Ok,I tell you where to load module,the path is about node_module/hexo/lib/hexo/load_plugins.
---------------- The End and I hope sunshines on the outside. ----------------
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2022 Ma
  • 访问人数: | 浏览次数:

      请我喝杯咖啡吧~

      支付宝
      微信