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

First draft #1

Merged
merged 7 commits into from
Jun 5, 2015
Merged

First draft #1

merged 7 commits into from
Jun 5, 2015

Conversation

krl
Copy link
Contributor

@krl krl commented May 21, 2015

I would like it to actually do init automatically as well, then i'll update the readme.

.on('error', function (err) { cb(err) })
.on('end', function () { def.resolve(true) })
}, delay * 200)
delay++
Copy link
Member

Choose a reason for hiding this comment

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

may want to say why it has to run this way?

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 seems there can be a race condition when you're setting two config variables at the same time. I will make an issue of this in my next sitting.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds like a good use case for waterfall promises.

Copy link
Member

Choose a reason for hiding this comment

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

@krl
Copy link
Contributor Author

krl commented May 21, 2015

test

@jbenet
Copy link
Member

jbenet commented May 21, 2015

nice screenshot

@jbenet
Copy link
Member

jbenet commented May 21, 2015

@krl this is great

var rimraf = require('rimraf')

// happy lint
// var it, before, after
Copy link
Member

Choose a reason for hiding this comment

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

Does this actually work to allow standard to not complain about undefined? I usually see something like:

/* global beforeEach, describe, it */

@krl
Copy link
Contributor Author

krl commented May 21, 2015

@travisperson thank you for pointing me at waterfall promises, will def be using this from now on!

Pushed new version with this method

@krl krl force-pushed the first-draft branch 2 times, most recently from 44e3ac7 to 2e3b595 Compare May 22, 2015 03:59
@bcomnes
Copy link
Contributor

bcomnes commented May 22, 2015

👍 Thanks for doing this!

@bcomnes
Copy link
Contributor

bcomnes commented May 22, 2015

What is the relationship between https://www.npmjs.com/package/ipfs-api and https://www.npmjs.com/package/go-ipfs? Will ipfs-api provide access to the webapp that the go implementation has?

@jbenet
Copy link
Member

jbenet commented May 22, 2015

@bcomnes ipfs-api is a js lib for consuming/using the ipfs api provided by go-ipfs. (it's an http server run by go-ipfs, and other implementations should probably support it (match the api) too)

@jbenet
Copy link
Member

jbenet commented May 22, 2015

This LGTM

@krl krl force-pushed the first-draft branch 3 times, most recently from 1452a05 to 0016bb1 Compare May 30, 2015 23:02
@krl krl force-pushed the first-draft branch 2 times, most recently from c545bb1 to f9d2f29 Compare June 2, 2015 13:54
@jbenet
Copy link
Member

jbenet commented Jun 5, 2015

@krl shall we merge this?

jbenet added a commit that referenced this pull request Jun 5, 2015
@jbenet jbenet merged commit 85cc478 into master Jun 5, 2015
@jbenet jbenet deleted the first-draft branch June 5, 2015 11:27
@bcomnes
Copy link
Contributor

bcomnes commented Jun 5, 2015

Baller! Nice work @krl Just had a chance to play around with it. Seems to work as expected

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.

4 participants