npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ehu

v0.1.0

Published

esl-hot-update: Hot update esl modules when modifed. JS, LESS, tpl, component is all supported!

Downloads

13

Readme

EHU(esl-hot-update)

  • 与默认的web server完美解耦,可以支持http-server、edp webserver start等原来的启动逻辑
  • 对esl模块,做热更新加载,极大方便调试!
  • 完美兼容edp、edp-webserver,使用方便
  • 全面支持支持MVC、Component、monitor、模板文件、LESS等等

快速使用(FCFE同学参考)

  • /nirvana-workspace *

npm install -g ehu(mac下需要sudo,windows下需要管理员权限)

在原来执行edp webserver start命令的路径 执行 ehu(不再需要执行 edp webserver start)

原来端口号8848修改为8844(原8848依旧可以使用,但不支持热更新)

  • /chunhua-workspace及其他项目 参考配置 *

高级使用

安装

npm install -g ehu(mac下需要sudo,windows下需要管理员权限)

配置

  • yourProjectDir/ehu.config(JSON格式)
  • 配置参考
    {
        // 默认的web server地址
        "defaultServer": "http://127.0.0.1:8848",
        // 默认的web server启动命令
        "defaultServerCLI": "edp webserver start",
        // 从服务器根目录到需要监控的文件夹中间path
        "baseDir": "nirvana-workspace",
        // hot update 需要watch的文件夹(不包括baseDir)
        "watchDirs": "src",
        // 入口文件(不包括baseDir)
        "indexHTML": "main.html",
        // ehu启动端口号(不可与默认的服务器端口号冲突)
        "port": 8844
    }

启动

cd yourProjectDir

ehu [-p(--port)]

访问新的地址 http://127.0.0.1:8844(默认端口号8844)

特别说明:启动ehu后,原来的服务完全不受影响,如原来是8848端口,现在仍旧可以正常访问。

手动启动默认web server

cd yourProjectDir

edp webserver start

ehu -n(--noServerCLI)

或者先配置defaultServerCLI为""

ehu

FAQ

1、web server挂掉如何解决?

  • 先按原来的方式启动默认web server,如edp webserver start
  • 再在启动web server的路径,重开一个命令行窗口启动ehu,并加参数-n,即ehu -n