-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
@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 :) |
Am 6. März 2025 15:34:39 MEZ schrieb Justus Dieckmann ***@***.***>:
justusdieckmann left a comment (learnweb/moodle-mod_moodleoverflow#199)
@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.
Fair point, I indeed overlooked this case.
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 :)
True! However, this is another reason not to commit generated files in the first place 🤐
|
I get the point but I am afraid it is usual in the moodle plugin world to publish the minified files. Here some reasons:
|
No description provided.