Cookie Consent: scaffold package [WOOA7S-1533]#49509
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 🔴 Action required: Please include detailed testing steps, explaining how to test your change, like so: 🔴 Action required: We would recommend that you add a section to the PR description to specify whether this PR includes any changes to data or privacy, like so: Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
…ater), add changelog/.gitkeep
Why
Part of WOOA7S-1533. Migrating the CIAB
shoppers-privacyfeature out ofnext-admin/ciab-nextinto a new standalone, plugin-agnostic Jetpack monorepo package, following the Premium Analytics extraction philosophy (portable, no CIAB deps, consumable by Jetpack / Woo Pro / standalone).This is PR 1 of 3 — the package scaffold only. No PHP/JS feature code yet, no consumer wires it up, so nothing is live until a later PR + a consumer call
Cookie_Consent::init().Stack
trunk)What this PR does
Adds
projects/packages/cookie-consent/:composer.jsonjetpack-library,private, runtimerequireis php >=7.2 only (no jetpack-package deps, for portability); standardextra(autotagger, mirror-repo, textdomain, version-constants, changelogger, branch-alias)package.json@wordpress/interactivity; build/lint devDeps onlytools/webpack.config.modules.jsbuild/modules/cookie-consent/index.js, ESM script-module outputtsconfig.json/declarations.d.ts/eslint.config.mjs/.phpcs.dir.xmljetpack-cookie-consent.gitattributes/.gitignoreREADME.md/CHANGELOG.md/changelog/A placeholder
src/modules/cookie-consent/index.tslets the build pass; it's replaced in PR2.Verification
pnpm --filter @automattic/jetpack-cookie-consent build,eslint --max-warnings=0 src, andtsgo --noEmitall pass.