All Projects → homkai → amd-cmd-hot-update-hmr

homkai / amd-cmd-hot-update-hmr

Licence: other
esl-hot-update: Hot update esl modules(AMD、CMD) when modifed. JS, LESS, tpl, component is all supported!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to amd-cmd-hot-update-hmr

Node Hot Loader
Hot module replacement (hot reload) for Node.js applications. Develop without server restarting.
Stars: ✭ 111 (+344%)
Mutual labels:  module, hot-reload
vscode-requirejs
Provides goto definition functionality for require js modules.
Stars: ✭ 20 (-20%)
Mutual labels:  module, amd
Angular Async Loader
Load modules and components asynchronously for angular 1.x application.
Stars: ✭ 137 (+448%)
Mutual labels:  amd, cmd
Requirejs Demo
《RequreJS学习笔记》
Stars: ✭ 164 (+556%)
Mutual labels:  module, amd
linux-online-docs
linux-online-docs(鸟哥的Linux 私房菜) 🔥 🚀 🎉 🇨🇳
Stars: ✭ 30 (+20%)
Mutual labels:  cmd
node-advanced
Node Advanced Courseware
Stars: ✭ 80 (+220%)
Mutual labels:  module
ddcpuid
🔬 dd's x86 CPU Identification tool
Stars: ✭ 21 (-16%)
Mutual labels:  amd
Batch-File-examples
🐚 Various batch files (descriptions are in the read me file)
Stars: ✭ 37 (+48%)
Mutual labels:  cmd
bandler
The Simple JS Module Bundler
Stars: ✭ 17 (-32%)
Mutual labels:  module
webpacker
🔸 Webpack configuration manager
Stars: ✭ 18 (-28%)
Mutual labels:  amd
the-super-tiny-web-module-resolver
simple js bundler written in 100 lines of code.
Stars: ✭ 25 (+0%)
Mutual labels:  module
molecule
⚛️ –  – ⚛️ Boilerplate for cross platform web/native react apps with electron.
Stars: ✭ 95 (+280%)
Mutual labels:  hot-reload
whichpm
Locates installed Perl modules.
Stars: ✭ 20 (-20%)
Mutual labels:  module
vue-component-creator-plugin
Simplify your frontend dev by automatically created vue components and vuex modules
Stars: ✭ 16 (-36%)
Mutual labels:  module
array-sort-by
Powerful mechanism to sort arrays or array of objects by one or more properties. You can also specify a custom comparer function.
Stars: ✭ 37 (+48%)
Mutual labels:  amd
arel
Lightweight browser hot reload for Python ASGI web apps
Stars: ✭ 69 (+176%)
Mutual labels:  hot-reload
puppetlabs-limits
Module for managing pam limits in /etc/security/limits.conf
Stars: ✭ 14 (-44%)
Mutual labels:  module
Gigrator
Git repos migration tool which supports Github / Gitee / Gitlab / Gitea / Coding / Gogs / 腾讯工蜂.
Stars: ✭ 34 (+36%)
Mutual labels:  cmd
modules
Officially supported Revel modules
Stars: ✭ 46 (+84%)
Mutual labels:  module
breaker
🚧 Flexible mechanism to make execution flow interruptible.
Stars: ✭ 100 (+300%)
Mutual labels:  module

EHU(esl-hot-update)

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

高级使用

安装

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].