Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

[SE-3381] Clears existing node modules before installing npm dependencies - #141

Merged
nizarmah merged 4 commits into
autodesk-release/juniper.3from
nizar/autodesk_clear_npm_modules
Oct 18, 2020
Merged

[SE-3381] Clears existing node modules before installing npm dependencies#141
nizarmah merged 4 commits into
autodesk-release/juniper.3from
nizar/autodesk_clear_npm_modules

Conversation

@nizarmah

@nizarmah nizarmah commented Oct 10, 2020

Copy link
Copy Markdown

After the latest changes on the edx-platform regarding JakePackage.zip, the node_modules needs to be cleared, so that the npm dependencies can install successfully without any error. Also the existing minified files need to be cleaned too using npx jake clean-js so that we always generate new minified files.

Related to PR: open-craft/openedx-platform#275

JIRA tickets: SE-3381, SE-3101

Testing instructions:

  1. Launch a new instance with this configuration branch
  2. Make sure that the adsklink plugin works in Studio in TinyMCE editor
  3. Change directory to edx-platform/common/static/js/vendor/tinymce
  4. Verify all plugin.min.js were generated correctly using: grep -Er "^undefined$"
  5. Verify that commons.js file hash is consistent on different machines

Author notes and concerns:

  1. Instances were already spawned on Autodesk Upskill STG.
  2. I think it would be a good idea to include a private key for Ansible to retrieve the repository from GitHub directly, but I'll get started on that at the end of the sprint.

Reviewers

@nizarmah
nizarmah requested a review from pkulkark October 10, 2020 14:10
@nizarmah nizarmah self-assigned this Oct 10, 2020
@nizarmah
nizarmah force-pushed the nizar/autodesk_clear_npm_modules branch 2 times, most recently from 495ec32 to 519e5b0 Compare October 11, 2020 22:46
@nizarmah
nizarmah force-pushed the nizar/autodesk_clear_npm_modules branch from 100ce85 to f359e61 Compare October 12, 2020 07:01

@pkulkark pkulkark left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nizarmah Changes LGTM 👍

  • I tested this: I did not spawn new instance but verified all other steps mentioned in the testing instructions on the STG instance
  • I read through the code
  • I checked for accessibility N/A
  • Includes documentation N/A

@nizarmah
nizarmah merged commit 050f24f into autodesk-release/juniper.3 Oct 18, 2020
@nizarmah
nizarmah deleted the nizar/autodesk_clear_npm_modules branch October 18, 2020 08:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants