summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-01-09 10:14:02 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-01-09 10:14:02 +0100
commit500134d1ac9cc6c75d388a8234579f59833f66c1 (patch)
treeb2a93e14ef474db9166de7d6101523361fcaa284
parent5d8446f2924213898aaeb003ac58c23c7459d3af (diff)
downloadbackoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.tar.gz
backoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.tar.bz2
backoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.zip
check js via makefile
-rw-r--r--Makefile.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 730071d..04df657 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -6,7 +6,7 @@ srcdir = @srcdir@
script_templates = taler-merchant-backoffice backoffice.wsgi
templates = Makefile $(script_templates)
-
+ava = js/node_modules/.bin/ava
edit = sed -e 's|@prefix[@]|$(prefix)|g'
.PHONY: all
@@ -21,6 +21,14 @@ $(script_templates): %: Makefile %.in
$(edit) '$(srcdir)/$@.in' >$@.tmp
mv $@.tmp $@
+.PHONY: check-js
+check-js:
+ @cd js; yarn install
+ @$(ava) js/node_modules/.bin/ava js/test/index.js
+
+.PHONY: install-js
+install-js:
+ @cp js/*.js talerbackoffice/backoffice/static
.PHONY: install-data
install-data: $(templates)