diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-09 10:14:02 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-01-09 10:14:02 +0100 |
commit | 500134d1ac9cc6c75d388a8234579f59833f66c1 (patch) | |
tree | b2a93e14ef474db9166de7d6101523361fcaa284 | |
parent | 5d8446f2924213898aaeb003ac58c23c7459d3af (diff) | |
download | backoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.tar.gz backoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.tar.bz2 backoffice-500134d1ac9cc6c75d388a8234579f59833f66c1.zip |
check js via makefile
-rw-r--r-- | Makefile.in | 10 |
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) |