Skip to content

minimal example for use in the browser #105

Open

Description

@jtwaleson

I've been trying to get a minimal setup to work in the browser for a couple of hours now, to no avail. I think it would be useful to explain how the require pattern can be used. It might help javascript noobs like myself on their way.

Activity

  1. creationix commented on Sep 9, 2014

    @creationix
    Owner
  2. creationix commented on Sep 9, 2014

    @creationix
    Owner

    Here is a example of using wheaty-cjs-bundler. https://github.com/creationix/conquest/blob/svg/conquest.js

    This repo is served with wheaty https://github.com/creationix/wheaty. Since the file is marked as executable in git and starts with #!js it will be run server-side in wheaty and serve the result to the browser.

  3. jtwaleson commented on Sep 10, 2014

    @jtwaleson
    Author

    Thanks, browserify seems to do the trick! I'll see if I can get a working example and send a pull request with added documentation about build instructions. Do you have any thoughts about rewriting from common-js to AMD?

  4. creationix commented on Sep 10, 2014

    @creationix
    Owner

    I'm glad it helped. No, I'm not going to rewrite in AMD. I may rewrite in
    ES6 modules once the tool ecosystem is more mature for them though.

    On Wed, Sep 10, 2014 at 2:50 AM, Jouke Waleson [email protected]
    wrote:

    Thanks, browserify seems to do the trick! I'll see if I can get a working
    example and send a pull request with added documentation about build
    instructions. Do you have any thoughts about rewriting from common-js to
    AMD?

    —
    Reply to this email directly or view it on GitHub
    #105 (comment).

  5. kumavis commented on Sep 17, 2014

    @kumavis

    @jtwaleson would like to see your work, as I plan to use this with browserify

  6. rksm commented on Jun 22, 2016

    @rksm

    A browserified version of js-git (that uses promises instead of generators) can be found here: https://github.com/LivelyKernel/js-git-browser.

    Thx @creationix for this great project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions