Comments (9)
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.
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.
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.
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.
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.
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.
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.
Added in ad284d9
from haxelib.
Also need to add it to manual.
from haxelib.
Related Issues (20)
- Lose hx3compat dependency HOT 2
- lib.haxe.org is down HOT 1
- Define lib.name HOT 10
- Support SPDX license identifiers HOT 3
- Request to remove library from lib.haxe.org HOT 6
- haxelib install hxcpp failed with error: Blocking HOT 2
- Request to delete library HOT 2
- `haxelib` throws an exception when installing any library
- Error: Failed with error: Http Error #502 when submitting .zip file HOT 1
- Run haxelib main relative to classpath
- SQL query leak
- Misleading instructions HOT 1
- Local repositories break with libraries which use native C++ files HOT 6
- change password request HOT 3
- Migrate away from mysql 5.7 HOT 2
- std@sys_remove_dir when trying to install git library with specific branch HOT 2
- I want to rename a lib HOT 2
- Dont spam the terminal on download HOT 1
- Allow .dev package versions to have relative paths
- Replaced with NekoVM on the Arch package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxelib.