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

Fix lint errors and tests #67

Merged
merged 11 commits into from
Jun 23, 2020
Merged

Fix lint errors and tests #67

merged 11 commits into from
Jun 23, 2020

Conversation

mpetrunic
Copy link
Member

  • enabled source maps
  • fixed some configs
  • fixed lint errors
  • node tests passing

TODO:

  • web tests passing

@mpetrunic mpetrunic requested a review from morrigan as a code owner June 19, 2020 11:16
@mpetrunic
Copy link
Member Author

Seems like bcrypto library relies on Buffer polyfill in browser, any idea how to fix that @hugomrdias

@hugomrdias
Copy link
Contributor

Seems like bcrypto library relies on Buffer polyfill in browser, any idea how to fix that @hugomrdias

You need to run aegir cmds with --node true, we removed the dependency on node globals and builtins in all the other ipfs/libp2p repos and deps ipfs/js-ipfs#2924 . This was because the next version of webpack (v5) is going to remove automatic injection of node stuff.
So you should probably do the same for bcrypto, because this flag is going way soon.

Copy link
Contributor

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

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

LGTM just a couple of nit inline

package.json Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@@ -27,6 +30,7 @@
"@types/mocha": "^5.2.7",
"aegir": "ipfs/aegir#feat/cosmiconfig",
"chai": "^4.2.0",
"karma-mocha-webworker": "^1.3.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

You should not need this, karma has a weird issue with this module and fails to load it if the package doesnt come from npm. So when we release aegir properly this can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, did not know that, failed locally so ive added it. Will remove once we update aegir version

Copy link
Member Author

Choose a reason for hiding this comment

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

Even with released aegir it still says that it's missing

@hugomrdias
Copy link
Contributor

aegir 25.0.0 released https://github.com/ipfs/aegir/blob/master/CHANGELOG.md#2500-2020-06-20

@mpetrunic mpetrunic merged commit e01d8e2 into master Jun 23, 2020
@mpetrunic mpetrunic deleted the mpetrunic/lint-fix branch June 23, 2020 16:39
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.

3 participants