Git Product home page Git Product logo

Comments (9)

lushzero avatar lushzero commented on June 11, 2024

I figured it out.
"cake.coffeescript build" uses the Cakefile to build it. Shouldn't that be in install.js?

from node-gitteh.

samcday avatar samcday commented on June 11, 2024

@lushzero The lib/gitteh.js is basically a generated artifact from the CS source, analogous to a .o file or a .class file. I made the choice not to version it as it's noisy in the diffs to do so. It also should not be in install.js as that file runs on users machines when gitteh is installed. I made the choice to generate the gitteh.js source before an npm publish to ensure that no runtime dependency on CoffeeScript is required.

from node-gitteh.

lushzero avatar lushzero commented on June 11, 2024

What file gets included then in the node code to actually use the module if not lib/gitteh.js ? Remove that file and you get "Error: Cannot find module 'gitteh'"

from node-gitteh.

samcday avatar samcday commented on June 11, 2024

@lushzero lib/gitteh.js is included in the actual distribution tarball that gets uploaded to NPM, it's just not in revision control

from node-gitteh.

lushzero avatar lushzero commented on June 11, 2024

@samcday We don't seem to be communicating well. By included I meant that the lib/gitteh.js is the file that allows you to load the module in node code. Unless I'm mistaken it's what registers the binding functions in callable space. However its generation is not in the install.js nor is it really documented anywhere.

Could you explain what the correct steps are for building gitteh from "scratch"?

from node-gitteh.

samcday avatar samcday commented on June 11, 2024

@lushzero if you're wanting to build gitteh from scratch on your machine, you should just be able to run cake build (with an npm -g install coffee-script first) and then npm install

from node-gitteh.

iamwilhelm avatar iamwilhelm commented on June 11, 2024

What about /lib/bindings/bindings.js? It seems to be full of antiquated method signatures, like getTree(), when gitteh uses tree() now. Is that file being used, or should it be deleted?

from node-gitteh.

samcday avatar samcday commented on June 11, 2024

@iamwilhelm yeah that file is from the pre-0.17 refactor. I'll nuke it shortly.

from node-gitteh.

mildsunrise avatar mildsunrise commented on June 11, 2024

Sam! You're back!

from node-gitteh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.