Skip to content

Commit

Permalink
Fix Sass compilation and add a test (#222)
Browse files Browse the repository at this point in the history
Fixes Sass compilation for npm, yarn classic, and yarn modern - as well as adding a test for all 3
  • Loading branch information
Drainpipe Bot committed Jul 5, 2023
1 parent 6670272 commit 26ae025
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"[web-root]/sites/firefox/settings.php": "scaffold/nightwatch/firefox.settings.php",
"[web-root]/sites/sites.php": "scaffold/nightwatch/sites.php",
"[project-root]/.ddev/docker-compose.selenium.yaml": "scaffold/nightwatch/docker-compose.selenium.yaml",
"[project-root]/test/nightwatch/example.nightwatch.js": "scaffold/nightwatch/example.nightwatch.js"
"[project-root]/test/nightwatch/example.nightwatch.js": "scaffold/nightwatch/example.nightwatch.js",
"[project-root]/phpcs.xml": "scaffold/phpcs.xml"
}
}
},
Expand Down
36 changes: 36 additions & 0 deletions scaffold/phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<ruleset>
<description>PHP_CodeSniffer Standards</description>

<!-- Use colors in output. -->
<arg name="colors"/>
<!-- Show progress. -->
<arg value="p"/>

<!-- Add Drupal specific PHP file extensions -->
<arg name="extensions" value="php,inc,module,theme,install"/>

<!-- Include common Drupal standards. -->
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal/ruleset.xml"/>
<rule ref="./vendor/drupal/coder/coder_sniffer/DrupalPractice/ruleset.xml"/>


<!-- Apply same exclusions for T function applied by core. -->
<rule ref="Drupal.Semantics.FunctionT">
<exclude name="Drupal.Semantics.FunctionT.NotLiteralString"/>
</rule>

<file>web/modules/custom</file>
<file>web/themes/custom</file>
<file>web/sites</file>

<!-- Exclude JS and CSS, this is covered by yarn scripts -->
<exclude-pattern>**/*.js</exclude-pattern>
<exclude-pattern>**/*.css</exclude-pattern>
<!-- Autogenerated Drupal files -->
<exclude-pattern>*/default.settings.php</exclude-pattern>
<exclude-pattern>*/sites/*/files/*</exclude-pattern>
<exclude-pattern>*/settings.ddev.php</exclude-pattern>
<exclude-pattern>*/sites/simpletest/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
</ruleset>

0 comments on commit 26ae025

Please sign in to comment.