File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -580,6 +580,11 @@ EDXAPP_PRIVATE_REQUIREMENTS:
580
580
# Plugins
581
581
- name : edx-arch-experiments==6.1.0
582
582
583
+ # List of additional npm packages that should be installed into the edxapp virtual environment.
584
+ # For more help, see:
585
+ # https://2u-internal.atlassian.net/wiki/spaces/AT/pages/396034066/How+to+add+private+requirements+to+edx-platform
586
+ EDXAPP_PRIVATE_NPM_REQUIREMENTS : []
587
+
583
588
# List of custom middlewares that should be used in edxapp to process
584
589
# incoming HTTP resquests. Should be a list of plain strings that fully
585
590
# qualify Python classes or functions that can be used as Django middleware.
Original file line number Diff line number Diff line change 299
299
- install
300
300
- install:app-requirements
301
301
302
+ # --no-save is passed as a flag to npm install to avoid saving these dependencies to package.json. Otherwise,
303
+ # running npm install without this flag causes modifications to the package.json and package-lock.json
304
+ # files. In turn, these modified files cause issues with working with the edxapp repository.
305
+ - name : Install private node dependencies
306
+ shell : " easy_install --version && npm install --no-save {{ item.name }}"
307
+ with_items : " {{ EDXAPP_PRIVATE_NPM_REQUIREMENTS }}"
308
+ args :
309
+ chdir : " {{ edxapp_code_dir }}"
310
+ become_user : " {{ edxapp_user }}"
311
+ when : " {{ EDXAPP_PRIVATE_NPM_REQUIREMENTS }} | length > 0"
312
+ tags :
313
+ - install
314
+ - install:app-requirements
315
+
302
316
# The next few tasks set up the python code sandbox
303
317
304
318
# need to disable this profile, otherwise the pip inside the sandbox venv has no permissions
You can’t perform that action at this time.
0 commit comments