diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-04 14:14:10 +0500 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-04 14:35:05 +0500 |
commit | 8f1a1dda3c90241cca61def89cf2bb6ca214d52c (patch) | |
tree | be71bdd3c886eb399d48f7779791d9ce79442486 /Makefile | |
parent | main.js: refactor IP address parsing (diff) | |
download | wireguard-config-8f1a1dda3c90241cca61def89cf2bb6ca214d52c.tar.gz wireguard-config-8f1a1dda3c90241cca61def89cf2bb6ca214d52c.zip |
bundle ip-address (to be used instead of ipaddr.js)
This fucking sucks ass, but ipaddr.js is buggy:
https://github.com/whitequark/ipaddr.js/issues/160
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -29,6 +29,7 @@ ruby: .PHONY: deps deps: ruby bundle install + npm install .PHONY: build build: @@ -47,3 +48,9 @@ wget: .PHONY: view view: xdg-open '$(call escape,$(URL))' &> /dev/null + +.PHONY: bundle +bundle: assets/js/bundle.js + +assets/js/bundle.js: package-lock.json + npm exec -- browserify --require ip-address --outfile '$(call escape,$@)' |