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

Update for Moodle 4.5 #199

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Update for Moodle 4.5 #199

wants to merge 5 commits into from

Conversation

justusdieckmann
Copy link
Contributor

No description provided.

@TamaroWalter TamaroWalter self-assigned this Mar 6, 2025
@TamaroWalter TamaroWalter requested review from dlmsr and bluetom March 6, 2025 08:52
@TamaroWalter TamaroWalter mentioned this pull request Mar 6, 2025
Copy link

@dlmsr dlmsr left a comment

Choose a reason for hiding this comment

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

The files in amd/build should be considered binary files. These are generated from the respective source files in amd/src and should only ever change together with the respective source files. Furthermore, these files target a certain Browser subset and therefore do not necessarily use the newest and recommended JS language features. This needs to be fixed.

@justusdieckmann
Copy link
Contributor Author

@dlmsr Just a quick note: Sometimes, there are changes to grunt, which cause it to output different transpiled code for the same javascript files than before.

In that case (which happened here), it does make sense to commit the changed binary files, because otherwise the grunt ci keeps complaining about the minified js files being wrong :)

@dlmsr
Copy link

dlmsr commented Mar 6, 2025 via email

@bluetom
Copy link

bluetom commented Mar 7, 2025

I get the point but I am afraid it is usual in the moodle plugin world to publish the minified files. Here some reasons:

Potential Issues When Excluding Minified Files:

  • Deployment for End Users

If users download your plugin from GitHub instead of the Moodle Plugin Directory, they might expect ready-to-use files and may not have the tools to minify the JS themselves.

  • Moodle Plugin Directory Submission

When submitting a plugin to the Moodle Plugin Directory, it should include all necessary files (including minified JS) so that Moodle sites can use it without additional setup.

  • Continuous Deployment & CI/CD

If you rely on automated deployments from GitHub (e.g., direct installation on a production site from GitHub), missing minified files could break functionality.

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.

4 participants