From 66456f67c2813a228f752d5da1454c37d536141d Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Sat, 3 Feb 2024 00:59:02 +0300 Subject: [PATCH] feat: tutor-mfe compatiblilty for `atlas pull` (#368) - install atlas - remove `--filter` to pull all languages by default - use ATLAS_OPTIONS to allow custom `--filter` - include frontend-platform in `atlas pull` --- Makefile | 5 +++-- package-lock.json | 9 +++++++++ package.json | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1d9b7af6..1ea76b4a 100755 --- a/Makefile +++ b/Makefile @@ -49,13 +49,14 @@ pull_translations: rm -rf src/i18n/messages mkdir src/i18n/messages cd src/i18n/messages \ - && atlas pull --filter=$(transifex_langs) \ + && atlas pull $(ATLAS_OPTIONS) \ translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \ translations/frontend-component-header/src/i18n/messages:frontend-component-header \ + translations/frontend-platform/src/i18n/messages:frontend-platform \ translations/paragon/src/i18n/messages:paragon \ translations/frontend-app-ecommerce/src/i18n/messages:frontend-app-ecommerce - $(intl_imports) frontend-component-header frontend-component-footer paragon frontend-app-ecommerce + $(intl_imports) frontend-component-header frontend-component-footer frontend-platform paragon frontend-app-ecommerce endif # This target is used by CI. diff --git a/package-lock.json b/package-lock.json index 7ead2eaf..328e3bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "@edx/frontend-component-footer": "^12.2.1", "@edx/frontend-component-header": "^4.6.0", "@edx/frontend-platform": "^5.5.4", + "@edx/openedx-atlas": "^0.6.0", "@edx/paragon": "^20.32.0", "@fortawesome/fontawesome-svg-core": "6.1.2", "@fortawesome/free-brands-svg-icons": "6.1.2", @@ -2537,6 +2538,14 @@ "@newrelic/publish-sourcemap": "^5.0.1" } }, + "node_modules/@edx/openedx-atlas": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@edx/openedx-atlas/-/openedx-atlas-0.6.0.tgz", + "integrity": "sha512-wZO7hA4VJ/bXjaQNNR7KXGYyTCNs1mBJd3HwQK2EmOwFZYFNX6nzSAm9S7HCfi/kb1PCRpmp3wJt+v/Eu9BEQg==", + "bin": { + "atlas": "atlas" + } + }, "node_modules/@edx/paragon": { "version": "20.46.2", "resolved": "https://registry.npmjs.org/@edx/paragon/-/paragon-20.46.2.tgz", diff --git a/package.json b/package.json index 6fe2613e..841dc818 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@edx/frontend-component-footer": "^12.2.1", "@edx/frontend-component-header": "^4.6.0", "@edx/frontend-platform": "^5.5.4", + "@edx/openedx-atlas": "^0.6.0", "@edx/paragon": "^20.32.0", "@fortawesome/fontawesome-svg-core": "6.1.2", "@fortawesome/free-brands-svg-icons": "6.1.2",