https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38714
--- Comment #3 from Jonathan Druart <[email protected]> --- (In reply to Lucas Gass (lukeg) from comment #2) > I did this from outside my k-t-d: > > cd /somewhere/outside/your/koha/path > git clone https://gitlab.com/joubu/prettier-plugin-jinja-template.git > cd /koha-dir > yarn install > ln -s /path/to/prettier-plugin-jinja-template > /path/to/koha/node_modules/prettier-plugin-jinja-template > > and then inside my k-t-d: > > kohadev-koha@kohadevbox:koha((b54a15b3d6e...))$ prettier > koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt > [error] Cannot find package 'prettier-plugin-jinja-template' imported from > /kohadevbox/koha/noop.js Yes, within ktd the symlink will be broken. BUT! Update: I've published our own npm package, see https://www.npmjs.com/package/@koha-community/prettier-plugin-template-toolkit (README is wrong for 2.0.1, will adjust later, the plugin name is prettierrc.js needs to specify the "koha-community" namespace) See the following commit on bug_38664: Bug 38664: Use our own prettier plugin - @koha-community/prettier-plugin-template-toolkit I would suggest you to: git fetch joubu git checkout last commit from bug 38714 on the bug_38664 branch git show bug_38664:.prettierrc.js > .prettierrc.js git show bug_38664:package.json > package.json yarn install Now try: prettier koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt => It should return a tidy version of the file. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
