mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
35 lines
496 B
Plaintext
35 lines
496 B
Plaintext
/- sur=hark-group-hook
|
|
/+ resource
|
|
^?
|
|
=< [. sur]
|
|
=, sur
|
|
|%
|
|
++ dejs
|
|
=, dejs:format
|
|
|%
|
|
++ action
|
|
%- of
|
|
:~ listen+dejs-path:resource
|
|
ignore+dejs-path:resource
|
|
==
|
|
--
|
|
::
|
|
++ enjs
|
|
=, enjs:format
|
|
|%
|
|
++ res
|
|
(cork enjs-path:resource (lead %s))
|
|
::
|
|
++ update
|
|
|= upd=^update
|
|
%+ frond -.upd
|
|
?- -.upd
|
|
?(%listen %ignore) (res group.upd)
|
|
::
|
|
%initial
|
|
:- %a
|
|
(turn ~(tap in watching.upd) res)
|
|
==
|
|
--
|
|
--
|