glob: add service-worker to glob

This commit is contained in:
Liam Fitzgerald 2021-02-04 15:28:14 +10:00
parent e831dd1bc9
commit 90b8ae0065
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -105,12 +105,15 @@
(cat 3 js-name '.js') (cat 3 js-name '.js')
=+ .^(js=@t %cx :(weld home /app/landscape/js/bundle /[js-name]/js)) =+ .^(js=@t %cx :(weld home /app/landscape/js/bundle /[js-name]/js))
=+ .^(map=@t %cx :(weld home /app/landscape/js/bundle /[map-name]/map)) =+ .^(map=@t %cx :(weld home /app/landscape/js/bundle /[map-name]/map))
=+ .^(sw=@t %cx :(weld home /app/landscape/js/bundle /serviceworker/js))
=+ !<(=js=mime (js-tube !>(js))) =+ !<(=js=mime (js-tube !>(js)))
=+ !<(=sw=mime (js-tube !>(sw)))
=+ !<(=map=mime (map-tube !>(map))) =+ !<(=map=mime (map-tube !>(map)))
=/ =glob:glob =/ =glob:glob
%- ~(gas by *glob:glob) %- ~(gas by *glob:glob)
:~ /[js-name]/js^js-mime :~ /[js-name]/js^js-mime
/[map-name]/map^map-mime /[map-name]/map^map-mime
/serviceworker/js^sw-mime
== ==
=/ =path /(cat 3 'glob-' (scot %uv (sham glob)))/glob =/ =path /(cat 3 'glob-' (scot %uv (sham glob)))/glob
[%pass /make %agent [our.bowl %hood] %poke %drum-put !>([path (jam glob)])]~ [%pass /make %agent [our.bowl %hood] %poke %drum-put !>([path (jam glob)])]~