diff options
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | compile-handlebars-templates.sh | 6 |
2 files changed, 8 insertions, 2 deletions
@@ -31,8 +31,8 @@ install-npm-deps: install-npm-deps-dev: npm install --deps -build-js-templates: dev-setup - ./node_modules/.bin/handlebars -n OCA.VideoCalls.Admin.Templates js/admin/templates/ -f js/admin/templates.js +compile-handlebars-templates: dev-setup + bash compile-handlebars-templates.sh dev-setup: install-npm-deps-dev diff --git a/compile-handlebars-templates.sh b/compile-handlebars-templates.sh new file mode 100755 index 000000000..663a5bd83 --- /dev/null +++ b/compile-handlebars-templates.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Prefer the local handlebars script, and fall back to the global one. +export PATH=./node_modules/.bin/:$PATH + +handlebars -n OCA.VideoCalls.Admin.Templates js/admin/templates/ -f js/admin/templates.js |