@julien-lin/universal-pwa-templates 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -559,10 +559,13 @@ function getAvailableTemplateTypes() {
559
559
  return ["static", "spa", "ssr", "wordpress", "php"];
560
560
  }
561
561
  function determineTemplateType(architecture, framework) {
562
- if (framework === "WordPress") {
562
+ if (framework === "WordPress" || framework === "WooCommerce") {
563
563
  return "wordpress";
564
564
  }
565
- if (framework === "Symfony" || framework === "Laravel") {
565
+ if (framework === "Drupal" || framework === "Joomla" || framework === "Magento" || framework === "Shopify" || framework === "PrestaShop") {
566
+ return "php";
567
+ }
568
+ if (framework === "Symfony" || framework === "Laravel" || framework === "CodeIgniter" || framework === "CakePHP" || framework === "Yii" || framework === "Laminas") {
566
569
  return "php";
567
570
  }
568
571
  if (architecture === "spa") {
package/dist/index.js CHANGED
@@ -525,10 +525,13 @@ function getAvailableTemplateTypes() {
525
525
  return ["static", "spa", "ssr", "wordpress", "php"];
526
526
  }
527
527
  function determineTemplateType(architecture, framework) {
528
- if (framework === "WordPress") {
528
+ if (framework === "WordPress" || framework === "WooCommerce") {
529
529
  return "wordpress";
530
530
  }
531
- if (framework === "Symfony" || framework === "Laravel") {
531
+ if (framework === "Drupal" || framework === "Joomla" || framework === "Magento" || framework === "Shopify" || framework === "PrestaShop") {
532
+ return "php";
533
+ }
534
+ if (framework === "Symfony" || framework === "Laravel" || framework === "CodeIgniter" || framework === "CakePHP" || framework === "Yii" || framework === "Laminas") {
532
535
  return "php";
533
536
  }
534
537
  if (architecture === "spa") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julien-lin/universal-pwa-templates",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Service worker templates for UniversalPWA",
5
5
  "keywords": [
6
6
  "pwa",