Scaffold googlesitekit-data JS package #997
Labels
Milestone
Comments
|
IB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment






Feature Description
This should be a simple JS package exposing a Site Kit specific data store registry on a global
googlesitekit.data(viawp.data.createRegistry()).Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
googlesitekit-data.jsthat is registered in PHP asgooglesitekit-data.googlesitekit.data, using@wordpress/data.googlesitekit-apifor now) - only the minimum dependencies necessary.Implementation Brief
assets/js/googlesitekit/datafolder for the new code to reside in. Place code in these files and make sure they can be imported within the project.assets/js/googlesitekit/datacan start by being an empty module that doesn't export anything.assets/js/googlesitekit-data.js, importassets/js/googlesitekit/dataand expose it globally asgooglesitekit.data. If thegooglesitekitglobal isn't available, create an empty object and placedatainside it as a property.'assets/]js/googlesitekit/data'that resolves togooglesitekit.dataAssets.phpto allowgooglesitekit-datato be loadedChangelog entry
googlesitekit.dataregistry for JS datastores.The text was updated successfully, but these errors were encountered: