Merge pull request #22223 from kurund/pcp-account-improvements
[civicrm-core.git] / ext / greenwich / composer.compile.json
index 932659b286879cbcc4b3b71009bd34510eb51566..5ddfeb155344ae51bd688bdbf260277a01c1cded 100644 (file)
@@ -1,16 +1,14 @@
 {
   "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", "extern/select2"],
-      "scss-files": {"scss/main.scss": "dist/bootstrap3.css"},
-      "scss-includes": ["scss", "extern/bootstrap3/assets/stylesheets", "extern/select2"]
+      "run": [
+        "@php-eval \\CCL::copy('../../bower_components/select2/select2-bootstrap.css', 'extern/select2/select2-bootstrap.scss');",
+        "@php-method \\CCL\\Tasks::scss"
+      ],
+      "watch-files": ["scss", "../../bower_components/select2/select2-bootstrap.css"],
+      "scss-files": {"dist/bootstrap3.css": "scss/main.scss"},
+      "scss-imports": ["scss", "extern/bootstrap3/assets/stylesheets", "extern/select2"]
     }
   ]
 }