Git Product home page Git Product logo

Comments (14)

clemos avatar clemos commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

I am not using std too, but would like to have some module externs in one place.

from haxe-js-kit.

clemos avatar clemos commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

Also what do you think about switching to @:jsRequire as replacement for npm.package.require?

from haxe-js-kit.

clemos avatar clemos commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

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.

clemos avatar clemos commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

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.

as3boyan avatar as3boyan commented on July 26, 2024

Imgur

Imgur

from haxe-js-kit.

as3boyan avatar as3boyan commented on July 26, 2024

I'm not sure why I'm getting this. Maybe I should switch to more stable version of Haxe

from haxe-js-kit.

as3boyan avatar as3boyan commented on July 26, 2024

This function worked exactly in same way.

from haxe-js-kit.

clemos avatar clemos commented on July 26, 2024

This should be fixed, now.
Callback<Void> has never really worked, it's now replaced by Callback0

from haxe-js-kit.

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.