{"_id":"@dgrammatiko/convert-template","_rev":"6-b5e0f3637700db4d913fe79ada1347b3","name":"@dgrammatiko/convert-template","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@dgrammatiko/convert-template","version":"1.0.0","description":"Convert old templates to new (with support for child templates)","main":"./index.js","exports":{".":{"require":"./index.js"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"homepage":"https://github.com/dgrammatiko/convert-template#readme","dependencies":{"adm-zip":"^0.5.6","fs-extra":"^10.0.0","xml-js":"^1.6.11"},"gitHead":"e08c60d66c31e6703136fe41941ef22e2cc34317","_id":"@dgrammatiko/convert-template@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-0Vkg4p+/Y+hBB9ZWya6vbwYRFLVhgcBsArzQl8SxZopJfzL3hpA6QD/YB6Bx90kBz/pP3NV2ftLdXaknQj1ZGA==","shasum":"bfd3c9c6c05d556441797b05bb2b1defd58eb59a","tarball":"https://registry.npmjs.org/@dgrammatiko/convert-template/-/convert-template-1.0.0.tgz","fileCount":7,"unpackedSize":13443,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGkbhMyWdvhMvdH3HiQw5aTBVnENW6VVChM3XnQm8yOXAiAiSBM64f6AFFZbtTM1Lz0DRLmpiHjA+QYgsJm3d9FFCA=="}]},"_npmUser":{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"},"directories":{},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-template_1.0.0_1632855019699_0.03527683209001187"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dgrammatiko/convert-template","version":"1.0.1","description":"Convert old templates to new (with support for child templates)","main":"index.js","engines":{"node":"^10.16.0 || >=11.7.0"},"bin":{"compress":"index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"homepage":"https://github.com/dgrammatiko/convert-template#readme","dependencies":{"adm-zip":"^0.5.6","fs-extra":"^10.0.0","xml-js":"^1.6.11"},"gitHead":"4b545bcff99d6813fa9bb4c0d4f2a4d6b19ebfbb","_id":"@dgrammatiko/convert-template@1.0.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-FhzO7zsgr537vCxJbhM3aAMyLJlKHW+RwfeJdYccH9XIRhWisr4eIU0EVs5/3eTRSkLu+xLJ4rCCWMciLqxrGw==","shasum":"c315ebe6c78177be28c33b0edf44dbc2a89d5519","tarball":"https://registry.npmjs.org/@dgrammatiko/convert-template/-/convert-template-1.0.1.tgz","fileCount":7,"unpackedSize":13472,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOmhv1TFidVaPB0/M3G/+Ke3nzhGSzVfUVqQ1n4haUYQIhAMnPgdj8T0qdYeHMp6mk6F5E0cwEpKKMxF3pWx6HRREN"}]},"_npmUser":{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"},"directories":{},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-template_1.0.1_1632855529270_0.753752819134949"},"_hasShrinkwrap":false},"1.0.2":{"name":"@dgrammatiko/convert-template","version":"1.0.2","description":"Convert old templates to new (with support for child templates)","main":"index.js","engines":{"node":"^10.16.0 || >=11.7.0"},"bin":{"convert-template":"index.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"homepage":"https://github.com/dgrammatiko/convert-template#readme","dependencies":{"adm-zip":"^0.5.6","fs-extra":"^10.0.0","xml-js":"^1.6.11"},"gitHead":"ad8c94091b118281bc8c12ddee78189ee1ad5c97","_id":"@dgrammatiko/convert-template@1.0.2","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-6a8T63nfZBcfhopCeedWfWdL27hpcZL7K/axbBXg9SllFbOnOrl77dHGqhLnqbL+fHMDmmoeAg7I+c57AB/QBg==","shasum":"80c4958d92f9dbea329de2a5be4006254a119009","tarball":"https://registry.npmjs.org/@dgrammatiko/convert-template/-/convert-template-1.0.2.tgz","fileCount":7,"unpackedSize":13482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICLN4hVSwLsrW/M2SZnknRWu4UHR3F3tLjti4kh969DuAiEA/+DocbWG2tXiPtC+Q/sUZ+3YNGDupitkGoHZCnoeqDU="}]},"_npmUser":{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"},"directories":{},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-template_1.0.2_1632855665607_0.2018104334021642"},"_hasShrinkwrap":false},"1.0.3":{"name":"@dgrammatiko/convert-template","version":"1.0.3","description":"Convert old templates to new (with support for child templates)","main":"index.js","engines":{"node":"^10.16.0 || >=11.7.0"},"bin":{"convert-template":"index.js"},"scripts":{"convert-template":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"homepage":"https://github.com/dgrammatiko/convert-template#readme","dependencies":{"adm-zip":"^0.5.6","fs-extra":"^10.0.0","xml-js":"^1.6.11"},"gitHead":"ad8c94091b118281bc8c12ddee78189ee1ad5c97","_id":"@dgrammatiko/convert-template@1.0.3","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-fpfZvAa6X1q/a/BPMT8kj3HuT33XRELfPzEBjC1ERndu2wSz68dpLPfBTIRyah+DT2MO+b0jRnqMjQdxZ9ji2w==","shasum":"bfc6d140eaf8621330fcbd326be44af9ac0cb5ba","tarball":"https://registry.npmjs.org/@dgrammatiko/convert-template/-/convert-template-1.0.3.tgz","fileCount":7,"unpackedSize":13464,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKUGH/MGB8tBRTzY3P9cbf0iJGlCwL/NjCsEui28MsMAiBFzONphymnsFTPTd+S8lFOIYcNIcprDRP2bXLjW2OYqQ=="}]},"_npmUser":{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"},"directories":{},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-template_1.0.3_1632855741639_0.2704615996152162"},"_hasShrinkwrap":false},"1.0.4":{"name":"@dgrammatiko/convert-template","version":"1.0.4","description":"Convert old templates to new (with support for child templates)","main":"index.js","engines":{"node":"^10.16.0 || >=11.7.0"},"bin":{"convert-template":"index.js"},"scripts":{"convert-template":"node index.js"},"repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"homepage":"https://github.com/dgrammatiko/convert-template#readme","dependencies":{"adm-zip":"^0.5.6","fs-extra":"^10.0.0","xml-js":"^1.6.11"},"gitHead":"ef4c6605dfc89cc52fad9cfc2f5e52e12171e213","_id":"@dgrammatiko/convert-template@1.0.4","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-hkxDCQymeLP2zL6zxRpN9FCupFiI1NBJsOIIf3J6Q4mnwEhBKx5vaRglp4KUCXUlGyb98T2v/f99eLt2IMCsdw==","shasum":"2f6f02e73da6231f3bb743f090c6cd0f8155a319","tarball":"https://registry.npmjs.org/@dgrammatiko/convert-template/-/convert-template-1.0.4.tgz","fileCount":7,"unpackedSize":13498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzwcWCRA9TVsSAnZWagAAFfsP/jhA5OFnzdhtObO58sRM\nbq/B5FQE4hJrxvR+rqtohNuO77r0eNUdOl/TlnBtUq6qlhPBwl4M+f9xh6a4\nN78QkJznLOQblRIl0lhoZBZ3EIuonmUrvUE2I8rndsk7DIO3DiYXmPmUdjzp\nRgk7wJE1FxTulg2BUwllDT2uItkvmRd/HYTaBahW5cplzgQT0XcG5nQfIkWf\nuEPvEx5yhXN6tSpyWAmbOTAarMJze19JToUvCqunEVzpIAIM+v/P5ASVJl+a\nWAV2EQzEk7lBkf/4BKqOdT/WOKcGhjnqqxXf6NnCG+lJ303PiNXx77PnXYoN\ndG8mTLtxbhmotUxREa4RSnNPGEND0l4fWFpn3i97FEQvot7X9htIDQisVH12\nSVBt8lq0YRP8pwcH+8abRplGwWcuZCfJ6uLaxxrhXtHzNAx5oGmG3cx8L6RF\nYmX+3ZnLrQEYlFVgMBAk16cpn5yi1xxJIXR554rT9vmUYW1/2fPTr+NwRpCT\n5oyszau9e3dDn39B4CgwgghhUs5QUN9DXJMXobn2QM++ySyQcGzSa5H48upF\nhMJchY6fOeWVczT0VU3Kf4t3S/vW/XOBjS5+s17Mx1WPbJ3BDCGYOeW/D7FG\njxAruzflJ6tTTH8zqnNl9ZzJoBhQytvVFkVv95mUs3sG/qjATs5t8W0iqfR1\n1t0F\r\n=VSkJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC2H80F86fniTNGp0vj+yJI+zlpBF7k7eetQ18yj0pjQIgMbJ2BCIN5TmZ3Xl2CdzEdkC3S152SS7bGLZg3carY2o="}]},"_npmUser":{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"},"directories":{},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-template_1.0.4_1632855870655_0.819526916695688"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-28T18:50:19.530Z","1.0.0":"2021-09-28T18:50:19.832Z","modified":"2022-04-05T04:18:31.509Z","1.0.1":"2021-09-28T18:58:49.445Z","1.0.2":"2021-09-28T19:01:05.745Z","1.0.3":"2021-09-28T19:02:21.990Z","1.0.4":"2021-09-28T19:04:30.798Z"},"maintainers":[{"name":"dgrammatiko","email":"d.grammatiko@gmail.com"}],"description":"Convert old templates to new (with support for child templates)","homepage":"https://github.com/dgrammatiko/convert-template#readme","repository":{"type":"git","url":"git+https://github.com/dgrammatiko/convert-template.git"},"bugs":{"url":"https://github.com/dgrammatiko/convert-template/issues"},"license":"MIT","readme":"# Joomla Template converter\n\nJoomla 4.1 (this is speculative) will support templates with the ability to create child template. Actually the code already exists since 4.0 and this [Pull Request](https://github.com/joomla/joomla-cms/pull/30192), so this should be fairly safe right now. The UI is missing anything meaningful right now (Joomla version <4.1) so although the new mode is supported but is lacking the UI for managing them efficiently, hopefully this [Pull Request](https://github.com/joomla/joomla-cms/pull/32896) will be done and merged into 4.1. So, why do we need this convertor in the first place? Well, the new mode templates coming with some changes.\n\n## Breaking Changes\nSo the new mode templates come with some breaking changes:\n- The manifest needs `<inheritable>1</inheritable>` to indicate the installer that this supports child templates\n- The static assets should be placed in the `/media/templates/(site || administrator)/(template name)`. Static assets are all those files that are directly fetched from the browser (eg.: `.css`, `.js`, `.png`... Basically the folders `css,js,images`).\n- The new mode should support `namespace` by default. At the time of righting this, the decision is not made yet but there's a [Pull Request](https://github.com/joomla/joomla-cms/pull/30816).\n\n## How it works\nThis tool will convert any template (that's not already supporting the new mode) to the new mode. It supports:\n- templates as an intallable `.zip` file\n- templates in an existing folder\n\nYou will need Node and npm installed in your machine and then runing either:\n\n`npx @dgrammatiko/convert-template templateFolder`\n\nor\n\n`npx @dgrammatiko/convert-template template.zip`\n\n\nThe result will be a zip file name `inheritable_templateFolder.zip`\n\n## Gotchas\n- The tool will not patch the PHP files to the correct namespace.\n\n- The tool will not fix wrong instances of static assets inclusions. Use always the new Web Assets or at the very least the `HTMLHelper::_()`\n\n- The tool will not fix the hardcoded instances of `$template->template`. These should be hardcoded to be non dynamic eg: instead of `'/template/' . $template->template . '/css'` should be written as `'/template/templateName/css'`\n","readmeFilename":"README.md"}