Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Replace git backend #53

Closed
Bartvds opened this issue Jan 16, 2014 · 6 comments
Closed

Replace git backend #53

Bartvds opened this issue Jan 16, 2014 · 6 comments
Labels

Comments

@Bartvds
Copy link
Collaborator

Bartvds commented Jan 16, 2014

Use js-git (and Lazy.js) instead of home-rolled github-api cache.

Pro:

  • It is very modular for great power.

Con:

  • Not very high-level though, but is a true git client.
@vvakame
Copy link
Member

vvakame commented Jan 16, 2014

I tried js-git in the past.
It does not have git clone function perhaps. (isn't it?)
I choose node-git. it is gateway of git command. but it can use git clone https://github.com/vvakame/dtsm/blob/master/lib/wrapper/Git.ts#L13

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jan 16, 2014

Oh, js-git can 'clone' but you got to make a remote (using git-net) and then use repo.fetch() to pull it to a local repo, then set it as head, and then access the content.

js-git it is a lot more basic, but is very modular and 100% javascript. I don;t really like node-git too much (dependency on command-line client).

Note: I'm tryingt his out as a side project (so many 😺):

I'm hacking on an external module and experiment with some new stuff I wanted to try: using gulp, ES6 features (Map/Promise etc), node.js streams and Lazy.js

I started earlier using TypeScript but I dropped it and use ES6 compiler now, see how it goes.

@vvakame
Copy link
Member

vvakame commented Jan 16, 2014

I heard for the first time a git-net! it sounds good!
I know node-git is depends on command-line client and i don't like it too :)

I want to use git-client on Browser. it requires pure JS implementation of git (and without Node.js).
but Browser not have a RawSocket API with TLS still... 😿

I am waiting ES6 feature(let, const, generator...) come to TS :)

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jan 16, 2014

I believe js-git can work in browser (at least for reading): git-net can return a http(s) interface. A problem is that the remotes are read-only (or I missed something).

If you want 100% pure browser for github API with read+write you can use https://github.com/philschatz/octokit.js

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jan 17, 2014

This ES6 + gulp stuff is just a giant heap of pain. 😞

ES6 support in all tooling is still limited, and gulp is complicated (streams) and the plugins are not yet very good.

So I'm back to TypeScript with es6-shim (for Map & Set).

FYI: TypeScript has the ES6 stuff scheduled for 1.x

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jun 20, 2014

Closing this as with latest additions to dev/next Github API + RAW work pretty good. Re-opening later if micro-modules #86 happen (if ever)

@Bartvds Bartvds closed this as completed Jun 20, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants