-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 24bbe52
Showing
18 changed files
with
8,909 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vendor/ | ||
.idea/ | ||
util/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Ghwp Custom Standard" namespace="Ghwp\CS\Standard"> | ||
|
||
<file>./src</file> | ||
<exclude-pattern type="relative">^__deprecated__</exclude-pattern> | ||
<arg name="colors"/> | ||
<rule ref="PSR12"> | ||
<!-- Prettier will handle these things --> | ||
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"/> | ||
<exclude name="Generic.Files.LineLength.TooLong"/> | ||
<exclude name="Generic.WhiteSpace.ScopeIndent.IncorrectExact"/> | ||
<exclude name="Squiz.ControlStructures.ForEachLoopDeclaration.SpacingBeforeAs"/> | ||
</rule> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
parameters: | ||
level: 9 | ||
paths: | ||
- src/ | ||
includes: | ||
- vendor/szepeviktor/phpstan-wordpress/extension.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"phpVersion": "7.4", | ||
"trailingCommaPHP": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
test: lint | ||
|
||
# Run basic linting with prettier & phpstan | ||
lint: | ||
@cd util/ \ | ||
&& . $$NVM_DIR/nvm.sh && nvm use \ | ||
&& npm i \ | ||
&& npm run lint | ||
@composer lint | ||
|
||
# Make prettier process and fix all files in src/ | ||
prettier: | ||
@cd util/ \ | ||
&& . $$NVM_DIR/nvm.sh && nvm use \ | ||
&& npm i \ | ||
&& npx prettier -w --config ../.prettierrc ../src | ||
|
||
# Create a tagged release to publish a new version of the package | ||
release: lint | ||
@cd util/ \ | ||
&& . $$NVM_DIR/nvm.sh && nvm use \ | ||
&& npm i \ | ||
&& npm run release | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Sillynet Adretto-Twig | ||
|
||
_Easily use Twig templates in Wordpress with [sillynet/adretto](https://github.com/asillywalk/adretto)._ | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "sillynet/adretto-twig", | ||
"description": "Easily use Twig templates in Wordpress with sillynet/adretto", | ||
"type":"library", | ||
"version": "0.0.0", | ||
"require": { | ||
"php": ">=7.4", | ||
"twig/twig": "^3.3", | ||
"sillynet/adretto": "^0.1.0" | ||
}, | ||
"license": "GPL-3.0-only", | ||
"authors": [ | ||
{ | ||
"name": "andi", | ||
"email": "andi@asillywalk.de" | ||
} | ||
], | ||
"minimum-stability": "stable", | ||
"autoload": { | ||
"psr-4": { | ||
"Sillynet\\Adretto\\WpTwig\\": "src" | ||
}, | ||
"files": [ | ||
"globals/template-functions.php" | ||
] | ||
}, | ||
"scripts": { | ||
"lint": [ | ||
"@phpstan", | ||
"@phpcs" | ||
], | ||
"phpstan": "phpstan analyse -c .phpstan.neon", | ||
"phpcs": "phpcs -s" | ||
}, | ||
"require-dev": { | ||
"phpstan/phpstan": "^1.8", | ||
"squizlabs/php_codesniffer": "^3.7", | ||
"szepeviktor/phpstan-wordpress": "^1.1" | ||
} | ||
} |
Oops, something went wrong.