Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

generate consistent module + package structure #10

Open
nadako opened this issue Mar 10, 2015 · 3 comments
Open

generate consistent module + package structure #10

nadako opened this issue Mar 10, 2015 · 3 comments

Comments

@nadako
Copy link
Collaborator

nadako commented Mar 10, 2015

ts2hx should generate a consistent and useful package/module structure similar to what's implemented in hxnodejs (and discussed in HaxeFoundation/hxnodejs#16 before).

basically that means the following:

  • a module becomes static class with capitalized name (and underscore changed to CamelCase)
  • types defined in the module go into a subpackage named after the original module

for example, node's "fs" module become Fs.hx, and "fs.Stats" goes to fs/Stats.hx

@Simn
Copy link
Owner

Simn commented Mar 10, 2015

ping @ousado

@nadako
Copy link
Collaborator Author

nadako commented Mar 10, 2015

ping @frabbit too i guess

@frabbit
Copy link
Contributor

frabbit commented Mar 10, 2015

i like the nodejs structure and your suggestion sounds good.

kLabz pushed a commit to kLabz/ts2hx that referenced this issue May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants