aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-04 14:14:10 +0500
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-04 14:35:05 +0500
commit8f1a1dda3c90241cca61def89cf2bb6ca214d52c (patch)
treebe71bdd3c886eb399d48f7779791d9ce79442486 /Makefile
parentmain.js: refactor IP address parsing (diff)
downloadwireguard-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--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7e1d174..f6f59fb 100644
--- a/Makefile
+++ b/Makefile
@@ -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,$@)'