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 html/js libraries via npm #1993
Conversation
app/build.gradle
Outdated
@@ -36,7 +36,7 @@ android { | |||
main { | |||
java { | |||
resources { | |||
srcDirs += files("$projectDir/../submodules/autofill/dist/".toString()) | |||
srcDirs += "$projectDir/../node_modules/@duckduckgo/autofill/dist/".toString() |
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.
This will ensure only files inside /dist
will be included when we build the app.
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"@duckduckgo/autofill": "github:duckduckgo/duckduckgo-autofill#4.6.0" |
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.
Here's where we will change the library versions.
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
- name: Npm update |
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.
This Github Action will run npm and autocommit the changes.
@cmonfortep I just switched to autofill v4.6.0 and created a merge conflict for you. You'll need to resolve it on your branch even though that's going to be removed |
# Conflicts: # submodules/autofill
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.
All tested and working well. Great job, this is a fantastic change. 🎉
Task/Issue URL: https://app.asana.com/0/414730916066338/1202412970169527/f
Description
Proposal to stop using submodules for html/js libraries.
As a first test, we will migrate autofill to the new approach.
Steps to test this PR
Ensure autofill works
Manual npm update
npm update
node_modules
have been updatedValidate your IDE don't show the submodule anymore
UI changes