Giter VIP home page Giter VIP logo

Comments (9)

back2dos avatar back2dos commented on May 29, 2024

Good idea, although I doubt one really needs multiple class paths within the same haxelib. The compiler might actually not expect more than one classpath per lib returned by haxelib. So having just one optional custom classpath is what we could do.

from haxelib.

Simn avatar Simn commented on May 29, 2024

I also think a singular "subdir" value would be sufficient. Note that the haxelib git command already allows specifying a sub-directory while installing a library (haxelib git name path subdir).

from haxelib.

wighawag avatar wighawag commented on May 29, 2024

I was thinking something different than only a sub directory.

if it was only a subdir, while we could get the haxelib out of the source folder, we would still mix sources with the other files that are to be part of the lib (run.n, other files...).
So this is different than the git command but this feature could make the git subdir argument redundant (making life easier for users).

Maybe a "src" value ?

from haxelib.

Dr-Emann avatar Dr-Emann commented on May 29, 2024

I like this a lot. But we need to finalize the haxelib.json file format soon, right now it's really seeming unstable, which isn't good for a final relase

from haxelib.

jasononeil avatar jasononeil commented on May 29, 2024

Do you mean unstable as in "broken" or unstable as in "it's changing"? The change discussed in this issue wouldn't break backward compatibility, so I'm personally not too worried about it.

It would be good to finalise a specification though, so the work you've done in the other thread looks good.

from haxelib.

Dr-Emann avatar Dr-Emann commented on May 29, 2024

Unstable as in changing.

If the haxelib format were under semantic versioning, we'd be incrementing the minor counter a lot. Definitely better than major changes, still.. leaves a little bit of a bad taste in my mouth. This improvement it worth it though, for sure.

from haxelib.

jasononeil avatar jasononeil commented on May 29, 2024

Another note:

"haxelib install" and "haxelib local" currently have a functionality not too different to what we're proposing: they search the zip for the relevant "haxelib.json" file, and then unpack from that directory downwards. (See https://github.com/HaxeFoundation/haxelib/blob/master/src/tools/haxelib/Main.hx#L577)

I think I still prefer the implementation suggested in this issue, as it would let you bundle documentation, examples, test cases or supporting files and not have them pollute the class path.

from haxelib.

jasononeil avatar jasononeil commented on May 29, 2024

Added in ad284d9

from haxelib.

boozook avatar boozook commented on May 29, 2024

Also need to add it to manual.

from haxelib.

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.