Skip to content

Commit

Permalink
Merge pull request #5 from osu-wams/drupal_10
Browse files Browse the repository at this point in the history
Drupal 10
  • Loading branch information
emerham authored Jun 8, 2023
2 parents 57e7581 + 9fadb69 commit 9d37c47
Show file tree
Hide file tree
Showing 7 changed files with 1,378 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
/node_modules/
/vendor/
/.idea/
12 changes: 12 additions & 0 deletions .twig_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

use FriendsOfTwig\Twigcs\Config\Config;
use FriendsOfTwig\Twigcs\Finder\TemplateFinder;

$templates = TemplateFinder::create()
->in(__DIR__ . '/templates');
return Config::create()
->setName('osu_icon_field')
->setSeverity('warning')
->setRuleSet(FriendsOfTwig\Twigcs\Ruleset\Official::class)
->setFinder($templates);
16 changes: 15 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@
"email": "alex.ruef@oregonstate.edu"
}
],
"require": {
"scripts": {
"phpcs": "phpcs",
"phpcbf": "phpcbf",
"twigcs": "twigcs --twig-version=2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"squizlabs/php_codesniffer": "^3.7",
"drupal/coder": "^8.3",
"friendsoftwig/twigcs": "^6.2"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit 9d37c47

Please sign in to comment.