-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directory structure #5
Comments
So I played a bit with honkit (fork of Gitbook) and came up with this structure for the guide, taking some inspiration from https://hirok.io/posts/package-json-exports , the bits moved here, and nodejs/nodejs.org#7229
Which generates something like this: After looking into it a bit I think it might be nicer to directly embed examples into guide directories? So for example, I feel that at some point, after the experimental TypeScript support becomes stable, we should also add a chapter about configuring a package written in TypeScript, but it's probably still too early at this point as the core decisions about how this is supposed to work is still a bit in the air. Another topic that might be interesting is how to configure a package properly for tree-shaking/code bundled to run both in browsers and on servers. Though I am not sure if this is the right place to document them. Can be a stretch goal for now. |
Opened #6 to get it going. |
Inspired by https://github.com/nodejs/node-addon-examples/ I think it would be nice to have a directory structure like this:
The guide can point to the examples to better show how they are supposed to look. We can have some workflows and tests to check that the examples work properly, and can even publish them to npm to verify that they work.
The text was updated successfully, but these errors were encountered: