feat(plugins/ci-cd) - v1.4.6 build and plugin fixes - #88
Merged
Merged
Conversation
Removed the CDN endpoint purge command for mgplus-demo.
…d remove CDN purge step
…s and namespace-scoped access
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the build and distribution pipeline, refactors the vanilla TypeScript plugins for SSR safety and accessibility, establishes a unified multi-framework architecture guide, and updates project CI/CD workflows and roadmaps.
Tasks Completed
🏗️ Architecture & Documentation
ARCHITECTURE.md)ROADMAP.md)📦 Build, Packaging & Distribution
package.json)exportsmap (.,./css,./dist/*).dist/types/mgplus.d.ts.unpkg,jsdelivr) andstylepath definitions..stylelintrc.*config files in favor of unified configurations.tsconfig.lib.json).npmworkflow (package-lock.json).typecheck,lint:css,lint:js, and unifiedtest.🧩 Plugin Refactoring & Enhancements
typeof document === "undefined"checks to prevent SSR crashes in Node/Next.js/Nuxt environments.data-mg-*-initialized) across plugins to prevent duplicate event listener bindings.src/plugins/mgCollapse.ts): Addaria-expandedtoggling and event target resolution via.closest().src/plugins/mgTabs.ts): Addrole="tab",aria-selected,aria-controls, andaria-hiddenmanagement.src/plugins/mgDropdown.ts): Add outside click handler,aria-expanded, and keyboard escape dismiss support.src/plugins/mgModal.ts): Add backdrop click handling and multi-trigger / multi-close button support.src/plugins/mgNav.ts): Scope active state toggling strictly to parent container items.src/plugins/mgDarkMode.ts): Improve theme persistence and auto system preference detection (prefers-color-scheme).src/plugins/mgplus.ts): Provide safe single entry pointmgplus.init()and export individual register functions.src/demo/main.ts)🤖 CI/CD Workflows
.github/workflows/)actions/checkout@v4andactions/setup-node@v4.npm publish --access public.Verification & Testing
npm run typecheck(TypeScript typecheck passed with no diagnostics errors)npm run build:lib(ESM, UMD bundles and.d.tstype declarations generated indist/)npm run build:demo(Demo application build verified)