composer.json - Move greenwich-specific rules into the greenwich folder
authorTim Otten <totten@civicrm.org>
Mon, 14 Sep 2020 10:37:05 +0000 (03:37 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 17 Sep 2020 02:54:57 +0000 (19:54 -0700)
composer.json
ext/greenwich/composer.compile.json [new file with mode: 0644]

index 94a752d62483fd765dc05349d2f36fb382b1f858..da8da1a5244a89ebddfd5616adfd8f32dabfcf4f 100644 (file)
         "CiviCRM Custom Patches for ZetaCompoents mail": "https://raw.githubusercontent.com/civicrm/civicrm-core/9d93748a36c7c5d44422911db1c98fb2f7067b34/tools/scripts/composer/patches/civicrm-custom-patches-zetacompoents-mail.patch"
       }
     },
-    "compile": [
-      {
-        "title": "Greenwich SCSS (<comment>ext/greenwich/dist/bootstrap3.css</comment>)",
-        "php-method": "\\Civi\\Compile\\Scss::build",
-        "watch-files": ["ext/greenwich/scss"],
-        "scss-files": {"ext/greenwich/scss/main.scss": "ext/greenwich/dist/bootstrap3.css"},
-        "scss-includes": ["ext/greenwich/scss", "ext/greenwich/extern/bootstrap3/assets/stylesheets"]
-      }
-    ]
+    "compile-includes": ["ext/greenwich/composer.compile.json"]
   }
 }
diff --git a/ext/greenwich/composer.compile.json b/ext/greenwich/composer.compile.json
new file mode 100644 (file)
index 0000000..a731b60
--- /dev/null
@@ -0,0 +1,11 @@
+{
+  "compile": [
+    {
+      "title": "Greenwich CSS (<comment>dist/bootstrap3.css</comment>)",
+      "php-method": "\\Civi\\Compile\\Scss::build",
+      "watch-files": ["scss"],
+      "scss-files": {"scss/main.scss": "dist/bootstrap3.css"},
+      "scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets"]
+    }
+  ]
+}