⬆️ bump bud to v5.3.2 (#2976)

This commit is contained in:
Ben Word
2022-02-10 16:44:24 -06:00
committed by GitHub
parent 7080c225a6
commit 5c7587f8d6
6 changed files with 577 additions and 551 deletions

View File

@@ -19,7 +19,7 @@ module.exports = (app) =>
* These files should be processed as part of the build * These files should be processed as part of the build
* even if they are not explicitly imported in application assets. * even if they are not explicitly imported in application assets.
*/ */
.assets([app.path('src', 'images')]) .assets(['images'])
/** /**
* These files will trigger a full page reload * These files will trigger a full page reload

View File

@@ -25,12 +25,12 @@
"translate:js": "wp i18n make-json ./resources/lang --pretty-print" "translate:js": "wp i18n make-json ./resources/lang --pretty-print"
}, },
"devDependencies": { "devDependencies": {
"@roots/bud": "^5.2.0", "@roots/bud": "5.3.2",
"@roots/bud-eslint": "^5.2.0", "@roots/bud-eslint": "5.3.2",
"@roots/bud-postcss": "^5.2.0", "@roots/bud-postcss": "5.3.2",
"@roots/bud-prettier": "^5.2.0", "@roots/bud-prettier": "5.3.2",
"@roots/bud-stylelint": "^5.2.0", "@roots/bud-stylelint": "5.3.2",
"@roots/bud-tailwindcss": "^5.2.0", "@roots/bud-tailwindcss": "5.3.2",
"@roots/sage": "^5.2.0" "@roots/sage": "5.3.2"
} }
} }

View File

@@ -1,4 +1,4 @@
import {domReady} from '@scripts/components'; import {domReady} from '@roots/sage/client';
/** /**
* Run the application when the DOM is ready. * Run the application when the DOM is ready.

View File

@@ -1,12 +0,0 @@
/**
* Calls a supplied function once
* document has loaded.
*
* @param {CallableFunction} onReady
* @return {void}
*/
export const domReady = (onReady) => {
window.requestAnimationFrame(function check() {
document.body ? onReady() : window.requestAnimationFrame(check);
});
};

View File

@@ -1,6 +1,6 @@
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks'; import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
import {domReady} from '@scripts/components'; import {domReady} from '@roots/sage/client';
/** /**
* Customize block styles * Customize block styles

1096
yarn.lock

File diff suppressed because it is too large Load Diff