-
Notifications
You must be signed in to change notification settings - Fork 153
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
Tp1 239 cleanup package.json #12903
Tp1 239 cleanup package.json #12903
Conversation
….json to tasks.py
…ipts that executed several commands/scprits at once
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.
Thanks for taking on this work @dlopezvsr!
The PR looks good to me, going to tag @mmmavis to take a look at package/npm changes as they are a little more familiar 👍
@danielfmiranda thank you for your review. I'm also looking forward to @mmmavis comments. 🙌 |
Sorry for the wait 😅 . I will give this PR a look tomorrow! |
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.
Hey @dlopezvsr , thank you for diving into package.json
and Docker to make things more streamlined!
Apologies for leaving tons of comments. I'm not a Docker expert, so the best I could do was by testing each command. Unfortunately, I was getting errors for the majority of new inv commands introduced in this PR. A few were due to run-s
and run-p
, and some were due to "commands not found" in the Docker environments. I think those packages probably need to be installed globally or somehow configured for Docker to be properly run as inv
command. Or we can leave them in package.json for simplicity.
Let me know if I can help with anything. Maybe we can explore the Docker wonderland together to find solutions to these issues lol
@mmmavis thank you so much for taking this deep look at the changes and for all the comments, I will review each one and apply the necessary fixes. I remember to test most of them and run them without error, but I also made some changes later with some commands that I put back into the package.json due to some dependency errors in the build, so I may have missed removing them form |
@mmmavis thank you so much again for all the comments and the exhaustive review. After taking a deeper look into the CI workflow, the scripts I had created, and based on all your comments, I decided that, as your mentioned, it makes totally more sense to keep npm-related scripts under
Final version and changes
@mmmavis let me know your comments :) |
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.
@dlopezvsr Thank you for walking me through the changes step by step!
Description
This PR cleans up the
package.json
npm scripts, removing redunant scripts already created ontasks.py
, and also deleting duplicates. Some scripts where also migrated frompackage.json
and totasks.py
in order to keep consistency on the scripts and leave as simple as possible the npm scripts section. Only scripts necessary to build the application were left, and also the main ones that are called fromtasks.py
.Link to sample test page: https://foundation-s-tp1-239-cl-2nnvbk.herokuapp.com
Related PRs/issues: #11767
Checklist
Tests
Changes in Models:
Documentation:
Merge Method
💡❗Remember to use squash merge when merging non-feature branches into
main
┆Issue is synchronized with this Jira Story