aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
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,$@)'