From 056a15bedb1c53acd15f4f7727ff108eb46ed200 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Fri, 2 Feb 2024 22:16:01 +0300 Subject: [PATCH] feat: tutor-mfe compatiblilty for `atlas pull` (#817) - install atlas - remove `--filter` to pull all languages by default - use ATLAS_OPTIONS to allow custom `--filter` - include frontend-platform, ai-translations and lib-contents in `atlas pull` command Refs: FC-0012 OEP-58 --- Makefile | 7 +++++-- package-lock.json | 9 +++++++++ package.json | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9e34fc9287..c1be0e2cba 100644 --- a/Makefile +++ b/Makefile @@ -54,12 +54,15 @@ 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-ai-translations/src/i18n/messages:frontend-component-ai-translations \ + translations/frontend-lib-content-components/src/i18n/messages:frontend-lib-content-components \ + translations/frontend-platform/src/i18n/messages:frontend-platform \ translations/paragon/src/i18n/messages:paragon \ translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \ translations/frontend-app-course-authoring/src/i18n/messages:frontend-app-course-authoring - $(intl_imports) paragon frontend-component-footer frontend-app-course-authoring + $(intl_imports) frontend-component-ai-translations frontend-lib-content-components frontend-platform paragon frontend-component-footer frontend-app-course-authoring endif # This target is used by Travis. diff --git a/package-lock.json b/package-lock.json index 03ddd78906..e397fafa0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@edx/frontend-enterprise-hotjar": "^2.0.0", "@edx/frontend-lib-content-components": "^1.178.2", "@edx/frontend-platform": "5.6.1", + "@edx/openedx-atlas": "^0.6.0", "@edx/paragon": "^21.5.6", "@fortawesome/fontawesome-svg-core": "1.2.36", "@fortawesome/free-brands-svg-icons": "5.15.4", @@ -2931,6 +2932,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": "21.5.6", "resolved": "https://registry.npmjs.org/@edx/paragon/-/paragon-21.5.6.tgz", diff --git a/package.json b/package.json index 7eef34c864..f0095f9e7d 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@edx/frontend-enterprise-hotjar": "^2.0.0", "@edx/frontend-lib-content-components": "^1.178.2", "@edx/frontend-platform": "5.6.1", + "@edx/openedx-atlas": "^0.6.0", "@edx/paragon": "^21.5.6", "@fortawesome/fontawesome-svg-core": "1.2.36", "@fortawesome/free-brands-svg-icons": "5.15.4",