haxefoundation / hxnodelibs Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi. I'd like to become a contributor so I can help with PR reviews, since I will be regularly submitting PRs myself.
Now when hxnodejs is finally released, we can discuss a bit about this extern collection.
I don't like how it's currently done here using js.node
as a prefix package since it may introduce conflicts with core node modules added at some time, also I don't like the fact that one can't easily say which is node API and which is a npm module.
@clemos uses js.npm
prefix which I think is better, but I don't quite like that different externs (of different quaility and by different authors) are placed in one root - it gets messy when there are lots of them, IMO.
I wonder if we can/should use separate source paths for different npm externs and somehow still be able to just do -lib hxnodelibs
and then simply import js.npm.Whatever
. Maybe with macro that adds class paths and is executed in extraParams.hxml
?
That way extern authors can also provide README's, tests, examples, etc.
Thoughts? @clemos @ncannasse @andyli @dionjwa @fponticelli @eduardo-costa @tong @back2dos (please cc anyone i forgot)
On current master, when I try:
haxe build.hxml
it fails with:
js/npm/tarstream/TarStream.hx:10: characters 7-21 : Type not found : js.node.Buffer
That is an npm extern that I added. It fails because the haxelib hxnodejs
is not imported in the build.hxml
. I'm surprised that importing e.g. Buffer hasn't been required up until now. Am I misunderstanding something?
Please consider support Thread,Sqlite,WebSocket libs :)
Someone on #haxe asked how to use this class: https://github.com/HaxeFoundation/hxnodelibs/blob/master/js/node/ws/WebSocketServer.hx
The problem is that the WebSocketServerOption class has no constructor, so there's nothing you can pass to the constructor of WebSocketServer. That type should either be a typedef structure or get a constructor, depending on what makes more sense.
s.npm.ws.WebSocket has no field binaryType?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.