Skip to content

Commit

Permalink
Merge pull request #217 from pedro-mendonca/dev
Browse files Browse the repository at this point in the history
New build script and improved linting
  • Loading branch information
pedro-mendonca authored Oct 18, 2024
2 parents 389f593 + d925069 commit 683886c
Show file tree
Hide file tree
Showing 19 changed files with 203 additions and 170 deletions.
2 changes: 1 addition & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ package.json
phpcompat.xml.dist
phpcs.xml.dist
phpmd.xml.dist
phpstan.neon
phpstan.neon.dist
postcss.config.js
README.md
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

[{*.json,*.yml}]
[*.yml]
indent_style = space
indent_size = 2

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
/phpcompat.xml.dist export-ignore
/phpcs.xml.dist export-ignore
/phpmd.xml.dist export-ignore
/phpstan.neon export-ignore
/phpstan.neon.dist export-ignore
/postcss.config.js export-ignore
/README.md export-ignore
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# These files configure Composer. Changes could affect the outcome.
- 'composer.*'
# This file configures PHPStan. Changes could affect the outcome.
- 'phpstan.neon'
- 'phpstan.neon.dist'
# Changes to workflow files should always verify all workflows are successful.
- '.github/workflows/*.yml'
# Allows you to run this workflow manually from the Actions tab.
Expand Down Expand Up @@ -66,4 +66,4 @@ jobs:
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH

- name: Run PHPStan static analysis (PHP ${{ matrix.php-versions }})
run: phpstan analyse -c phpstan.neon --error-format=checkstyle --memory-limit=1G | cs2pr
run: phpstan analyse -c phpstan.neon.dist --error-format=checkstyle --memory-limit=1G | cs2pr
16 changes: 8 additions & 8 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": [
"@wordpress/stylelint-config/scss"
],
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null,
"max-line-length": null
}
"extends": [
"@wordpress/stylelint-config/scss"
],
"rules": {
"font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null,
"max-line-length": null
}
}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ Sure! You are welcome to report any issues or add feature suggestions on the [Gi

## Changelog

### Unreleased

* Tested up to WP 6.6.
* Update dependencies.
* Fix text domains in GlotPress custom template.
* Include maps for minified assets.

### 1.4.8

* Tested up to WP 6.5.
Expand Down
21 changes: 19 additions & 2 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ table.translations tr td.translation ul li:not(:last-child) {

table.translations tr td.translation .translation-text ins {
background-color: #68de7c;
-webkit-text-decoration: none;
text-decoration: none;
display: inline-block;
}
Expand Down Expand Up @@ -58,6 +59,8 @@ table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.g
table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled):focus span.icon,
table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button:not(:disabled).active span.icon {
color: var(--gp-color-btn-hover-text);
-webkit-transform: rotateZ(180deg);
-ms-transform: rotate(180deg);
transform: rotateZ(180deg);
}

Expand All @@ -67,8 +70,6 @@ table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.g

table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button span.icon {
-webkit-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
-moz-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
-o-transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
}

Expand All @@ -83,16 +84,32 @@ table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.g

table.translation-sets tr td:first-child span.gp-convert-pt-ao90-update button.gp-convert-pt-ao90-update-button.updating span.icon {
color: var(--gp-color-dark-orange);
-webkit-animation: rotation 2s infinite linear;
animation: rotation 2s infinite linear;
}

@-webkit-keyframes rotation {

0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@keyframes rotation {

0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
Expand Down
3 changes: 2 additions & 1 deletion assets/css/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/css/style.min.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 683886c

Please sign in to comment.