Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ParagonWebpackPlugin to support design tokens [v13.1.4] #1

Merged

Conversation

ihor-romaniuk
Copy link
Collaborator

Description:
Add ParagonWebpackPlugin to support design tokens [v13.1.4]
Backport of the MR openedx#546

* feat: expose PARAGON_VERSION as a global variable

fix: rely on paragon-theme.json from @edx/paragon

chore: clean up and add typedefs

fix: create undefined PARAGON global variable if no compatible paragon version

fix: moar better error handling

fix: updates

fix: update based on new schema for paragon-theme.json

fix: update setupTest.js

chore: clean up

chore: remove compressionplugin

chore: quality

fix: rename paragon-theme.json to theme-urls.json

chore: uninstall unused node_module

feat: add @edx/brand version and urls to PARAGON_THEME global variable

chore: update snapshot

* fix: PR feedback

fix: add comment to ParagonWebpackPlugin and update snapshots

feat: preload links from PARAGON_THEME_URLS config

fix: handle undefined this.paragonMetadata

fix: remove fallbackUrls

chore: snapshots and resolve .eslintrc error

* fix: updates

fix: typo in `alpha` CDN url within example env.config.js

Co-authored-by: Diana Olarte <dcoa@live.com>

* chore: update dependecies in example app

* chore: update add webpack-remonve-empty-scripts and parse5 dependencies

* fix: install paragon plugins and fix css compiler

* refactor: change paragon package name for openedx

* refactor: remove runtime config

* revert: example changes

* fix: add a try/catch to config loading in Paragon Plugin to avoid errors during the build

* refactor: split Paragon Plugin Utils file

* docs: update JSDoc in config/data/paragonUtils.js

Co-authored-by: Peter Kulko <93188219+PKulkoRaccoonGang@users.noreply.github.com>

* refactor: use @openedx/brand scope

this following the update here https://github.com/openedx/frontend-build/pull/490/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R158

* refactor: add utf-8 to readFileSync in paragonUtils

* perf: replace filter for reduce in getParagonThemeCss

* refactor: change entryPoints and CacheGroups variable definition.

* docs: add comment to describe the use of RemoveEmptyScriptsPlugin

* revert: restore env.development processing un webpack.dev.config.js

* refactor: remove process.env references in ParagonWebpackPlugin, no supported

* fix: use openedx scope for webpack.dev.config

* fix: allow processing edx and openedx brand scope

* refactor: support process.env.PARAGON_THEME_URLS

* fix: make PARAGON_THEME_URLS be defined only as env

---------

Co-authored-by: Adam Stankiewicz <agstanki@gmail.com>
Co-authored-by: Peter Kulko <93188219+PKulkoRaccoonGang@users.noreply.github.com>
@ihor-romaniuk ihor-romaniuk force-pushed the rg-dev/design-tokens-13.1.4 branch from bf82387 to b66a82c Compare January 6, 2025 17:53
@ihor-romaniuk ihor-romaniuk force-pushed the rg-dev/design-tokens-13.1.4 branch from b4a3930 to 668ff64 Compare January 28, 2025 09:41
@ihor-romaniuk ihor-romaniuk merged commit 64a4944 into rg-release/design-tokens-13.1.4 Jan 28, 2025
@ihor-romaniuk ihor-romaniuk deleted the rg-dev/design-tokens-13.1.4 branch January 28, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants