You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

compile-handlebars-templates.sh 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env bash
  2. REPODIR=`git rev-parse --show-toplevel`
  3. cd $REPODIR
  4. # Comments files plugin
  5. node node_modules/handlebars/bin/handlebars -n OCA.Comments.Templates apps/comments/src/templates -f apps/comments/src/templates.js
  6. # Settings
  7. node node_modules/handlebars/bin/handlebars -n OC.Settings.Templates apps/settings/js/templates -f apps/settings/js/templates.js
  8. # Systemtags
  9. node node_modules/handlebars/bin/handlebars -n OC.SystemTags.Templates core/js/systemtags/templates -f core/js/systemtags/templates.js
  10. # Files app
  11. node node_modules/handlebars/bin/handlebars -n OCA.Files.Templates apps/files/js/templates -f apps/files/js/templates.js
  12. # Sharing
  13. node node_modules/handlebars/bin/handlebars -n OCA.Sharing.Templates apps/files_sharing/js/templates -f apps/files_sharing/js/templates.js
  14. # Files external
  15. node node_modules/handlebars/bin/handlebars -n OCA.Files_External.Templates apps/files_external/js/templates -f apps/files_external/js/templates.js
  16. if [[ $(git diff --name-only) ]]; then
  17. echo "Please submit your compiled handlebars templates"
  18. echo
  19. git diff
  20. exit 1
  21. fi
  22. echo "All up to date! Carry on :D"
  23. exit 0