Skip to content

Commit

Permalink
1.1.1 New module registration, add Dekode Coding Standards (#11)
Browse files Browse the repository at this point in the history
* Update module registration
* Set core requirement >=1.1.7
* Version bump to 1.2.2
* Add Dekode Coding Standards
* Lint fix to match coding standard
* Add changelog for 1.2.2
* Update travis conf
  • Loading branch information
stian-overasen authored Apr 4, 2018
1 parent d1f4ac6 commit d5072ae
Show file tree
Hide file tree
Showing 7 changed files with 332 additions and 37 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,16 @@ before_script:
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
composer global require wp-coding-standards/wpcs
composer global require wimg/php-compatibility
phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/wimg/php-compatibility
composer install
fi
- if [[ "$WP_TRAVISCI" == "node" ]]; then yarn install; fi

script:
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]] ; then
find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
phpcs -p -s -v . --standard=./phpcs.xml --extensions=php --runtime-set testVersion $TRAVIS_PHP_VERSION
find . -name '*.php' ! -path "./vendor/*" ! -path "./wp-content/*" -print0 | xargs -0 -n 1 -P 4 php -l
echo Running phpcs for PHP version $TRAVIS_PHP_VERSION …
./vendor/bin/phpcs --runtime-set testVersion $TRAVIS_PHP_VERSION
fi
- if [[ "$WP_TRAVISCI" == "node" ]]; then yarn lint; fi

Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@ Install the module using Composer `composer require dekodeinteraktiv/hogan-galle

## Changelog

## [1.2.0]
### Breaking Changes
### 1.2.2
- Update module to new registration method introduced in [Hogan Core 1.1.7](https://github.com/DekodeInteraktiv/hogan-core/releases/tag/1.1.7)
- Set hogan-core dependency `"dekodeinteraktiv/hogan-core": ">=1.1.7"`
- Add Dekode Coding Standards.

### 1.2.1
- Add support for Photoswipe animation.
- Enable animation by default.

### 1.2.0
#### Breaking Changes
- Remove heading field, provided from Core in [#53](https://github.com/DekodeInteraktiv/hogan-core/pull/53)
- Heading field has to be added using filter (was default on before).

### 1.0.4
- Heading classname changed from `.heading` to `.hogan-heading`. (#5)
- Template markup changed from `ul > li` to `div` (#7)
- Added schema to markup (#7)

### 1.2.1
- Add support for Photoswipe animation.
- Enable animation by default.
2 changes: 2 additions & 0 deletions assets/photoswipe-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* @package Hogan
*/

declare( strict_types = 1 );

?>
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<div class="pswp__bg"></div>
Expand Down
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"require": {
"php": ">=7.0",
"composer/installers": "~1.2",
"dekodeinteraktiv/hogan-core": "^1.0"
"dekodeinteraktiv/hogan-core": ">=1.1.7"
},
"archive": {
"exclude": [
Expand All @@ -22,5 +22,14 @@
"phpcs.xml",
"yarn.lock"
]
},
"require-dev": {
"dekodeinteraktiv/coding-standards": "^0.3.1"
},
"scripts": {
"test": [
"@composer install",
"./vendor/bin/phpcs"
]
}
}
Loading

0 comments on commit d5072ae

Please sign in to comment.