Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Extended publishing of libraries to npm #3786

Merged
merged 6 commits into from
Dec 11, 2016
Merged

Extended publishing of libraries to npm #3786

merged 6 commits into from
Dec 11, 2016

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Dec 9, 2016

Publish all external libraries now, parity.js, etherscan & shapeshift integrations

@jacogr jacogr added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. M7-ui labels Dec 9, 2016
@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Dec 9, 2016

Parity.js is a thin, fast, Promise-based wrapper around the Ethereum APIs.

[https://github.com/ethcore/parity/js/src/api](https://github.com/ethcore/parity/js/src/api)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be https://github.com/ethcore/parity/tree/master/js/src/api


A thin, lightweight promise wrapper for the api.etherscan.io/apis service, exposing a common endpoint for use in JavaScript applications.

[https://github.com/ethcore/parity/js/src/3rdparty/etherscan](https://github.com/ethcore/parity/js/src/3rdparty/etherscan)
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be https://github.com/ethcore/parity/tree/master/js/src/3rdparty/etherscan
Plus, don't we want to add the README there, so users can read it navigating to this URL ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

As for the README, do agree, but actually need to solve this with the source in npm issue as well. Will log and revisit.

"bignumber.js": "^2.3.0",
"js-sha3": "^0.5.2",
"node-fetch": "^1.6.3"
"bignumber.js": "~2.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.

Why not using 2.3.0 directly? I'm sure the patches won't break anything, but we never know...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is actually bad form doing what we are doing. We should be using shinkwrap. (Extra step, but right approach)


A thin ES6 promise wrapper around the shapeshift.io APIs as documented at https://shapeshift.io/api

[https://github.com/ethcore/parity/js/src/3rdparty/shapeshift](https://github.com/ethcore/parity/js/src/3rdparty/shapeshift)
Copy link
Contributor

Choose a reason for hiding this comment

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

https://github.com/ethcore/parity/tree/master/js/src/3rdparty/shapeshift + same comment on README as per etherscan

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling b422714 on jg-library-builds into ** on master**.

@ngotchac
Copy link
Contributor

I added some tests to the published libraries. For parity it is juste a smoke one, testing the the object exists and that it contains Api and Abi.
For etherscan and shapeshift, it copies the already existing tests (slightly modified) into the published directory.

I added a call to npm test from each published library in the dryrun-npm.sh script, but this might be added in another non dry-run script.

If this is useless, feel free to revert my commits (02c2dc0 and 861280b)

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 861280b on jg-library-builds into ** on master**.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Dec 11, 2016
@jacogr jacogr merged commit 36b8e4b into master Dec 11, 2016
@jacogr jacogr deleted the jg-library-builds branch December 11, 2016 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants