Skip to content

Commit

Permalink
Merge branch 'release/2.5.4' into craft-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Mar 28, 2022
2 parents 6fdf062 + 72cc685 commit c887fa2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# nystudio107/craft Change Log

## 2.5.4 - 2022.03.28
### Changed
* Add `disableProcessTimeout` to the `post-craft-update` Composer scripts, and run Project Config before migrations
* Add `import.meta.hot.accept()` to accept HMR as per: https://vitejs.dev/guide/api-hmr.html

## 2.5.3 - 2022.03.26
### Changed
* Ensure permissions on directories Craft needs to write to
Expand Down
7 changes: 4 additions & 3 deletions cms/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"optimize-autoloader": true,
"sort-packages": true,
"platform": {
"php": "7.2.5"
"php": "7.2.5"
}
},
"scripts": {
Expand All @@ -41,9 +41,10 @@
"pre-craft-update": [
],
"post-craft-update": [
"Composer\\Config::disableProcessTimeout",
"@php craft install/check && php craft clear-caches/all --interactive=0 || exit 0",
"@php craft install/check && php craft migrate/all --interactive=0 || exit 0",
"@php craft install/check && php craft project-config/apply --interactive=0 || exit 0"
"@php craft install/check && php craft project-config/apply --interactive=0 || exit 0",
"@php craft install/check && php craft migrate/all --interactive=0 || exit 0"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
Expand Down
7 changes: 7 additions & 0 deletions src/js/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ const main = async () => {
main().then(() => {
console.log();
});

// Accept HMR as per: https://vitejs.dev/guide/api-hmr.html
if (import.meta.hot) {
import.meta.hot.accept(() => {
console.log("HMR")
});
}

0 comments on commit c887fa2

Please sign in to comment.