diff --git a/bin/cache-clean.js b/bin/cache-clean.js index b9196fe..c10bdd9 100755 --- a/bin/cache-clean.js +++ b/bin/cache-clean.js @@ -454,7 +454,7 @@ function lm(a,b){var c=gm(ok(a,zh));Vg(function(d){return Xj(c,d)},Z.b(function( function qm(a){var b=new W(null,7,5,Y,[[B.a(a),"Converter"].join(""),[B.a(a),"InterfaceFactory"].join(""),[B.a(a),"\\Interceptor"].join(""),[B.a(a),"\\Logger"].join(""),[B.a(a),"Mapper"].join(""),[B.a(a),"Persistor"].join(""),[B.a(a),"\\Proxy"].join("")],null);if(N.b("Interface",ge(a,R(a)-9))){var c=R(a)-9;a=a.substring(0,c)}else a=null;return w(a)?hf.b(b,new W(null,3,5,Y,[[a,"Extension"].join(""),[a,"ExtensionInterface"].join(""),[a,"\\Repository"].join("")],null)):b} function rm(a,b){var c=pm(a);return w(c)?ff(Qi,Z.b(function(d){return[B.a(c),[Di(d,"\\","/"),".php"].join("")].join("")},qm(b))):null}function sm(a,b){try{var c=Wi(b,2048),d=nm(c),e=wd(Dg(/^\s*class\s+(\w+)/mi,B.a(c)));var f=w(e)?e:om(c);var h=w(w(d)?f:d)?["\\",B.a(d),"\\",B.a(f)].join(""):null}catch(l){h=null}return w(h)?rm(a,h):null}function tm(a){a=pm(a);return w(a)?ff(function(b){return La(b,"Extension.php")||La(b,"ExtensionInterface.php")},aj(a)):null} function um(a){try{return Xi(a)}catch(b){return!1}}function vm(a,b){b=sm(a,b);return M(b)?(wj.g("Removing generated code from",S([[B.a(a),":\n"].join(""),Fe(B,cf(", ",Z.b(function(c){return ge(c,R(a))},b)))])),Vg(um,b)):null}function wm(a){var b=tm(a);return M(b)?(wj("Removing all generated extension attributes classes"),uj.g(["In base dir ",B.a(a),":\n"].join(""),S([Fe(B,cf(", ",Z.b(function(c){return ge(c,R(a))},b)))])),Vg(um,b)):null};function xm(a,b){return[[B.a(a),"pub/static/"].join(""),B.a(b)].join("")}function ym(a,b){return[[B.a(a),"var/view_preprocessed/pub/static/"].join(""),B.a(b)].join("")}function zm(a){a=hf.b(ff(Ri,Zi(xm(a,"frontend"))),ff(Ri,Zi(ym(a,"frontend"))));return ff(function(b){return N.b("js-translation.json",Ki.basename(b))},df(Yi,S([a])))}function Am(a){w(Ri(a))&&(ij(a),uj.g("Removed files in",S([a])))} -function Bm(a,b){wj.g("Removing static content area",S([b]));Am(xm(a,b));Am(ym(a,b));Am(ym(a,"app"));Am(ym(a,"vendor"))};function Cm(a){a=[B.a(a),"/dev/tests/integration/tmp"].join("");return w(Ri(a))?(wj.g("Removing integration-test sandbox directories from",S([a])),Vg(function(b){return hj(b)},ff(function(b){return Ma(b,"/dev/tests/integration/tmp/sandbox-")},Yi(a)))):wj.g("Integration test tmp directory",S([a,"not found"]))};var Dm=require("process"),Em=new lb(null,7,["c",new W(null,1,5,Y,["config"],null),"b",new W(null,3,5,Y,["block_html","hyva_cms","hyva_admin_dashboard"],null),"l",new W(null,1,5,Y,["layout"],null),"f",new W(null,1,5,Y,["full_page"],null),"a",yd,"v",new W(null,4,5,Y,["block_html","layout","full_page","translate"],null),"t",new W(null,1,5,Y,["translate"],null)],null),Fm=new lb(null,2,["F",new W(null,1,5,Y,["frontend"],null),"A",new W(null,1,5,Y,["adminhtml"],null)],null); +function Bm(a,b){wj.g("Removing static content area",S([b]));Am(xm(a,b));Am(ym(a,b));Am(ym(a,"app"));Am(ym(a,"vendor"))};function Cm(a){a=[B.a(a),"/dev/tests/integration/tmp"].join("");return w(Ri(a))?(wj.g("Removing integration-test sandbox directories from",S([a])),Vg(function(b){return hj(b)},ff(function(b){return Ma(b,"/dev/tests/integration/tmp/sandbox-")},Yi(a)))):wj.g("Integration test tmp directory",S([a,"not found"]))};var Dm=require("process"),Em=new lb(null,8,["c",new W(null,1,5,Y,["config"],null),"b",new W(null,1,5,Y,["block_html"],null),"l",new W(null,1,5,Y,["layout"],null),"f",new W(null,1,5,Y,["full_page"],null),"a",yd,"v",new W(null,4,5,Y,["block_html","layout","full_page","translate"],null),"t",new W(null,1,5,Y,["translate"],null),"m",new W(null,2,5,Y,["hyva_cms","hyva_admin_dashboard"],null)],null),Fm=new lb(null,2,["F",new W(null,1,5,Y,["frontend"],null),"A",new W(null,1,5,Y,["adminhtml"],null)],null); function Gm(a){a.resume();a.setEncoding("utf8");a.setRawMode(!0)}function Hm(a,b){Gm(a);a.on("data",function(c){c=Mk(b,c);return w(c)?Yb(c):!0});uj.g(gi,S(["Listening for hotkeys"]))} function Im(a,b){var c=Kl();jl(function(){var d=function(){function f(h){var l=h[1];if(1===l)return h[2]=null,h[1]=2,Hh;if(2===l)return Al(h,4,b);if(3===l)return Bl(h,h[2]);if(4===l){l=h[2];uj.g("Key pressed:",S([l]));N.b(l,"")&&(wj.g(gi,S(["Bye!"])),Dm.exit());var k=Sc.b(Em,l);w(k)&&km(k);k=M(Sc.b(Fm,l));for(var m=null,n=0,q=0;;)if(qcachetypes {"c" ["config"] - "b" ["block_html" "hyva_cms" "hyva_admin_dashboard"] + "b" ["block_html"] "l" ["layout"] "f" ["full_page"] "a" [] ;; a for all "v" ["block_html" "layout" "full_page" "translate"] ;; v for view - "t" ["translate"]}) + "t" ["translate"] + "m" ["hyva_cms" "hyva_admin_dashboard"]}) (def key->static-content-areas {"F" ["frontend"] "A" ["adminhtml"]}) diff --git a/src/magento/watcher.cljs b/src/magento/watcher.cljs index 81999c5..d6da4e4 100644 --- a/src/magento/watcher.cljs +++ b/src/magento/watcher.cljs @@ -305,7 +305,7 @@ (defn show-hotkeys [] (log/notice :without-time "Hot-keys for manual cache cleaning:") - (log/notice :without-time "[c]onfig [b]lock_html [l]ayout [t]ranslate [f]ull_page [v]iew [a]ll\n") + (log/notice :without-time "[c]onfig [b]lock_html [l]ayout [t]ranslate [f]ull_page [v]iew [m]isc [a]ll\n") (log/notice :without-time "Clean generated code: [G]") (log/notice :without-time "Clean integration test sandboxes: [I]") (log/notice :without-time "Clean static content areas: [F]rontend [A]dminhtml\n"))