Use handlebars from node_modules (on CI)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
7cceb667e9
commit
5d98f3fc0f
2 changed files with 7 additions and 7 deletions
|
@ -82,7 +82,7 @@ steps:
|
||||||
- name: handlebars
|
- name: handlebars
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- npm install handlebars -g
|
- npm i
|
||||||
- ./build/compile-handlebars-templates.sh
|
- ./build/compile-handlebars-templates.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
|
|
@ -5,22 +5,22 @@ REPODIR=`git rev-parse --show-toplevel`
|
||||||
cd $REPODIR
|
cd $REPODIR
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
handlebars -n OC.Settings.Templates settings/js/templates -f settings/js/templates.js
|
node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates settings/js/templates -f settings/js/templates.js
|
||||||
|
|
||||||
# Systemtags
|
# Systemtags
|
||||||
handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
|
node node_modules/handlebars/bin/handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
|
||||||
|
|
||||||
# Share
|
# Share
|
||||||
handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
|
node node_modules/handlebars/bin/handlebars -n OC.Share.Templates core/js/share -f core/js/sharetemplates.js
|
||||||
|
|
||||||
# Files app
|
# Files app
|
||||||
handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
|
node node_modules/handlebars/bin/handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
|
||||||
|
|
||||||
# Sharing
|
# Sharing
|
||||||
handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
|
node node_modules/handlebars/bin/handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
|
||||||
|
|
||||||
# Files external
|
# Files external
|
||||||
handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
|
node node_modules/handlebars/bin/handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
|
||||||
|
|
||||||
if [[ $(git diff --name-only) ]]; then
|
if [[ $(git diff --name-only) ]]; then
|
||||||
echo "Please submit your compiled handlebars templates"
|
echo "Please submit your compiled handlebars templates"
|
||||||
|
|
Loading…
Reference in a new issue