Comments (14)
Well, I'd be happy to have more externs (though I don't really use those you mention), as well as node-webkit.
From what I can see, including node-webkit, for instance, would require a bit of work to embrace the conventions used in node-js-kit (implement npm.Package.Require
, no __init__
or other tricks, etc).
As for nodejs-std, it's a pretty different project IMHO.
I personnally don't use std on node.js, and I'm honestly not too interested about it, so I wouldn't really be able to maintain it properly.
Also there was this discussion about merging it to haxe std:
HaxeFoundation/haxe#2784 (comment)
So I'm not too much in favor of merging it to my repo.
It might be build on top of it, though.
from haxe-js-kit.
I am not using std too, but would like to have some module externs in one place.
from haxe-js-kit.
I agree for the externs part, feel free to merge some to my repo;
Let me know if you need any help.
from haxe-js-kit.
Seems like externs for Mv, mkdirp, watchr, walkdir could be similar to https://github.com/clemos/haxe-js-kit/blob/master/js/npm/Connect.hx, because they work like this
walkdir = require('walkdir');
walkdir(path);
and etc.
from haxe-js-kit.
I plan to move Mv
, mkdirp
, watchr
, walkdir
, remove
to js.npm
and externs for atom-shell
to js
. Is it ok?
I want to make ultimate Swiss knife.
from haxe-js-kit.
Also what do you think about switching to @:jsRequire
as replacement for npm.package.require
?
from haxe-js-kit.
Hi,
I don't know atom-shell
in details, but I would prefer it in js.npm
as well. Now maybe there's a reason why you want to promote it to just js
?
As for @:jsRequire
, I don't really see the advantage over my system for now: it doesn't handle package.json
generation or library versions, for example.
At some point, it may be interesting to replace the @:native
trick with @:jsRequire
, but it can be done internally.
from haxe-js-kit.
Now maybe there's a reason why you want to promote it to just js ?
Because it's not available on npm that's is why i put it there. And it's kinda browser API and etc...
I can move it to npm
.
it doesn't handle package.json generation or library versions, for example.
I didn't knew that.
But I have noticed that npm.package.require
does generates something like this:
App || require('')
everytime I try to access some field, which is not very good I think.
from haxe-js-kit.
Ok, then maybe js.atomshell
makes sense ?
Once again, I've quickly looked at atom-shell
docs and your haxelib project, but am still unsure about what will really be there ;)
As for Pack || require('pack')
, I've indeed removed it, as it doesn't make sense
(as it turns out, require('pack')
returns a unique reference across calls)
from haxe-js-kit.
Once again, I've quickly looked at atom-shell docs and your haxelib project, but am still unsure about what will really be there ;)
It's not on github yet.
As for Pack || require('pack'), I've indeed removed it, as it doesn't make sense
Great, thanks!
from haxe-js-kit.
from haxe-js-kit.
I'm not sure why I'm getting this. Maybe I should switch to more stable version of Haxe
from haxe-js-kit.
This function worked exactly in same way.
from haxe-js-kit.
This should be fixed, now.
Callback<Void>
has never really worked, it's now replaced by Callback0
from haxe-js-kit.
Related Issues (20)
- Branding/Marketing website HOT 35
- Error handling suggestion for @async HOT 18
- Can I use webpack (or something similar) with these externs? HOT 2
- express route and simple chat with socket.io please HOT 5
- SocketIO clientside error "Uncaught ReferenceError: process is not defined" HOT 9
- Dependency on `hxnodejs` is causing issues with socket.io in browser HOT 9
- Using Map<String,Int> with Mongoose HOT 2
- Running multiple mongo db calls in a for loop HOT 3
- [Express] res.sendfile() is now res.sendFile() HOT 3
- update with $pull HOT 7
- Generate ObjectID before create HOT 4
- SubDocument with nested schema HOT 11
- is haxelib branch still updated? HOT 5
- Mongoose plugin usage HOT 1
- Mongoose arrayFilters in ModelUpdateOptions HOT 1
- Request object not unifying with IncomingMessage HOT 4
- Warning : Extern non-inline function may not have an expression HOT 14
- Uncaught exception "unsupported" from util/CopyMethods HOT 4
- haxe 4 mongoose issue HOT 4
- Mongoose : "Variable requires type-hint or initialization" using schemaOptions 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 haxe-js-kit.