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
add support for weapp #660
Conversation
Codecov Report
@@ Coverage Diff @@
## master #660 +/- ##
=========================================
- Coverage 93.22% 92.52% -0.7%
=========================================
Files 8 8
Lines 664 669 +5
Branches 160 161 +1
=========================================
Hits 619 619
- Misses 45 50 +5
Continue to review full report at Codecov.
|
This is ok now! |
@@ -14,3 +14,4 @@ coverage | |||
test/typescript/.idea/* | |||
test/typescript/*.js | |||
test/typescript/*.map | |||
package-lock.json |
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.
Why package-lock.json
is in .gitignore
?
This file is intended to be committed into source repositories, and serves various purposes:
Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.
Provide a facility for users to "time-travel" to previous states of node_modules without having to commit the directory itself.
To facilitate greater visibility of tree changes through readable source control diffs.
And optimize the installation process by allowing npm to skip repeated metadata resolutions for previously-installed packages.
ref: https://github.com/npm/npm/blob/v5.0.0/doc/files/package-lock.json.md
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.
Because it's still a very experimmental technology and there have been a lot of bugs. Plus, it does not make the life of a maintainer easier. So, no, we should not use them.
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.
Got it, I didn't notice about it too much before. Maybe we could also add a .npmrc
file with package-lock = false
just like what eslint did eslint/eslint#8742
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.
@imZack definitely. Would you like to send a PR? I've it disabled globally, so it's not a big deal for me, but I can see why it's needed for others.
generally I'd be in agreement, but I think we should reconsider this. the last build of master passed, yet between then and now--without touching the code at all--something has broken to cause tests to fail. one failure I found when running the failing tests are adding significant friction to contributors, because we can't move forward until they're all fixed. maybe someone has written an |
@boneskull do you think we should remove support for weapp? |
@boneskull you would like to revert package-lock? IMHO if it start to work as expected, I have no problem with it. I had more |
#653 (comment)
I open this pr because of the gt reports.
@mcollina , stragely, I forked again and did the same change, I got failed message when I run
npm run weapp-test
first time. and I run npm test twice, it worked with no exception I got yesterday.anyway, I hope this pr will be merged soon. thank you for your patience.