Skip to content

Commit

Permalink
Templates and translations (#68)
Browse files Browse the repository at this point in the history
* Add the directory "site" to clean command

* Setup new templates package

* Linting fixes

* Add husky pre-commit to fix linting before committing changes.

* Move translation files to new package

* Rename record's template directory to hbs

* Move consent doc to templates package

* Add handlebars to templates

* Add consentDocument function

* Move utils from record to templates

* Use jsPsych's v2 config

* Move translation error to templates

* Add hbs and yaml import as strings to Rollup config

* Add data and Rollupjs dependency to templates package

* Move consent video trial template to templates package

* Add polyfill to rollupjs config for handlebars

* Move template rendering to templates package

* Move video consent function to its own file

* Add templates as a dep for the record package

* Update existing tests

* Tests

* Added declare window back to record's consent video

* Changeset

* Remove unnecessary comments

* Fix Rollupjs build issue
  • Loading branch information
okaycj authored Oct 17, 2024
1 parent 4e72f2b commit bb6754c
Show file tree
Hide file tree
Showing 45 changed files with 3,343 additions and 240 deletions.
6 changes: 6 additions & 0 deletions .changeset/early-seahorses-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lookit/templates": patch
"@lookit/record": patch
---

Move translations and video consent templates to new templates package.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ coverage
Procfile
.env
site
.DS_Store
.DS_Store
packages/style/**/*.js
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run fix
Loading

0 comments on commit bb6754c

Please sign in to comment.