ext/greenwich - Coerce `select2-bootstrap.css` to be handled as SCSS (#9)
authorcolemanw <coleman@civicrm.org>
Thu, 24 Sep 2020 11:57:10 +0000 (07:57 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Sep 2020 11:57:10 +0000 (07:57 -0400)
Co-authored-by: Tim Otten <totten@civicrm.org>
ext/greenwich/composer.compile.json

index c58ad1afbef37972659efc46e11c42b219764ffa..932659b286879cbcc4b3b71009bd34510eb51566 100644 (file)
@@ -1,11 +1,16 @@
 {
   "compile": [
+    {
+      "title": "Greenwich (Coerce <comment>select2-bootstrap</comment> to SCSS)",
+      "shell": "set -e ; mkdir -p extern/select2 ; cp ../../bower_components/select2/select2-bootstrap.css extern/select2/select2-bootstrap.scss",
+      "watch-files": ["../../bower_components/select2/"]
+    },
     {
       "title": "Greenwich CSS (<comment>dist/bootstrap3.css</comment>)",
       "php-method": "\\Civi\\Compile\\Scss::build",
-      "watch-files": ["scss"],
+      "watch-files": ["scss", "extern/select2"],
       "scss-files": {"scss/main.scss": "dist/bootstrap3.css"},
-      "scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets", "../../bower_components/select2"]
+      "scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets", "extern/select2"]
     }
   ]
 }